From 6e4e7814871af646bd463b0132d611f4b74a712a Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Wed, 25 Mar 2026 15:59:03 +0800 Subject: [PATCH 1/7] generated from swagger:de8103ff8e94ea51c56bb22094ded5d2dfc45a6a --- .../azure-mgmt-containerinstance/CHANGELOG.md | 4 + .../azure-mgmt-containerinstance/MANIFEST.in | 9 +- .../azure-mgmt-containerinstance/README.md | 6 +- .../azure-mgmt-containerinstance/_meta.json | 11 - .../_metadata.json | 11 + .../apiview-properties.json | 192 + .../azure/__init__.py | 2 +- .../azure/mgmt/__init__.py | 2 +- .../azure/mgmt/containerinstance/__init__.py | 12 +- .../mgmt/containerinstance/_configuration.py | 22 +- .../_container_instance_management_client.py | 63 +- .../mgmt/containerinstance/_utils/__init__.py | 6 + .../serialization.py} | 601 +- .../azure/mgmt/containerinstance/_version.py | 2 +- .../mgmt/containerinstance/aio/__init__.py | 12 +- .../containerinstance/aio/_configuration.py | 22 +- .../_container_instance_management_client.py | 65 +- .../aio/operations/__init__.py | 30 +- ...perations.py => _cg_profile_operations.py} | 578 +- ...erations.py => _cg_profiles_operations.py} | 164 +- .../_container_groups_operations.py | 78 +- .../aio/operations/_containers_operations.py | 31 +- .../aio/operations/_location_operations.py | 37 +- .../aio/operations/_ngroups_operations.py | 1115 + .../aio/operations/_operations.py | 29 +- ...net_service_association_link_operations.py | 27 +- .../mgmt/containerinstance/models/__init__.py | 251 +- ...tainer_instance_management_client_enums.py | 76 + .../containerinstance/models/_models_py3.py | 2836 ++- .../containerinstance/operations/__init__.py | 30 +- ...perations.py => _cg_profile_operations.py} | 673 +- ...erations.py => _cg_profiles_operations.py} | 204 +- .../_container_groups_operations.py | 107 +- .../operations/_containers_operations.py | 47 +- .../operations/_location_operations.py | 52 +- .../operations/_ngroups_operations.py | 1431 ++ .../operations/_operations.py | 34 +- ...net_service_association_link_operations.py | 35 +- .../code_report_swagger.json | 17009 ++++++++++++++++ .../generated_samples/cached_images_list.py | 3 +- .../generated_samples/capabilities_list.py | 3 +- .../generated_samples/container_attach.py | 3 +- .../generated_samples/container_exec.py | 3 +- .../container_group_create_confidential.py | 3 +- ...ner_group_create_or_update_standby_pool.py | 3 +- .../container_group_encryption_properties.py | 3 +- .../container_group_extensions.py | 3 +- ...le_create_or_update_create_confidential.py | 230 +- ..._create_or_update_encryption_properties.py | 231 +- ...oup_profile_create_or_update_extensions.py | 234 +- ...er_group_profile_get_by_revision_number.py | 5 +- ...tainer_group_profile_list_all_revisions.py | 5 +- ...ntainer_group_profiles_create_or_update.py | 248 +- .../container_group_profiles_delete.py | 5 +- .../container_group_profiles_get.py | 5 +- .../container_group_profiles_get_priority.py | 5 +- .../container_group_profiles_list.py | 5 +- ...r_group_profiles_list_by_resource_group.py | 5 +- .../container_group_profiles_patch.py | 5 +- .../container_group_usage.py | 3 +- .../container_groups_create_or_update.py | 3 +- ...roups_create_or_update_secret_reference.py | 142 + .../container_groups_create_priority.py | 3 +- .../container_groups_delete.py | 3 +- .../container_groups_get_failed.py | 3 +- .../container_groups_get_priority.py | 3 +- .../container_groups_get_succeeded.py | 3 +- .../container_groups_list.py | 3 +- ...container_groups_list_by_resource_group.py | 3 +- .../container_groups_restart.py | 3 +- .../container_groups_start.py | 3 +- .../container_groups_stop.py | 3 +- ...priority.py => container_groups_update.py} | 36 +- .../generated_samples/container_list_logs.py | 3 +- .../generated_samples/operations_list.py | 3 +- .../subnet_service_association_link_delete.py | 3 +- .../generated_tests/conftest.py | 2 +- ...stance_management_cg_profile_operations.py | 305 + ..._management_cg_profile_operations_async.py | 306 + ...tance_management_cg_profiles_operations.py | 40 + ...management_cg_profiles_operations_async.py | 41 + ..._management_container_groups_operations.py | 61 +- ...ement_container_groups_operations_async.py | 61 +- ...stance_management_containers_operations.py | 12 +- ..._management_containers_operations_async.py | 12 +- ...instance_management_location_operations.py | 12 +- ...ce_management_location_operations_async.py | 12 +- ..._instance_management_ngroups_operations.py | 282 + ...nce_management_ngroups_operations_async.py | 299 + ...ontainer_instance_management_operations.py | 4 +- ...er_instance_management_operations_async.py | 4 +- ...net_service_association_link_operations.py | 4 +- ...rvice_association_link_operations_async.py | 4 +- .../pyproject.toml | 82 + .../sdk_packaging.toml | 7 - .../azure-mgmt-containerinstance/setup.py | 83 - 96 files changed, 26364 insertions(+), 2415 deletions(-) delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/_meta.json create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/__init__.py rename sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/{_serialization.py => _utils/serialization.py} (81%) rename sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/{_container_group_profiles_operations.py => _cg_profile_operations.py} (70%) rename sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/{_container_group_profile_operations.py => _cg_profiles_operations.py} (54%) create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_ngroups_operations.py rename sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/{_container_group_profiles_operations.py => _cg_profile_operations.py} (74%) rename sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/{_container_group_profile_operations.py => _cg_profiles_operations.py} (54%) create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_ngroups_operations.py create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/code_report_swagger.json create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_secret_reference.py rename sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/{container_groups_profile_create_or_update_create_priority.py => container_groups_update.py} (57%) create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations.py create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations_async.py create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations.py create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations_async.py create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations.py create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations_async.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/sdk_packaging.toml delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/setup.py diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md index d6ae07fe48f6..32d706a27164 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md +++ b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 10.2.0 (2026-03-25) + +skip changelog generation + ## 10.2.0b1 (2024-10-21) ### Features Added diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/MANIFEST.in b/sdk/containerinstance/azure-mgmt-containerinstance/MANIFEST.in index 3800b1aad932..6e75367a2ded 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/MANIFEST.in +++ b/sdk/containerinstance/azure-mgmt-containerinstance/MANIFEST.in @@ -1,8 +1,7 @@ -include _meta.json -recursive-include tests *.py *.json -recursive-include samples *.py *.md include *.md -include azure/__init__.py -include azure/mgmt/__init__.py include LICENSE include azure/mgmt/containerinstance/py.typed +recursive-include tests *.py +recursive-include samples *.py *.md +include azure/__init__.py +include azure/mgmt/__init__.py diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/README.md b/sdk/containerinstance/azure-mgmt-containerinstance/README.md index 05cdd4ccefa7..609ea34e101d 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/README.md +++ b/sdk/containerinstance/azure-mgmt-containerinstance/README.md @@ -1,7 +1,7 @@ # Microsoft Azure SDK for Python This is the Microsoft Azure Container Instance Client Library. -This package has been tested with Python 3.8+. +This package has been tested with Python 3.9+. For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). ## _Disclaimer_ @@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For ### Prerequisites -- Python 3.8+ is required to use this package. +- Python 3.9+ is required to use this package. - [Azure subscription](https://azure.microsoft.com/free/) ### Install the package @@ -24,7 +24,7 @@ pip install azure-identity ### Authentication -By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables. +By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables. - `AZURE_CLIENT_ID` for Azure client ID. - `AZURE_TENANT_ID` for Azure tenant ID. diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/_meta.json b/sdk/containerinstance/azure-mgmt-containerinstance/_meta.json deleted file mode 100644 index 52966516080f..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/_meta.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "commit": "cfe318beba82c1e5bda6a600f91de32cba814364", - "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest": "3.10.2", - "use": [ - "@autorest/python@6.19.0", - "@autorest/modelerfour@4.27.0" - ], - "autorest_command": "autorest specification/containerinstance/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", - "readme": "specification/containerinstance/resource-manager/readme.md" -} \ No newline at end of file diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json b/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json new file mode 100644 index 000000000000..68e7b35f2f57 --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json @@ -0,0 +1,11 @@ +{ + "commit": "de8103ff8e94ea51c56bb22094ded5d2dfc45a6a", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "autorest": "3.10.2", + "use": [ + "@autorest/python@6.50.0", + "@autorest/modelerfour@4.27.0" + ], + "autorest_command": "autorest specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/home/v-chenjiang/worktrees/sdk-azure-mgmt-containerinstance/sdk --use=@autorest/python@6.50.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", + "readme": "specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/readme.md" +} \ No newline at end of file diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json b/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json new file mode 100644 index 000000000000..7ecd82d17de6 --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json @@ -0,0 +1,192 @@ +{ + "CrossLanguagePackageId": null, + "CrossLanguageDefinitionId": { + "azure.mgmt.containerinstance.models.ApiEntityReference": null, + "azure.mgmt.containerinstance.models.ApplicationGateway": null, + "azure.mgmt.containerinstance.models.ApplicationGatewayBackendAddressPool": null, + "azure.mgmt.containerinstance.models.AzureFileVolume": null, + "azure.mgmt.containerinstance.models.CachedImages": null, + "azure.mgmt.containerinstance.models.CachedImagesListResult": null, + "azure.mgmt.containerinstance.models.Capabilities": null, + "azure.mgmt.containerinstance.models.CapabilitiesCapabilities": null, + "azure.mgmt.containerinstance.models.CapabilitiesListResult": null, + "azure.mgmt.containerinstance.models.CloudErrorBody": null, + "azure.mgmt.containerinstance.models.ConfidentialComputeProperties": null, + "azure.mgmt.containerinstance.models.ConfigMap": null, + "azure.mgmt.containerinstance.models.Container": null, + "azure.mgmt.containerinstance.models.ContainerAttachResponse": null, + "azure.mgmt.containerinstance.models.ContainerExec": null, + "azure.mgmt.containerinstance.models.ContainerExecRequest": null, + "azure.mgmt.containerinstance.models.ContainerExecRequestTerminalSize": null, + "azure.mgmt.containerinstance.models.ContainerExecResponse": null, + "azure.mgmt.containerinstance.models.ContainerGroupProperties": null, + "azure.mgmt.containerinstance.models.Resource": null, + "azure.mgmt.containerinstance.models.ContainerGroup": null, + "azure.mgmt.containerinstance.models.ContainerGroupDiagnostics": null, + "azure.mgmt.containerinstance.models.ContainerGroupIdentity": null, + "azure.mgmt.containerinstance.models.ContainerGroupListResult": null, + "azure.mgmt.containerinstance.models.ContainerGroupProfile": null, + "azure.mgmt.containerinstance.models.ContainerGroupProfileListResult": null, + "azure.mgmt.containerinstance.models.ContainerGroupProfilePatch": null, + "azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition": null, + "azure.mgmt.containerinstance.models.ContainerGroupProfileStub": null, + "azure.mgmt.containerinstance.models.ContainerGroupPropertiesInstanceView": null, + "azure.mgmt.containerinstance.models.ContainerGroupSubnetId": null, + "azure.mgmt.containerinstance.models.ContainerHttpGet": null, + "azure.mgmt.containerinstance.models.ContainerPort": null, + "azure.mgmt.containerinstance.models.ContainerProbe": null, + "azure.mgmt.containerinstance.models.ContainerPropertiesInstanceView": null, + "azure.mgmt.containerinstance.models.ContainerState": null, + "azure.mgmt.containerinstance.models.DeploymentExtensionSpec": null, + "azure.mgmt.containerinstance.models.DnsConfiguration": null, + "azure.mgmt.containerinstance.models.ElasticProfile": null, + "azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicy": null, + "azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy": null, + "azure.mgmt.containerinstance.models.EncryptionProperties": null, + "azure.mgmt.containerinstance.models.EnvironmentVariable": null, + "azure.mgmt.containerinstance.models.ErrorAdditionalInfo": null, + "azure.mgmt.containerinstance.models.ErrorDetail": null, + "azure.mgmt.containerinstance.models.ErrorResponse": null, + "azure.mgmt.containerinstance.models.Event": null, + "azure.mgmt.containerinstance.models.FileShare": null, + "azure.mgmt.containerinstance.models.FileShareProperties": null, + "azure.mgmt.containerinstance.models.GitRepoVolume": null, + "azure.mgmt.containerinstance.models.GpuResource": null, + "azure.mgmt.containerinstance.models.HttpHeader": null, + "azure.mgmt.containerinstance.models.IdentityAccessControl": null, + "azure.mgmt.containerinstance.models.IdentityAcls": null, + "azure.mgmt.containerinstance.models.ImageRegistryCredential": null, + "azure.mgmt.containerinstance.models.InitContainerDefinition": null, + "azure.mgmt.containerinstance.models.InitContainerPropertiesDefinitionInstanceView": null, + "azure.mgmt.containerinstance.models.IpAddress": null, + "azure.mgmt.containerinstance.models.ListResultContainerGroupProperties": null, + "azure.mgmt.containerinstance.models.ListResultContainerGroup": null, + "azure.mgmt.containerinstance.models.LoadBalancer": null, + "azure.mgmt.containerinstance.models.LoadBalancerBackendAddressPool": null, + "azure.mgmt.containerinstance.models.LogAnalytics": null, + "azure.mgmt.containerinstance.models.Logs": null, + "azure.mgmt.containerinstance.models.NetworkProfile": null, + "azure.mgmt.containerinstance.models.NGroup": null, + "azure.mgmt.containerinstance.models.NGroupCGPropertyContainer": null, + "azure.mgmt.containerinstance.models.NGroupCGPropertyContainerProperties": null, + "azure.mgmt.containerinstance.models.NGroupCGPropertyVolume": null, + "azure.mgmt.containerinstance.models.NGroupContainerGroupProperties": null, + "azure.mgmt.containerinstance.models.NGroupIdentity": null, + "azure.mgmt.containerinstance.models.NGroupPatch": null, + "azure.mgmt.containerinstance.models.NGroupSkus": null, + "azure.mgmt.containerinstance.models.NGroupsListResult": null, + "azure.mgmt.containerinstance.models.NGroupsSkusList": null, + "azure.mgmt.containerinstance.models.Operation": null, + "azure.mgmt.containerinstance.models.OperationDisplay": null, + "azure.mgmt.containerinstance.models.OperationListResult": null, + "azure.mgmt.containerinstance.models.PlacementProfile": null, + "azure.mgmt.containerinstance.models.Port": null, + "azure.mgmt.containerinstance.models.ResourceLimits": null, + "azure.mgmt.containerinstance.models.ResourceRequests": null, + "azure.mgmt.containerinstance.models.ResourceRequirements": null, + "azure.mgmt.containerinstance.models.SecretReference": null, + "azure.mgmt.containerinstance.models.SecurityContextCapabilitiesDefinition": null, + "azure.mgmt.containerinstance.models.SecurityContextDefinition": null, + "azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition": null, + "azure.mgmt.containerinstance.models.StorageProfile": null, + "azure.mgmt.containerinstance.models.SystemData": null, + "azure.mgmt.containerinstance.models.UpdateProfile": null, + "azure.mgmt.containerinstance.models.UpdateProfileRollingUpdateProfile": null, + "azure.mgmt.containerinstance.models.Usage": null, + "azure.mgmt.containerinstance.models.UsageListResult": null, + "azure.mgmt.containerinstance.models.UsageName": null, + "azure.mgmt.containerinstance.models.UserAssignedIdentities": null, + "azure.mgmt.containerinstance.models.Volume": null, + "azure.mgmt.containerinstance.models.VolumeMount": null, + "azure.mgmt.containerinstance.models.ContainerNetworkProtocol": null, + "azure.mgmt.containerinstance.models.GpuSku": null, + "azure.mgmt.containerinstance.models.Scheme": null, + "azure.mgmt.containerinstance.models.ContainerGroupNetworkProtocol": null, + "azure.mgmt.containerinstance.models.IdentityAccessLevel": null, + "azure.mgmt.containerinstance.models.ResourceIdentityType": null, + "azure.mgmt.containerinstance.models.ContainerGroupProvisioningState": null, + "azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy": null, + "azure.mgmt.containerinstance.models.ContainerGroupIpAddressType": null, + "azure.mgmt.containerinstance.models.DnsNameLabelReusePolicy": null, + "azure.mgmt.containerinstance.models.OperatingSystemTypes": null, + "azure.mgmt.containerinstance.models.LogAnalyticsLogType": null, + "azure.mgmt.containerinstance.models.ContainerGroupSku": null, + "azure.mgmt.containerinstance.models.ContainerGroupPriority": null, + "azure.mgmt.containerinstance.models.ContainerInstanceOperationsOrigin": null, + "azure.mgmt.containerinstance.models.AzureFileShareAccessType": null, + "azure.mgmt.containerinstance.models.AzureFileShareAccessTier": null, + "azure.mgmt.containerinstance.models.CreatedByType": null, + "azure.mgmt.containerinstance.models.NGroupProvisioningState": null, + "azure.mgmt.containerinstance.models.NGroupUpdateMode": null, + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.list": null, + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.list": null, + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.list_by_resource_group": null, + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.list_by_resource_group": null, + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.get": null, + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.get": null, + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.begin_create_or_update": null, + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.begin_create_or_update": null, + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.update": null, + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.update": null, + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.begin_delete": null, + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.begin_delete": null, + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.begin_restart": null, + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.begin_restart": null, + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.stop": null, + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.stop": null, + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.begin_start": null, + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.begin_start": null, + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.get_outbound_network_dependencies_endpoints": null, + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.get_outbound_network_dependencies_endpoints": null, + "azure.mgmt.containerinstance.operations.Operations.list": null, + "azure.mgmt.containerinstance.aio.operations.Operations.list": null, + "azure.mgmt.containerinstance.operations.LocationOperations.list_usage": null, + "azure.mgmt.containerinstance.aio.operations.LocationOperations.list_usage": null, + "azure.mgmt.containerinstance.operations.LocationOperations.list_cached_images": null, + "azure.mgmt.containerinstance.aio.operations.LocationOperations.list_cached_images": null, + "azure.mgmt.containerinstance.operations.LocationOperations.list_capabilities": null, + "azure.mgmt.containerinstance.aio.operations.LocationOperations.list_capabilities": null, + "azure.mgmt.containerinstance.operations.ContainersOperations.list_logs": null, + "azure.mgmt.containerinstance.aio.operations.ContainersOperations.list_logs": null, + "azure.mgmt.containerinstance.operations.ContainersOperations.execute_command": null, + "azure.mgmt.containerinstance.aio.operations.ContainersOperations.execute_command": null, + "azure.mgmt.containerinstance.operations.ContainersOperations.attach": null, + "azure.mgmt.containerinstance.aio.operations.ContainersOperations.attach": null, + "azure.mgmt.containerinstance.operations.SubnetServiceAssociationLinkOperations.begin_delete": null, + "azure.mgmt.containerinstance.aio.operations.SubnetServiceAssociationLinkOperations.begin_delete": null, + "azure.mgmt.containerinstance.operations.NGroupsOperations.get": null, + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.get": null, + "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_create_or_update": null, + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_create_or_update": null, + "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_update": null, + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_update": null, + "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_delete": null, + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_delete": null, + "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_start": null, + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_start": null, + "azure.mgmt.containerinstance.operations.NGroupsOperations.stop": null, + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.stop": null, + "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_restart": null, + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_restart": null, + "azure.mgmt.containerinstance.operations.NGroupsOperations.list_by_resource_group": null, + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.list_by_resource_group": null, + "azure.mgmt.containerinstance.operations.NGroupsOperations.list": null, + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.list": null, + "azure.mgmt.containerinstance.operations.CGProfilesOperations.list_by_subscription": null, + "azure.mgmt.containerinstance.aio.operations.CGProfilesOperations.list_by_subscription": null, + "azure.mgmt.containerinstance.operations.CGProfilesOperations.list_by_resource_group": null, + "azure.mgmt.containerinstance.aio.operations.CGProfilesOperations.list_by_resource_group": null, + "azure.mgmt.containerinstance.operations.CGProfileOperations.create_or_update": null, + "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.create_or_update": null, + "azure.mgmt.containerinstance.operations.CGProfileOperations.update": null, + "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.update": null, + "azure.mgmt.containerinstance.operations.CGProfileOperations.get": null, + "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.get": null, + "azure.mgmt.containerinstance.operations.CGProfileOperations.delete": null, + "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.delete": null, + "azure.mgmt.containerinstance.operations.CGProfileOperations.list_all_revisions": null, + "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.list_all_revisions": null, + "azure.mgmt.containerinstance.operations.CGProfileOperations.get_by_revision_number": null, + "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.get_by_revision_number": null + } +} \ No newline at end of file diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/__init__.py index 8db66d3d0f0f..d55ccad1f573 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/__init__.py @@ -1 +1 @@ -__path__ = __import__("pkgutil").extend_path(__path__, __name__) +__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/__init__.py index 8db66d3d0f0f..d55ccad1f573 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/__init__.py @@ -1 +1 @@ -__path__ = __import__("pkgutil").extend_path(__path__, __name__) +__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/__init__.py index f2940eb2b25d..754b06db49f1 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/__init__.py @@ -5,15 +5,21 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +# pylint: disable=wrong-import-position -from ._container_instance_management_client import ContainerInstanceManagementClient +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from ._patch import * # pylint: disable=unused-wildcard-import + +from ._container_instance_management_client import ContainerInstanceManagementClient # type: ignore from ._version import VERSION __version__ = VERSION try: from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import + from ._patch import * except ImportError: _patch_all = [] from ._patch import patch_sdk as _patch_sdk @@ -21,6 +27,6 @@ __all__ = [ "ContainerInstanceManagementClient", ] -__all__.extend([p for p in _patch_all if p not in __all__]) +__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py index 79ddd479831a..a961d26f028b 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, TYPE_CHECKING +from typing import Any, Optional, TYPE_CHECKING from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy @@ -14,7 +14,7 @@ from ._version import VERSION if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports + from azure.core import AzureClouds from azure.core.credentials import TokenCredential @@ -28,13 +28,22 @@ class ContainerInstanceManagementClientConfiguration: # pylint: disable=too-man :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is + None. + :type cloud_setting: ~azure.core.AzureClouds + :keyword api_version: Api Version. Default value is "2025-09-01". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2024-05-01-preview") + def __init__( + self, + credential: "TokenCredential", + subscription_id: str, + cloud_setting: Optional["AzureClouds"] = None, + **kwargs: Any + ) -> None: + api_version: str = kwargs.pop("api_version", "2025-09-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") @@ -43,6 +52,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs self.credential = credential self.subscription_id = subscription_id + self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) kwargs.setdefault("sdk_moniker", "mgmt-containerinstance/{}".format(VERSION)) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_container_instance_management_client.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_container_instance_management_client.py index b3dceda732e2..fa31ccc44627 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_container_instance_management_client.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_container_instance_management_client.py @@ -7,33 +7,36 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, TYPE_CHECKING +from typing import Any, Optional, TYPE_CHECKING, cast from typing_extensions import Self from azure.core.pipeline import policies from azure.core.rest import HttpRequest, HttpResponse +from azure.core.settings import settings from azure.mgmt.core import ARMPipelineClient from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy +from azure.mgmt.core.tools import get_arm_endpoints from . import models as _models from ._configuration import ContainerInstanceManagementClientConfiguration -from ._serialization import Deserializer, Serializer +from ._utils.serialization import Deserializer, Serializer from .operations import ( - ContainerGroupProfileOperations, - ContainerGroupProfilesOperations, + CGProfileOperations, + CGProfilesOperations, ContainerGroupsOperations, ContainersOperations, LocationOperations, + NGroupsOperations, Operations, SubnetServiceAssociationLinkOperations, ) if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports + from azure.core import AzureClouds from azure.core.credentials import TokenCredential -class ContainerInstanceManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes +class ContainerInstanceManagementClient: # pylint: disable=too-many-instance-attributes """ContainerInstanceManagementClient. :ivar container_groups: ContainerGroupsOperations operations @@ -47,20 +50,23 @@ class ContainerInstanceManagementClient: # pylint: disable=client-accepts-api-v :ivar subnet_service_association_link: SubnetServiceAssociationLinkOperations operations :vartype subnet_service_association_link: azure.mgmt.containerinstance.operations.SubnetServiceAssociationLinkOperations - :ivar container_group_profiles: ContainerGroupProfilesOperations operations - :vartype container_group_profiles: - azure.mgmt.containerinstance.operations.ContainerGroupProfilesOperations - :ivar container_group_profile: ContainerGroupProfileOperations operations - :vartype container_group_profile: - azure.mgmt.containerinstance.operations.ContainerGroupProfileOperations + :ivar ngroups: NGroupsOperations operations + :vartype ngroups: azure.mgmt.containerinstance.operations.NGroupsOperations + :ivar cg_profiles: CGProfilesOperations operations + :vartype cg_profiles: azure.mgmt.containerinstance.operations.CGProfilesOperations + :ivar cg_profile: CGProfileOperations operations + :vartype cg_profile: azure.mgmt.containerinstance.operations.CGProfileOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". + :param base_url: Service URL. Default value is None. :type base_url: str - :keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is + None. + :paramtype cloud_setting: ~azure.core.AzureClouds + :keyword api_version: Api Version. Default value is "2025-09-01". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -70,12 +76,24 @@ def __init__( self, credential: "TokenCredential", subscription_id: str, - base_url: str = "https://management.azure.com", + base_url: Optional[str] = None, + *, + cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: + _cloud = cloud_setting or settings.current.azure_cloud # type: ignore + _endpoints = get_arm_endpoints(_cloud) + if not base_url: + base_url = _endpoints["resource_manager"] + credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"]) self._config = ContainerInstanceManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs + credential=credential, + subscription_id=subscription_id, + cloud_setting=cloud_setting, + credential_scopes=credential_scopes, + **kwargs ) + _policies = kwargs.pop("policies", None) if _policies is None: _policies = [ @@ -94,7 +112,7 @@ def __init__( policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, self._config.http_logging_policy, ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) + self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs) client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) @@ -109,12 +127,9 @@ def __init__( self.subnet_service_association_link = SubnetServiceAssociationLinkOperations( self._client, self._config, self._serialize, self._deserialize ) - self.container_group_profiles = ContainerGroupProfilesOperations( - self._client, self._config, self._serialize, self._deserialize - ) - self.container_group_profile = ContainerGroupProfileOperations( - self._client, self._config, self._serialize, self._deserialize - ) + self.ngroups = NGroupsOperations(self._client, self._config, self._serialize, self._deserialize) + self.cg_profiles = CGProfilesOperations(self._client, self._config, self._serialize, self._deserialize) + self.cg_profile = CGProfileOperations(self._client, self._config, self._serialize, self._deserialize) def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: """Runs the network request through the client's chained policies. diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/__init__.py new file mode 100644 index 000000000000..0af9b28f6607 --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_serialization.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/serialization.py similarity index 81% rename from sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_serialization.py rename to sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/serialization.py index 8139854b97bb..6da830e0cf4a 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_serialization.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/serialization.py @@ -1,30 +1,12 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 # -------------------------------------------------------------------------- -# # Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# +# 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. # -------------------------------------------------------------------------- -# pylint: skip-file # pyright: reportUnnecessaryTypeIgnoreComment=false from base64 import b64decode, b64encode @@ -39,7 +21,6 @@ import sys import codecs from typing import ( - Dict, Any, cast, Optional, @@ -48,11 +29,7 @@ IO, Mapping, Callable, - TypeVar, MutableMapping, - Type, - List, - Mapping, ) try: @@ -62,13 +39,13 @@ import xml.etree.ElementTree as ET import isodate # type: ignore +from typing_extensions import Self from azure.core.exceptions import DeserializationError, SerializationError from azure.core.serialization import NULL as CoreNull _BOM = codecs.BOM_UTF8.decode(encoding="utf-8") -ModelType = TypeVar("ModelType", bound="Model") JSON = MutableMapping[str, Any] @@ -91,6 +68,8 @@ def deserialize_from_text(cls, data: Optional[Union[AnyStr, IO]], content_type: :param data: Input, could be bytes or stream (will be decoded with UTF8) or text :type data: str or bytes or IO :param str content_type: The content type. + :return: The deserialized data. + :rtype: object """ if hasattr(data, "read"): # Assume a stream @@ -112,7 +91,7 @@ def deserialize_from_text(cls, data: Optional[Union[AnyStr, IO]], content_type: try: return json.loads(data_as_str) except ValueError as err: - raise DeserializationError("JSON is invalid: {}".format(err), err) + raise DeserializationError("JSON is invalid: {}".format(err), err) from err elif "xml" in (content_type or []): try: @@ -155,6 +134,11 @@ def deserialize_from_http_generics(cls, body_bytes: Optional[Union[AnyStr, IO]], Use bytes and headers to NOT use any requests/aiohttp or whatever specific implementation. Headers will tested for "content-type" + + :param bytes body_bytes: The body of the response. + :param dict headers: The headers of the response. + :returns: The deserialized data. + :rtype: object """ # Try to use content-type from headers if available content_type = None @@ -179,80 +163,31 @@ def deserialize_from_http_generics(cls, body_bytes: Optional[Union[AnyStr, IO]], except NameError: _long_type = int - -class UTC(datetime.tzinfo): - """Time Zone info for handling UTC""" - - def utcoffset(self, dt): - """UTF offset for UTC is 0.""" - return datetime.timedelta(0) - - def tzname(self, dt): - """Timestamp representation.""" - return "Z" - - def dst(self, dt): - """No daylight saving for UTC.""" - return datetime.timedelta(hours=1) - - -try: - from datetime import timezone as _FixedOffset # type: ignore -except ImportError: # Python 2.7 - - class _FixedOffset(datetime.tzinfo): # type: ignore - """Fixed offset in minutes east from UTC. - Copy/pasted from Python doc - :param datetime.timedelta offset: offset in timedelta format - """ - - def __init__(self, offset): - self.__offset = offset - - def utcoffset(self, dt): - return self.__offset - - def tzname(self, dt): - return str(self.__offset.total_seconds() / 3600) - - def __repr__(self): - return "".format(self.tzname(None)) - - def dst(self, dt): - return datetime.timedelta(0) - - def __getinitargs__(self): - return (self.__offset,) - - -try: - from datetime import timezone - - TZ_UTC = timezone.utc -except ImportError: - TZ_UTC = UTC() # type: ignore +TZ_UTC = datetime.timezone.utc _FLATTEN = re.compile(r"(? None: - self.additional_properties: Optional[Dict[str, Any]] = {} - for k in kwargs: + self.additional_properties: Optional[dict[str, Any]] = {} + for k in kwargs: # pylint: disable=consider-using-dict-items if k not in self._attribute_map: _LOGGER.warning("%s is not a known attribute of class %s and will be ignored", k, self.__class__) elif k in self._validation and self._validation[k].get("readonly", False): @@ -300,13 +242,23 @@ def __init__(self, **kwargs: Any) -> None: setattr(self, k, kwargs[k]) def __eq__(self, other: Any) -> bool: - """Compare objects by comparing all attributes.""" + """Compare objects by comparing all attributes. + + :param object other: The object to compare + :returns: True if objects are equal + :rtype: bool + """ if isinstance(other, self.__class__): return self.__dict__ == other.__dict__ return False def __ne__(self, other: Any) -> bool: - """Compare objects by comparing all attributes.""" + """Compare objects by comparing all attributes. + + :param object other: The object to compare + :returns: True if objects are not equal + :rtype: bool + """ return not self.__eq__(other) def __str__(self) -> str: @@ -326,7 +278,11 @@ def is_xml_model(cls) -> bool: @classmethod def _create_xml_node(cls): - """Create XML node.""" + """Create XML node. + + :returns: The XML node + :rtype: xml.etree.ElementTree.Element + """ try: xml_map = cls._xml_map # type: ignore except AttributeError: @@ -346,12 +302,14 @@ def serialize(self, keep_readonly: bool = False, **kwargs: Any) -> JSON: :rtype: dict """ serializer = Serializer(self._infer_class_models()) - return serializer._serialize(self, keep_readonly=keep_readonly, **kwargs) # type: ignore + return serializer._serialize( # type: ignore # pylint: disable=protected-access + self, keep_readonly=keep_readonly, **kwargs + ) def as_dict( self, keep_readonly: bool = True, - key_transformer: Callable[[str, Dict[str, Any], Any], Any] = attribute_transformer, + key_transformer: Callable[[str, dict[str, Any], Any], Any] = attribute_transformer, **kwargs: Any ) -> JSON: """Return a dict that can be serialized using json.dump. @@ -380,12 +338,15 @@ def my_key_transformer(key, attr_desc, value): If you want XML serialization, you can pass the kwargs is_xml=True. + :param bool keep_readonly: If you want to serialize the readonly attributes :param function key_transformer: A key transformer function. :returns: A dict JSON compatible object :rtype: dict """ serializer = Serializer(self._infer_class_models()) - return serializer._serialize(self, key_transformer=key_transformer, keep_readonly=keep_readonly, **kwargs) # type: ignore + return serializer._serialize( # type: ignore # pylint: disable=protected-access + self, key_transformer=key_transformer, keep_readonly=keep_readonly, **kwargs + ) @classmethod def _infer_class_models(cls): @@ -395,30 +356,31 @@ def _infer_class_models(cls): client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} if cls.__name__ not in client_models: raise ValueError("Not Autorest generated code") - except Exception: + except Exception: # pylint: disable=broad-exception-caught # Assume it's not Autorest generated (tests?). Add ourselves as dependencies. client_models = {cls.__name__: cls} return client_models @classmethod - def deserialize(cls: Type[ModelType], data: Any, content_type: Optional[str] = None) -> ModelType: + def deserialize(cls, data: Any, content_type: Optional[str] = None) -> Self: """Parse a str using the RestAPI syntax and return a model. :param str data: A str using RestAPI structure. JSON by default. :param str content_type: JSON by default, set application/xml if XML. :returns: An instance of this model - :raises: DeserializationError if something went wrong + :raises DeserializationError: if something went wrong + :rtype: Self """ deserializer = Deserializer(cls._infer_class_models()) return deserializer(cls.__name__, data, content_type=content_type) # type: ignore @classmethod def from_dict( - cls: Type[ModelType], + cls, data: Any, - key_extractors: Optional[Callable[[str, Dict[str, Any], Any], Any]] = None, + key_extractors: Optional[Callable[[str, dict[str, Any], Any], Any]] = None, content_type: Optional[str] = None, - ) -> ModelType: + ) -> Self: """Parse a dict using given key extractor return a model. By default consider key @@ -426,9 +388,11 @@ def from_dict( and last_rest_key_case_insensitive_extractor) :param dict data: A dict using RestAPI structure + :param function key_extractors: A key extractor function. :param str content_type: JSON by default, set application/xml if XML. :returns: An instance of this model - :raises: DeserializationError if something went wrong + :raises DeserializationError: if something went wrong + :rtype: Self """ deserializer = Deserializer(cls._infer_class_models()) deserializer.key_extractors = ( # type: ignore @@ -448,21 +412,25 @@ def _flatten_subtype(cls, key, objects): return {} result = dict(cls._subtype_map[key]) for valuetype in cls._subtype_map[key].values(): - result.update(objects[valuetype]._flatten_subtype(key, objects)) + result |= objects[valuetype]._flatten_subtype(key, objects) # pylint: disable=protected-access return result @classmethod def _classify(cls, response, objects): """Check the class _subtype_map for any child classes. We want to ignore any inherited _subtype_maps. - Remove the polymorphic key from the initial data. + + :param dict response: The initial data + :param dict objects: The class objects + :returns: The class to be used + :rtype: class """ for subtype_key in cls.__dict__.get("_subtype_map", {}).keys(): subtype_value = None if not isinstance(response, ET.Element): rest_api_response_key = cls._get_rest_key_parts(subtype_key)[-1] - subtype_value = response.pop(rest_api_response_key, None) or response.pop(subtype_key, None) + subtype_value = response.get(rest_api_response_key, None) or response.get(subtype_key, None) else: subtype_value = xml_key_extractor(subtype_key, cls._attribute_map[subtype_key], response) if subtype_value: @@ -501,11 +469,13 @@ def _decode_attribute_map_key(key): inside the received data. :param str key: A key string from the generated code + :returns: The decoded key + :rtype: str """ return key.replace("\\.", ".") -class Serializer(object): +class Serializer: # pylint: disable=too-many-public-methods """Request object model serializer.""" basic_types = {str: "str", int: "int", bool: "bool", float: "float"} @@ -540,7 +510,7 @@ class Serializer(object): "multiple": lambda x, y: x % y != 0, } - def __init__(self, classes: Optional[Mapping[str, type]] = None): + def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None: self.serialize_type = { "iso-8601": Serializer.serialize_iso, "rfc-1123": Serializer.serialize_rfc, @@ -556,17 +526,20 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None): "[]": self.serialize_iter, "{}": self.serialize_dict, } - self.dependencies: Dict[str, type] = dict(classes) if classes else {} + self.dependencies: dict[str, type] = dict(classes) if classes else {} self.key_transformer = full_restapi_key_transformer self.client_side_validation = True - def _serialize(self, target_obj, data_type=None, **kwargs): + def _serialize( # pylint: disable=too-many-nested-blocks, too-many-branches, too-many-statements, too-many-locals + self, target_obj, data_type=None, **kwargs + ): """Serialize data into a string according to type. - :param target_obj: The data to be serialized. + :param object target_obj: The data to be serialized. :param str data_type: The type to be serialized from. :rtype: str, dict - :raises: SerializationError if serialization fails. + :raises SerializationError: if serialization fails. + :returns: The serialized data. """ key_transformer = kwargs.get("key_transformer", self.key_transformer) keep_readonly = kwargs.get("keep_readonly", False) @@ -592,17 +565,19 @@ def _serialize(self, target_obj, data_type=None, **kwargs): serialized = {} if is_xml_model_serialization: - serialized = target_obj._create_xml_node() + serialized = target_obj._create_xml_node() # pylint: disable=protected-access try: - attributes = target_obj._attribute_map + attributes = target_obj._attribute_map # pylint: disable=protected-access for attr, attr_desc in attributes.items(): attr_name = attr - if not keep_readonly and target_obj._validation.get(attr_name, {}).get("readonly", False): + if not keep_readonly and target_obj._validation.get( # pylint: disable=protected-access + attr_name, {} + ).get("readonly", False): continue if attr_name == "additional_properties" and attr_desc["key"] == "": if target_obj.additional_properties is not None: - serialized.update(target_obj.additional_properties) + serialized |= target_obj.additional_properties continue try: @@ -633,7 +608,8 @@ def _serialize(self, target_obj, data_type=None, **kwargs): if isinstance(new_attr, list): serialized.extend(new_attr) # type: ignore elif isinstance(new_attr, ET.Element): - # If the down XML has no XML/Name, we MUST replace the tag with the local tag. But keeping the namespaces. + # If the down XML has no XML/Name, + # we MUST replace the tag with the local tag. But keeping the namespaces. if "name" not in getattr(orig_attr, "_xml_map", {}): splitted_tag = new_attr.tag.split("}") if len(splitted_tag) == 2: # Namespace @@ -664,17 +640,17 @@ def _serialize(self, target_obj, data_type=None, **kwargs): except (AttributeError, KeyError, TypeError) as err: msg = "Attribute {} in object {} cannot be serialized.\n{}".format(attr_name, class_name, str(target_obj)) raise SerializationError(msg) from err - else: - return serialized + return serialized def body(self, data, data_type, **kwargs): """Serialize data intended for a request body. - :param data: The data to be serialized. + :param object data: The data to be serialized. :param str data_type: The type to be serialized from. :rtype: dict - :raises: SerializationError if serialization fails. - :raises: ValueError if data is None + :raises SerializationError: if serialization fails. + :raises ValueError: if data is None + :returns: The serialized request body """ # Just in case this is a dict @@ -703,7 +679,7 @@ def body(self, data, data_type, **kwargs): attribute_key_case_insensitive_extractor, last_rest_key_case_insensitive_extractor, ] - data = deserializer._deserialize(data_type, data) + data = deserializer._deserialize(data_type, data) # pylint: disable=protected-access except DeserializationError as err: raise SerializationError("Unable to build a model: " + str(err)) from err @@ -712,11 +688,13 @@ def body(self, data, data_type, **kwargs): def url(self, name, data, data_type, **kwargs): """Serialize data intended for a URL path. - :param data: The data to be serialized. + :param str name: The name of the URL path parameter. + :param object data: The data to be serialized. :param str data_type: The type to be serialized from. :rtype: str - :raises: TypeError if serialization fails. - :raises: ValueError if data is None + :returns: The serialized URL path + :raises TypeError: if serialization fails. + :raises ValueError: if data is None """ try: output = self.serialize_data(data, data_type, **kwargs) @@ -728,21 +706,20 @@ def url(self, name, data, data_type, **kwargs): output = output.replace("{", quote("{")).replace("}", quote("}")) else: output = quote(str(output), safe="") - except SerializationError: - raise TypeError("{} must be type {}.".format(name, data_type)) - else: - return output + except SerializationError as exc: + raise TypeError("{} must be type {}.".format(name, data_type)) from exc + return output def query(self, name, data, data_type, **kwargs): """Serialize data intended for a URL query. - :param data: The data to be serialized. + :param str name: The name of the query parameter. + :param object data: The data to be serialized. :param str data_type: The type to be serialized from. - :keyword bool skip_quote: Whether to skip quote the serialized result. - Defaults to False. :rtype: str, list - :raises: TypeError if serialization fails. - :raises: ValueError if data is None + :raises TypeError: if serialization fails. + :raises ValueError: if data is None + :returns: The serialized query parameter """ try: # Treat the list aside, since we don't want to encode the div separator @@ -759,19 +736,20 @@ def query(self, name, data, data_type, **kwargs): output = str(output) else: output = quote(str(output), safe="") - except SerializationError: - raise TypeError("{} must be type {}.".format(name, data_type)) - else: - return str(output) + except SerializationError as exc: + raise TypeError("{} must be type {}.".format(name, data_type)) from exc + return str(output) def header(self, name, data, data_type, **kwargs): """Serialize data intended for a request header. - :param data: The data to be serialized. + :param str name: The name of the header. + :param object data: The data to be serialized. :param str data_type: The type to be serialized from. :rtype: str - :raises: TypeError if serialization fails. - :raises: ValueError if data is None + :raises TypeError: if serialization fails. + :raises ValueError: if data is None + :returns: The serialized header """ try: if data_type in ["[str]"]: @@ -780,21 +758,20 @@ def header(self, name, data, data_type, **kwargs): output = self.serialize_data(data, data_type, **kwargs) if data_type == "bool": output = json.dumps(output) - except SerializationError: - raise TypeError("{} must be type {}.".format(name, data_type)) - else: - return str(output) + except SerializationError as exc: + raise TypeError("{} must be type {}.".format(name, data_type)) from exc + return str(output) def serialize_data(self, data, data_type, **kwargs): """Serialize generic data according to supplied data type. - :param data: The data to be serialized. + :param object data: The data to be serialized. :param str data_type: The type to be serialized from. - :param bool required: Whether it's essential that the data not be - empty or None - :raises: AttributeError if required data is None. - :raises: ValueError if data is None - :raises: SerializationError if serialization fails. + :raises AttributeError: if required data is None. + :raises ValueError: if data is None + :raises SerializationError: if serialization fails. + :returns: The serialized data. + :rtype: str, int, float, bool, dict, list """ if data is None: raise ValueError("No value for given attribute") @@ -805,12 +782,12 @@ def serialize_data(self, data, data_type, **kwargs): if data_type in self.basic_types.values(): return self.serialize_basic(data, data_type, **kwargs) - elif data_type in self.serialize_type: + if data_type in self.serialize_type: return self.serialize_type[data_type](data, **kwargs) # If dependencies is empty, try with current data class # It has to be a subclass of Enum anyway - enum_type = self.dependencies.get(data_type, data.__class__) + enum_type = self.dependencies.get(data_type, cast(type, data.__class__)) if issubclass(enum_type, Enum): return Serializer.serialize_enum(data, enum_obj=enum_type) @@ -821,11 +798,10 @@ def serialize_data(self, data, data_type, **kwargs): except (ValueError, TypeError) as err: msg = "Unable to serialize value: {!r} as type: {!r}." raise SerializationError(msg.format(data, data_type)) from err - else: - return self._serialize(data, **kwargs) + return self._serialize(data, **kwargs) @classmethod - def _get_custom_serializers(cls, data_type, **kwargs): + def _get_custom_serializers(cls, data_type, **kwargs): # pylint: disable=inconsistent-return-statements custom_serializer = kwargs.get("basic_types_serializers", {}).get(data_type) if custom_serializer: return custom_serializer @@ -841,23 +817,33 @@ def serialize_basic(cls, data, data_type, **kwargs): - basic_types_serializers dict[str, callable] : If set, use the callable as serializer - is_xml bool : If set, use xml_basic_types_serializers - :param data: Object to be serialized. + :param obj data: Object to be serialized. :param str data_type: Type of object in the iterable. + :rtype: str, int, float, bool + :return: serialized object + :raises TypeError: raise if data_type is not one of str, int, float, bool. """ custom_serializer = cls._get_custom_serializers(data_type, **kwargs) if custom_serializer: return custom_serializer(data) if data_type == "str": return cls.serialize_unicode(data) - return eval(data_type)(data) # nosec + if data_type == "int": + return int(data) + if data_type == "float": + return float(data) + if data_type == "bool": + return bool(data) + raise TypeError("Unknown basic data type: {}".format(data_type)) @classmethod def serialize_unicode(cls, data): """Special handling for serializing unicode strings in Py2. Encode to UTF-8 if unicode, otherwise handle as a str. - :param data: Object to be serialized. + :param str data: Object to be serialized. :rtype: str + :return: serialized object """ try: # If I received an enum, return its value return data.value @@ -871,8 +857,7 @@ def serialize_unicode(cls, data): return data except NameError: return str(data) - else: - return str(data) + return str(data) def serialize_iter(self, data, iter_type, div=None, **kwargs): """Serialize iterable. @@ -882,15 +867,13 @@ def serialize_iter(self, data, iter_type, div=None, **kwargs): serialization_ctxt['type'] should be same as data_type. - is_xml bool : If set, serialize as XML - :param list attr: Object to be serialized. + :param list data: Object to be serialized. :param str iter_type: Type of object in the iterable. - :param bool required: Whether the objects in the iterable must - not be None or empty. :param str div: If set, this str will be used to combine the elements in the iterable into a combined string. Default is 'None'. - :keyword bool do_quote: Whether to quote the serialized result of each iterable element. Defaults to False. :rtype: list, str + :return: serialized iterable """ if isinstance(data, str): raise SerializationError("Refuse str type as a valid iter type.") @@ -945,9 +928,8 @@ def serialize_dict(self, attr, dict_type, **kwargs): :param dict attr: Object to be serialized. :param str dict_type: Type of object in the dictionary. - :param bool required: Whether the objects in the dictionary must - not be None or empty. :rtype: dict + :return: serialized dictionary """ serialization_ctxt = kwargs.get("serialization_ctxt", {}) serialized = {} @@ -971,7 +953,7 @@ def serialize_dict(self, attr, dict_type, **kwargs): return serialized - def serialize_object(self, attr, **kwargs): + def serialize_object(self, attr, **kwargs): # pylint: disable=too-many-return-statements """Serialize a generic object. This will be handled as a dictionary. If object passed in is not a basic type (str, int, float, dict, list) it will simply be @@ -979,6 +961,7 @@ def serialize_object(self, attr, **kwargs): :param dict attr: Object to be serialized. :rtype: dict or str + :return: serialized object """ if attr is None: return None @@ -1003,7 +986,7 @@ def serialize_object(self, attr, **kwargs): return self.serialize_decimal(attr) # If it's a model or I know this dependency, serialize as a Model - elif obj_type in self.dependencies.values() or isinstance(attr, Model): + if obj_type in self.dependencies.values() or isinstance(attr, Model): return self._serialize(attr) if obj_type == dict: @@ -1034,56 +1017,61 @@ def serialize_enum(attr, enum_obj=None): try: enum_obj(result) # type: ignore return result - except ValueError: + except ValueError as exc: for enum_value in enum_obj: # type: ignore if enum_value.value.lower() == str(attr).lower(): return enum_value.value error = "{!r} is not valid value for enum {!r}" - raise SerializationError(error.format(attr, enum_obj)) + raise SerializationError(error.format(attr, enum_obj)) from exc @staticmethod - def serialize_bytearray(attr, **kwargs): + def serialize_bytearray(attr, **kwargs): # pylint: disable=unused-argument """Serialize bytearray into base-64 string. - :param attr: Object to be serialized. + :param str attr: Object to be serialized. :rtype: str + :return: serialized base64 """ return b64encode(attr).decode() @staticmethod - def serialize_base64(attr, **kwargs): + def serialize_base64(attr, **kwargs): # pylint: disable=unused-argument """Serialize str into base-64 string. - :param attr: Object to be serialized. + :param str attr: Object to be serialized. :rtype: str + :return: serialized base64 """ encoded = b64encode(attr).decode("ascii") return encoded.strip("=").replace("+", "-").replace("/", "_") @staticmethod - def serialize_decimal(attr, **kwargs): + def serialize_decimal(attr, **kwargs): # pylint: disable=unused-argument """Serialize Decimal object to float. - :param attr: Object to be serialized. + :param decimal attr: Object to be serialized. :rtype: float + :return: serialized decimal """ return float(attr) @staticmethod - def serialize_long(attr, **kwargs): + def serialize_long(attr, **kwargs): # pylint: disable=unused-argument """Serialize long (Py2) or int (Py3). - :param attr: Object to be serialized. + :param int attr: Object to be serialized. :rtype: int/long + :return: serialized long """ return _long_type(attr) @staticmethod - def serialize_date(attr, **kwargs): + def serialize_date(attr, **kwargs): # pylint: disable=unused-argument """Serialize Date object into ISO-8601 formatted string. :param Date attr: Object to be serialized. :rtype: str + :return: serialized date """ if isinstance(attr, str): attr = isodate.parse_date(attr) @@ -1091,11 +1079,12 @@ def serialize_date(attr, **kwargs): return t @staticmethod - def serialize_time(attr, **kwargs): + def serialize_time(attr, **kwargs): # pylint: disable=unused-argument """Serialize Time object into ISO-8601 formatted string. :param datetime.time attr: Object to be serialized. :rtype: str + :return: serialized time """ if isinstance(attr, str): attr = isodate.parse_time(attr) @@ -1105,30 +1094,32 @@ def serialize_time(attr, **kwargs): return t @staticmethod - def serialize_duration(attr, **kwargs): + def serialize_duration(attr, **kwargs): # pylint: disable=unused-argument """Serialize TimeDelta object into ISO-8601 formatted string. :param TimeDelta attr: Object to be serialized. :rtype: str + :return: serialized duration """ if isinstance(attr, str): attr = isodate.parse_duration(attr) return isodate.duration_isoformat(attr) @staticmethod - def serialize_rfc(attr, **kwargs): + def serialize_rfc(attr, **kwargs): # pylint: disable=unused-argument """Serialize Datetime object into RFC-1123 formatted string. :param Datetime attr: Object to be serialized. :rtype: str - :raises: TypeError if format invalid. + :raises TypeError: if format invalid. + :return: serialized rfc """ try: if not attr.tzinfo: _LOGGER.warning("Datetime with no tzinfo will be considered UTC.") utc = attr.utctimetuple() - except AttributeError: - raise TypeError("RFC1123 object must be valid Datetime object.") + except AttributeError as exc: + raise TypeError("RFC1123 object must be valid Datetime object.") from exc return "{}, {:02} {} {:04} {:02}:{:02}:{:02} GMT".format( Serializer.days[utc.tm_wday], @@ -1141,12 +1132,13 @@ def serialize_rfc(attr, **kwargs): ) @staticmethod - def serialize_iso(attr, **kwargs): + def serialize_iso(attr, **kwargs): # pylint: disable=unused-argument """Serialize Datetime object into ISO-8601 formatted string. :param Datetime attr: Object to be serialized. :rtype: str - :raises: SerializationError if format invalid. + :raises SerializationError: if format invalid. + :return: serialized iso """ if isinstance(attr, str): attr = isodate.parse_datetime(attr) @@ -1172,13 +1164,14 @@ def serialize_iso(attr, **kwargs): raise TypeError(msg) from err @staticmethod - def serialize_unix(attr, **kwargs): + def serialize_unix(attr, **kwargs): # pylint: disable=unused-argument """Serialize Datetime object into IntTime format. This is represented as seconds. :param Datetime attr: Object to be serialized. :rtype: int - :raises: SerializationError if format invalid + :raises SerializationError: if format invalid + :return: serialied unix """ if isinstance(attr, int): return attr @@ -1186,17 +1179,17 @@ def serialize_unix(attr, **kwargs): if not attr.tzinfo: _LOGGER.warning("Datetime with no tzinfo will be considered UTC.") return int(calendar.timegm(attr.utctimetuple())) - except AttributeError: - raise TypeError("Unix time object must be valid Datetime object.") + except AttributeError as exc: + raise TypeError("Unix time object must be valid Datetime object.") from exc -def rest_key_extractor(attr, attr_desc, data): +def rest_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument key = attr_desc["key"] working_data = data while "." in key: # Need the cast, as for some reasons "split" is typed as list[str | Any] - dict_keys = cast(List[str], _FLATTEN.split(key)) + dict_keys = cast(list[str], _FLATTEN.split(key)) if len(dict_keys) == 1: key = _decode_attribute_map_key(dict_keys[0]) break @@ -1211,7 +1204,9 @@ def rest_key_extractor(attr, attr_desc, data): return working_data.get(key) -def rest_key_case_insensitive_extractor(attr, attr_desc, data): +def rest_key_case_insensitive_extractor( # pylint: disable=unused-argument, inconsistent-return-statements + attr, attr_desc, data +): key = attr_desc["key"] working_data = data @@ -1232,17 +1227,29 @@ def rest_key_case_insensitive_extractor(attr, attr_desc, data): return attribute_key_case_insensitive_extractor(key, None, working_data) -def last_rest_key_extractor(attr, attr_desc, data): - """Extract the attribute in "data" based on the last part of the JSON path key.""" +def last_rest_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument + """Extract the attribute in "data" based on the last part of the JSON path key. + + :param str attr: The attribute to extract + :param dict attr_desc: The attribute description + :param dict data: The data to extract from + :rtype: object + :returns: The extracted attribute + """ key = attr_desc["key"] dict_keys = _FLATTEN.split(key) return attribute_key_extractor(dict_keys[-1], None, data) -def last_rest_key_case_insensitive_extractor(attr, attr_desc, data): +def last_rest_key_case_insensitive_extractor(attr, attr_desc, data): # pylint: disable=unused-argument """Extract the attribute in "data" based on the last part of the JSON path key. This is the case insensitive version of "last_rest_key_extractor" + :param str attr: The attribute to extract + :param dict attr_desc: The attribute description + :param dict data: The data to extract from + :rtype: object + :returns: The extracted attribute """ key = attr_desc["key"] dict_keys = _FLATTEN.split(key) @@ -1279,7 +1286,7 @@ def _extract_name_from_internal_type(internal_type): return xml_name -def xml_key_extractor(attr, attr_desc, data): +def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument,too-many-return-statements if isinstance(data, dict): return None @@ -1331,22 +1338,21 @@ def xml_key_extractor(attr, attr_desc, data): if is_iter_type: if is_wrapped: return None # is_wrapped no node, we want None - else: - return [] # not wrapped, assume empty list + return [] # not wrapped, assume empty list return None # Assume it's not there, maybe an optional node. # If is_iter_type and not wrapped, return all found children if is_iter_type: if not is_wrapped: return children - else: # Iter and wrapped, should have found one node only (the wrap one) - if len(children) != 1: - raise DeserializationError( - "Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format( - xml_name - ) + # Iter and wrapped, should have found one node only (the wrap one) + if len(children) != 1: + raise DeserializationError( + "Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format( + xml_name ) - return list(children[0]) # Might be empty list and that's ok. + ) + return list(children[0]) # Might be empty list and that's ok. # Here it's not a itertype, we should have found one element only or empty if len(children) > 1: @@ -1354,7 +1360,7 @@ def xml_key_extractor(attr, attr_desc, data): return children[0] -class Deserializer(object): +class Deserializer: """Response object model deserializer. :param dict classes: Class type dictionary for deserializing complex types. @@ -1363,9 +1369,9 @@ class Deserializer(object): basic_types = {str: "str", int: "int", bool: "bool", float: "float"} - valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") + valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") - def __init__(self, classes: Optional[Mapping[str, type]] = None): + def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None: self.deserialize_type = { "iso-8601": Deserializer.deserialize_iso, "rfc-1123": Deserializer.deserialize_rfc, @@ -1385,7 +1391,7 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None): "duration": (isodate.Duration, datetime.timedelta), "iso-8601": (datetime.datetime), } - self.dependencies: Dict[str, type] = dict(classes) if classes else {} + self.dependencies: dict[str, type] = dict(classes) if classes else {} self.key_extractors = [rest_key_extractor, xml_key_extractor] # Additional properties only works if the "rest_key_extractor" is used to # extract the keys. Making it to work whatever the key extractor is too much @@ -1401,27 +1407,29 @@ def __call__(self, target_obj, response_data, content_type=None): :param str target_obj: Target data type to deserialize to. :param requests.Response response_data: REST response object. :param str content_type: Swagger "produces" if available. - :raises: DeserializationError if deserialization fails. + :raises DeserializationError: if deserialization fails. :return: Deserialized object. + :rtype: object """ data = self._unpack_content(response_data, content_type) return self._deserialize(target_obj, data) - def _deserialize(self, target_obj, data): + def _deserialize(self, target_obj, data): # pylint: disable=inconsistent-return-statements """Call the deserializer on a model. Data needs to be already deserialized as JSON or XML ElementTree :param str target_obj: Target data type to deserialize to. :param object data: Object to deserialize. - :raises: DeserializationError if deserialization fails. + :raises DeserializationError: if deserialization fails. :return: Deserialized object. + :rtype: object """ # This is already a model, go recursive just in case if hasattr(data, "_attribute_map"): constants = [name for name, config in getattr(data, "_validation", {}).items() if config.get("constant")] try: - for attr, mapconfig in data._attribute_map.items(): + for attr, mapconfig in data._attribute_map.items(): # pylint: disable=protected-access if attr in constants: continue value = getattr(data, attr) @@ -1440,13 +1448,13 @@ def _deserialize(self, target_obj, data): if isinstance(response, str): return self.deserialize_data(data, response) - elif isinstance(response, type) and issubclass(response, Enum): + if isinstance(response, type) and issubclass(response, Enum): return self.deserialize_enum(data, response) if data is None or data is CoreNull: return data try: - attributes = response._attribute_map # type: ignore + attributes = response._attribute_map # type: ignore # pylint: disable=protected-access d_attrs = {} for attr, attr_desc in attributes.items(): # Check empty string. If it's not empty, someone has a real "additionalProperties"... @@ -1476,9 +1484,8 @@ def _deserialize(self, target_obj, data): except (AttributeError, TypeError, KeyError) as err: msg = "Unable to deserialize to object: " + class_name # type: ignore raise DeserializationError(msg) from err - else: - additional_properties = self._build_additional_properties(attributes, data) - return self._instantiate_model(response, d_attrs, additional_properties) + additional_properties = self._build_additional_properties(attributes, data) + return self._instantiate_model(response, d_attrs, additional_properties) def _build_additional_properties(self, attribute_map, data): if not self.additional_properties_detection: @@ -1505,6 +1512,8 @@ def _classify_target(self, target, data): :param str target: The target object type to deserialize to. :param str/dict data: The response data to deserialize. + :return: The classified target object and its class name. + :rtype: tuple """ if target is None: return None, None @@ -1516,7 +1525,7 @@ def _classify_target(self, target, data): return target, target try: - target = target._classify(data, self.dependencies) # type: ignore + target = target._classify(data, self.dependencies) # type: ignore # pylint: disable=protected-access except AttributeError: pass # Target is not a Model, no classify return target, target.__class__.__name__ # type: ignore @@ -1531,10 +1540,12 @@ def failsafe_deserialize(self, target_obj, data, content_type=None): :param str target_obj: The target object type to deserialize to. :param str/dict data: The response data to deserialize. :param str content_type: Swagger "produces" if available. + :return: Deserialized object. + :rtype: object """ try: return self(target_obj, data, content_type=content_type) - except: + except: # pylint: disable=bare-except _LOGGER.debug( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True ) @@ -1552,10 +1563,12 @@ def _unpack_content(raw_data, content_type=None): If raw_data is something else, bypass all logic and return it directly. - :param raw_data: Data to be processed. - :param content_type: How to parse if raw_data is a string/bytes. + :param obj raw_data: Data to be processed. + :param str content_type: How to parse if raw_data is a string/bytes. :raises JSONDecodeError: If JSON is requested and parsing is impossible. :raises UnicodeDecodeError: If bytes is not UTF8 + :rtype: object + :return: Unpacked content. """ # Assume this is enough to detect a Pipeline Response without importing it context = getattr(raw_data, "context", {}) @@ -1579,24 +1592,35 @@ def _unpack_content(raw_data, content_type=None): def _instantiate_model(self, response, attrs, additional_properties=None): """Instantiate a response model passing in deserialized args. - :param response: The response model class. - :param d_attrs: The deserialized response attributes. + :param Response response: The response model class. + :param dict attrs: The deserialized response attributes. + :param dict additional_properties: Additional properties to be set. + :rtype: Response + :return: The instantiated response model. """ if callable(response): subtype = getattr(response, "_subtype_map", {}) try: - readonly = [k for k, v in response._validation.items() if v.get("readonly")] - const = [k for k, v in response._validation.items() if v.get("constant")] + readonly = [ + k + for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore + if v.get("readonly") + ] + const = [ + k + for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore + if v.get("constant") + ] kwargs = {k: v for k, v in attrs.items() if k not in subtype and k not in readonly + const} response_obj = response(**kwargs) for attr in readonly: setattr(response_obj, attr, attrs.get(attr)) if additional_properties: - response_obj.additional_properties = additional_properties + response_obj.additional_properties = additional_properties # type: ignore return response_obj except TypeError as err: msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) # type: ignore - raise DeserializationError(msg + str(err)) + raise DeserializationError(msg + str(err)) from err else: try: for attr, value in attrs.items(): @@ -1605,15 +1629,16 @@ def _instantiate_model(self, response, attrs, additional_properties=None): except Exception as exp: msg = "Unable to populate response model. " msg += "Type: {}, Error: {}".format(type(response), exp) - raise DeserializationError(msg) + raise DeserializationError(msg) from exp - def deserialize_data(self, data, data_type): + def deserialize_data(self, data, data_type): # pylint: disable=too-many-return-statements """Process data for deserialization according to data type. :param str data: The response string to be deserialized. :param str data_type: The type to deserialize to. - :raises: DeserializationError if deserialization fails. + :raises DeserializationError: if deserialization fails. :return: Deserialized object. + :rtype: object """ if data is None: return data @@ -1627,7 +1652,11 @@ def deserialize_data(self, data, data_type): if isinstance(data, self.deserialize_expected_types.get(data_type, tuple())): return data - is_a_text_parsing_type = lambda x: x not in ["object", "[]", r"{}"] + is_a_text_parsing_type = lambda x: x not in [ # pylint: disable=unnecessary-lambda-assignment + "object", + "[]", + r"{}", + ] if isinstance(data, ET.Element) and is_a_text_parsing_type(data_type) and not data.text: return None data_val = self.deserialize_type[data_type](data) @@ -1647,14 +1676,14 @@ def deserialize_data(self, data, data_type): msg = "Unable to deserialize response data." msg += " Data: {}, {}".format(data, data_type) raise DeserializationError(msg) from err - else: - return self._deserialize(obj_type, data) + return self._deserialize(obj_type, data) def deserialize_iter(self, attr, iter_type): """Deserialize an iterable. :param list attr: Iterable to be deserialized. :param str iter_type: The type of object in the iterable. + :return: Deserialized iterable. :rtype: list """ if attr is None: @@ -1671,6 +1700,7 @@ def deserialize_dict(self, attr, dict_type): :param dict/list attr: Dictionary to be deserialized. Also accepts a list of key, value pairs. :param str dict_type: The object type of the items in the dictionary. + :return: Deserialized dictionary. :rtype: dict """ if isinstance(attr, list): @@ -1681,13 +1711,14 @@ def deserialize_dict(self, attr, dict_type): attr = {el.tag: el.text for el in attr} return {k: self.deserialize_data(v, dict_type) for k, v in attr.items()} - def deserialize_object(self, attr, **kwargs): + def deserialize_object(self, attr, **kwargs): # pylint: disable=too-many-return-statements """Deserialize a generic object. This will be handled as a dictionary. :param dict attr: Dictionary to be deserialized. + :return: Deserialized object. :rtype: dict - :raises: TypeError if non-builtin datatype encountered. + :raises TypeError: if non-builtin datatype encountered. """ if attr is None: return None @@ -1720,11 +1751,10 @@ def deserialize_object(self, attr, **kwargs): pass return deserialized - else: - error = "Cannot deserialize generic object with type: " - raise TypeError(error + str(obj_type)) + error = "Cannot deserialize generic object with type: " + raise TypeError(error + str(obj_type)) - def deserialize_basic(self, attr, data_type): + def deserialize_basic(self, attr, data_type): # pylint: disable=too-many-return-statements """Deserialize basic builtin data type from string. Will attempt to convert to str, int, float and bool. This function will also accept '1', '0', 'true' and 'false' as @@ -1732,8 +1762,9 @@ def deserialize_basic(self, attr, data_type): :param str attr: response string to be deserialized. :param str data_type: deserialization data type. + :return: Deserialized basic type. :rtype: str, int, float or bool - :raises: TypeError if string format is not valid. + :raises TypeError: if string format is not valid or data_type is not one of str, int, float, bool. """ # If we're here, data is supposed to be a basic type. # If it's still an XML node, take the text @@ -1743,24 +1774,27 @@ def deserialize_basic(self, attr, data_type): if data_type == "str": # None or '', node is empty string. return "" - else: - # None or '', node with a strong type is None. - # Don't try to model "empty bool" or "empty int" - return None + # None or '', node with a strong type is None. + # Don't try to model "empty bool" or "empty int" + return None if data_type == "bool": if attr in [True, False, 1, 0]: return bool(attr) - elif isinstance(attr, str): + if isinstance(attr, str): if attr.lower() in ["true", "1"]: return True - elif attr.lower() in ["false", "0"]: + if attr.lower() in ["false", "0"]: return False raise TypeError("Invalid boolean value: {}".format(attr)) if data_type == "str": return self.deserialize_unicode(attr) - return eval(data_type)(attr) # nosec + if data_type == "int": + return int(attr) + if data_type == "float": + return float(attr) + raise TypeError("Unknown basic data type: {}".format(data_type)) @staticmethod def deserialize_unicode(data): @@ -1768,6 +1802,7 @@ def deserialize_unicode(data): as a string. :param str data: response string to be deserialized. + :return: Deserialized string. :rtype: str or unicode """ # We might be here because we have an enum modeled as string, @@ -1781,8 +1816,7 @@ def deserialize_unicode(data): return data except NameError: return str(data) - else: - return str(data) + return str(data) @staticmethod def deserialize_enum(data, enum_obj): @@ -1794,6 +1828,7 @@ def deserialize_enum(data, enum_obj): :param str data: Response string to be deserialized. If this value is None or invalid it will be returned as-is. :param Enum enum_obj: Enum object to deserialize to. + :return: Deserialized enum object. :rtype: Enum """ if isinstance(data, enum_obj) or data is None: @@ -1804,9 +1839,9 @@ def deserialize_enum(data, enum_obj): # Workaround. We might consider remove it in the future. try: return list(enum_obj.__members__.values())[data] - except IndexError: + except IndexError as exc: error = "{!r} is not a valid index for enum {!r}" - raise DeserializationError(error.format(data, enum_obj)) + raise DeserializationError(error.format(data, enum_obj)) from exc try: return enum_obj(str(data)) except ValueError: @@ -1822,8 +1857,9 @@ def deserialize_bytearray(attr): """Deserialize string into bytearray. :param str attr: response string to be deserialized. + :return: Deserialized bytearray :rtype: bytearray - :raises: TypeError if string format invalid. + :raises TypeError: if string format invalid. """ if isinstance(attr, ET.Element): attr = attr.text @@ -1834,8 +1870,9 @@ def deserialize_base64(attr): """Deserialize base64 encoded string into string. :param str attr: response string to be deserialized. + :return: Deserialized base64 string :rtype: bytearray - :raises: TypeError if string format invalid. + :raises TypeError: if string format invalid. """ if isinstance(attr, ET.Element): attr = attr.text @@ -1849,8 +1886,9 @@ def deserialize_decimal(attr): """Deserialize string into Decimal object. :param str attr: response string to be deserialized. - :rtype: Decimal - :raises: DeserializationError if string format invalid. + :return: Deserialized decimal + :raises DeserializationError: if string format invalid. + :rtype: decimal """ if isinstance(attr, ET.Element): attr = attr.text @@ -1865,8 +1903,9 @@ def deserialize_long(attr): """Deserialize string into long (Py2) or int (Py3). :param str attr: response string to be deserialized. + :return: Deserialized int :rtype: long or int - :raises: ValueError if string format invalid. + :raises ValueError: if string format invalid. """ if isinstance(attr, ET.Element): attr = attr.text @@ -1877,8 +1916,9 @@ def deserialize_duration(attr): """Deserialize ISO-8601 formatted string into TimeDelta object. :param str attr: response string to be deserialized. + :return: Deserialized duration :rtype: TimeDelta - :raises: DeserializationError if string format invalid. + :raises DeserializationError: if string format invalid. """ if isinstance(attr, ET.Element): attr = attr.text @@ -1887,16 +1927,16 @@ def deserialize_duration(attr): except (ValueError, OverflowError, AttributeError) as err: msg = "Cannot deserialize duration object." raise DeserializationError(msg) from err - else: - return duration + return duration @staticmethod def deserialize_date(attr): """Deserialize ISO-8601 formatted string into Date object. :param str attr: response string to be deserialized. + :return: Deserialized date :rtype: Date - :raises: DeserializationError if string format invalid. + :raises DeserializationError: if string format invalid. """ if isinstance(attr, ET.Element): attr = attr.text @@ -1910,8 +1950,9 @@ def deserialize_time(attr): """Deserialize ISO-8601 formatted string into time object. :param str attr: response string to be deserialized. + :return: Deserialized time :rtype: datetime.time - :raises: DeserializationError if string format invalid. + :raises DeserializationError: if string format invalid. """ if isinstance(attr, ET.Element): attr = attr.text @@ -1924,31 +1965,32 @@ def deserialize_rfc(attr): """Deserialize RFC-1123 formatted string into Datetime object. :param str attr: response string to be deserialized. + :return: Deserialized RFC datetime :rtype: Datetime - :raises: DeserializationError if string format invalid. + :raises DeserializationError: if string format invalid. """ if isinstance(attr, ET.Element): attr = attr.text try: parsed_date = email.utils.parsedate_tz(attr) # type: ignore date_obj = datetime.datetime( - *parsed_date[:6], tzinfo=_FixedOffset(datetime.timedelta(minutes=(parsed_date[9] or 0) / 60)) + *parsed_date[:6], tzinfo=datetime.timezone(datetime.timedelta(minutes=(parsed_date[9] or 0) / 60)) ) if not date_obj.tzinfo: date_obj = date_obj.astimezone(tz=TZ_UTC) except ValueError as err: msg = "Cannot deserialize to rfc datetime object." raise DeserializationError(msg) from err - else: - return date_obj + return date_obj @staticmethod def deserialize_iso(attr): """Deserialize ISO-8601 formatted string into Datetime object. :param str attr: response string to be deserialized. + :return: Deserialized ISO datetime :rtype: Datetime - :raises: DeserializationError if string format invalid. + :raises DeserializationError: if string format invalid. """ if isinstance(attr, ET.Element): attr = attr.text @@ -1976,8 +2018,7 @@ def deserialize_iso(attr): except (ValueError, OverflowError, AttributeError) as err: msg = "Cannot deserialize datetime object." raise DeserializationError(msg) from err - else: - return date_obj + return date_obj @staticmethod def deserialize_unix(attr): @@ -1985,8 +2026,9 @@ def deserialize_unix(attr): This is represented as seconds. :param int attr: Object to be serialized. + :return: Deserialized datetime :rtype: Datetime - :raises: DeserializationError if format invalid + :raises DeserializationError: if format invalid """ if isinstance(attr, ET.Element): attr = int(attr.text) # type: ignore @@ -1996,5 +2038,4 @@ def deserialize_unix(attr): except ValueError as err: msg = "Cannot deserialize to unix datetime object." raise DeserializationError(msg) from err - else: - return date_obj + return date_obj diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_version.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_version.py index a1e5cf8bc16e..dca644af5794 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_version.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "10.2.0b1" +VERSION = "10.2.0" diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/__init__.py index 381be0edd916..bcb1c4cb2f6a 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/__init__.py @@ -5,12 +5,18 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +# pylint: disable=wrong-import-position -from ._container_instance_management_client import ContainerInstanceManagementClient +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from ._patch import * # pylint: disable=unused-wildcard-import + +from ._container_instance_management_client import ContainerInstanceManagementClient # type: ignore try: from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import + from ._patch import * except ImportError: _patch_all = [] from ._patch import patch_sdk as _patch_sdk @@ -18,6 +24,6 @@ __all__ = [ "ContainerInstanceManagementClient", ] -__all__.extend([p for p in _patch_all if p not in __all__]) +__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_configuration.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_configuration.py index fb8c3202e245..3be049097ef9 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_configuration.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_configuration.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, TYPE_CHECKING +from typing import Any, Optional, TYPE_CHECKING from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy @@ -14,7 +14,7 @@ from .._version import VERSION if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports + from azure.core import AzureClouds from azure.core.credentials_async import AsyncTokenCredential @@ -28,13 +28,22 @@ class ContainerInstanceManagementClientConfiguration: # pylint: disable=too-man :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is + None. + :type cloud_setting: ~azure.core.AzureClouds + :keyword api_version: Api Version. Default value is "2025-09-01". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2024-05-01-preview") + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + cloud_setting: Optional["AzureClouds"] = None, + **kwargs: Any + ) -> None: + api_version: str = kwargs.pop("api_version", "2025-09-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") @@ -43,6 +52,7 @@ def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **k self.credential = credential self.subscription_id = subscription_id + self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) kwargs.setdefault("sdk_moniker", "mgmt-containerinstance/{}".format(VERSION)) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_container_instance_management_client.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_container_instance_management_client.py index da75152b0ce7..817a8e3bfa50 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_container_instance_management_client.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_container_instance_management_client.py @@ -7,33 +7,36 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING +from typing import Any, Awaitable, Optional, TYPE_CHECKING, cast from typing_extensions import Self from azure.core.pipeline import policies from azure.core.rest import AsyncHttpResponse, HttpRequest +from azure.core.settings import settings from azure.mgmt.core import AsyncARMPipelineClient from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy +from azure.mgmt.core.tools import get_arm_endpoints from .. import models as _models -from .._serialization import Deserializer, Serializer +from .._utils.serialization import Deserializer, Serializer from ._configuration import ContainerInstanceManagementClientConfiguration from .operations import ( - ContainerGroupProfileOperations, - ContainerGroupProfilesOperations, + CGProfileOperations, + CGProfilesOperations, ContainerGroupsOperations, ContainersOperations, LocationOperations, + NGroupsOperations, Operations, SubnetServiceAssociationLinkOperations, ) if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports + from azure.core import AzureClouds from azure.core.credentials_async import AsyncTokenCredential -class ContainerInstanceManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes +class ContainerInstanceManagementClient: # pylint: disable=too-many-instance-attributes """ContainerInstanceManagementClient. :ivar container_groups: ContainerGroupsOperations operations @@ -48,20 +51,23 @@ class ContainerInstanceManagementClient: # pylint: disable=client-accepts-api-v :ivar subnet_service_association_link: SubnetServiceAssociationLinkOperations operations :vartype subnet_service_association_link: azure.mgmt.containerinstance.aio.operations.SubnetServiceAssociationLinkOperations - :ivar container_group_profiles: ContainerGroupProfilesOperations operations - :vartype container_group_profiles: - azure.mgmt.containerinstance.aio.operations.ContainerGroupProfilesOperations - :ivar container_group_profile: ContainerGroupProfileOperations operations - :vartype container_group_profile: - azure.mgmt.containerinstance.aio.operations.ContainerGroupProfileOperations + :ivar ngroups: NGroupsOperations operations + :vartype ngroups: azure.mgmt.containerinstance.aio.operations.NGroupsOperations + :ivar cg_profiles: CGProfilesOperations operations + :vartype cg_profiles: azure.mgmt.containerinstance.aio.operations.CGProfilesOperations + :ivar cg_profile: CGProfileOperations operations + :vartype cg_profile: azure.mgmt.containerinstance.aio.operations.CGProfileOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". + :param base_url: Service URL. Default value is None. :type base_url: str - :keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is + None. + :paramtype cloud_setting: ~azure.core.AzureClouds + :keyword api_version: Api Version. Default value is "2025-09-01". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -71,12 +77,24 @@ def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, - base_url: str = "https://management.azure.com", + base_url: Optional[str] = None, + *, + cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: + _cloud = cloud_setting or settings.current.azure_cloud # type: ignore + _endpoints = get_arm_endpoints(_cloud) + if not base_url: + base_url = _endpoints["resource_manager"] + credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"]) self._config = ContainerInstanceManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs + credential=credential, + subscription_id=subscription_id, + cloud_setting=cloud_setting, + credential_scopes=credential_scopes, + **kwargs ) + _policies = kwargs.pop("policies", None) if _policies is None: _policies = [ @@ -95,7 +113,9 @@ def __init__( policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, self._config.http_logging_policy, ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) + self._client: AsyncARMPipelineClient = AsyncARMPipelineClient( + base_url=cast(str, base_url), policies=_policies, **kwargs + ) client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) @@ -110,12 +130,9 @@ def __init__( self.subnet_service_association_link = SubnetServiceAssociationLinkOperations( self._client, self._config, self._serialize, self._deserialize ) - self.container_group_profiles = ContainerGroupProfilesOperations( - self._client, self._config, self._serialize, self._deserialize - ) - self.container_group_profile = ContainerGroupProfileOperations( - self._client, self._config, self._serialize, self._deserialize - ) + self.ngroups = NGroupsOperations(self._client, self._config, self._serialize, self._deserialize) + self.cg_profiles = CGProfilesOperations(self._client, self._config, self._serialize, self._deserialize) + self.cg_profile = CGProfileOperations(self._client, self._config, self._serialize, self._deserialize) def _send_request( self, request: HttpRequest, *, stream: bool = False, **kwargs: Any diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/__init__.py index 7120d9b773f9..88d90a09aa65 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/__init__.py @@ -5,17 +5,24 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +# pylint: disable=wrong-import-position -from ._container_groups_operations import ContainerGroupsOperations -from ._operations import Operations -from ._location_operations import LocationOperations -from ._containers_operations import ContainersOperations -from ._subnet_service_association_link_operations import SubnetServiceAssociationLinkOperations -from ._container_group_profiles_operations import ContainerGroupProfilesOperations -from ._container_group_profile_operations import ContainerGroupProfileOperations +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from ._patch import * # pylint: disable=unused-wildcard-import + +from ._container_groups_operations import ContainerGroupsOperations # type: ignore +from ._operations import Operations # type: ignore +from ._location_operations import LocationOperations # type: ignore +from ._containers_operations import ContainersOperations # type: ignore +from ._subnet_service_association_link_operations import SubnetServiceAssociationLinkOperations # type: ignore +from ._ngroups_operations import NGroupsOperations # type: ignore +from ._cg_profiles_operations import CGProfilesOperations # type: ignore +from ._cg_profile_operations import CGProfileOperations # type: ignore from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import +from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ @@ -24,8 +31,9 @@ "LocationOperations", "ContainersOperations", "SubnetServiceAssociationLinkOperations", - "ContainerGroupProfilesOperations", - "ContainerGroupProfileOperations", + "NGroupsOperations", + "CGProfilesOperations", + "CGProfileOperations", ] -__all__.extend([p for p in _patch_all if p not in __all__]) +__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_group_profiles_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profile_operations.py similarity index 70% rename from sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_group_profiles_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profile_operations.py index 3771af415361..e8d7c3355273 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_group_profiles_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profile_operations.py @@ -1,4 +1,3 @@ -# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,11 +5,12 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from collections.abc import MutableMapping from io import IOBase -import sys -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload +from typing import Any, Callable, IO, Optional, TypeVar, Union, overload import urllib.parse +from azure.core import AsyncPipelineClient from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,270 +28,42 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models -from ...operations._container_group_profiles_operations import ( +from ..._utils.serialization import Deserializer, Serializer +from ...operations._cg_profile_operations import ( build_create_or_update_request, build_delete_request, + build_get_by_revision_number_request, build_get_request, - build_list_by_resource_group_request, - build_list_request, - build_patch_request, + build_list_all_revisions_request, + build_update_request, ) +from .._configuration import ContainerInstanceManagementClientConfiguration -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list -class ContainerGroupProfilesOperations: +class CGProfileOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s - :attr:`container_group_profiles` attribute. + :attr:`cg_profile` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ContainerGroupProfile"]: - """Get a list of container group profiles in the specified subscription. - - 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. - - :return: An iterator like instance of either ContainerGroupProfile or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping[int, Type[HttpResponseError]] = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ContainerGroupProfile"]: - """Get a list of container group profiles in the specified subscription and resource group. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either ContainerGroupProfile or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping[int, Type[HttpResponseError]] = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Get the properties of the specified container group profile. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. - :type container_group_profile_name: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @overload async def create_or_update( @@ -303,17 +75,16 @@ async def create_or_update( content_type: str = "application/json", **kwargs: Any ) -> _models.ContainerGroupProfile: - """Create or update container group profiles. + """Create or Update a ContainerGroupProfile. - Create or update container group profiles with specified configurations. + Create a CGProfile if it doesn't exist or update an existing CGProfile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str - :param container_group_profile: The properties of the container group profile to be created or - updated. Required. + :param container_group_profile: The ContainerGroupProfile object. Required. :type container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfile :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -333,17 +104,16 @@ async def create_or_update( content_type: str = "application/json", **kwargs: Any ) -> _models.ContainerGroupProfile: - """Create or update container group profiles. + """Create or Update a ContainerGroupProfile. - Create or update container group profiles with specified configurations. + Create a CGProfile if it doesn't exist or update an existing CGProfile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str - :param container_group_profile: The properties of the container group profile to be created or - updated. Required. + :param container_group_profile: The ContainerGroupProfile object. Required. :type container_group_profile: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -361,24 +131,24 @@ async def create_or_update( container_group_profile: Union[_models.ContainerGroupProfile, IO[bytes]], **kwargs: Any ) -> _models.ContainerGroupProfile: - """Create or update container group profiles. + """Create or Update a ContainerGroupProfile. - Create or update container group profiles with specified configurations. + Create a CGProfile if it doesn't exist or update an existing CGProfile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str - :param container_group_profile: The properties of the container group profile to be created or - updated. Is either a ContainerGroupProfile type or a IO[bytes] type. Required. + :param container_group_profile: The ContainerGroupProfile object. Is either a + ContainerGroupProfile type or a IO[bytes] type. Required. :type container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfile or IO[bytes] :return: ContainerGroupProfile or the result of cls(response) :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -423,17 +193,26 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @overload - async def patch( + async def update( self, resource_group_name: str, container_group_profile_name: str, @@ -442,14 +221,14 @@ async def patch( content_type: str = "application/json", **kwargs: Any ) -> _models.ContainerGroupProfile: - """Patch container group profiles. + """Container group profile PATCH REST API. - Patches container group profile with specified properties. + Update a specified container group profile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str :param properties: The container group profile properties that need to be updated. Required. :type properties: ~azure.mgmt.containerinstance.models.ContainerGroupProfilePatch @@ -462,7 +241,7 @@ async def patch( """ @overload - async def patch( + async def update( self, resource_group_name: str, container_group_profile_name: str, @@ -471,14 +250,14 @@ async def patch( content_type: str = "application/json", **kwargs: Any ) -> _models.ContainerGroupProfile: - """Patch container group profiles. + """Container group profile PATCH REST API. - Patches container group profile with specified properties. + Update a specified container group profile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str :param properties: The container group profile properties that need to be updated. Required. :type properties: IO[bytes] @@ -491,21 +270,21 @@ async def patch( """ @distributed_trace_async - async def patch( + async def update( self, resource_group_name: str, container_group_profile_name: str, properties: Union[_models.ContainerGroupProfilePatch, IO[bytes]], **kwargs: Any ) -> _models.ContainerGroupProfile: - """Patch container group profiles. + """Container group profile PATCH REST API. - Patches container group profile with specified properties. + Update a specified container group profile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str :param properties: The container group profile properties that need to be updated. Is either a ContainerGroupProfilePatch type or a IO[bytes] type. Required. @@ -514,7 +293,7 @@ async def patch( :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -537,7 +316,7 @@ async def patch( else: _json = self._serialize.body(properties, "ContainerGroupProfilePatch") - _request = build_patch_request( + _request = build_update_request( resource_group_name=resource_group_name, container_group_profile_name=container_group_profile_name, subscription_id=self._config.subscription_id, @@ -557,6 +336,74 @@ async def patch( response = pipeline_response.http_response + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) + + deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def get( + self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Display information about a specified ContainerGroupProfile. + + Get the properties of the specified container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :return: ContainerGroupProfile or the result of cls(response) + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) + + _request = build_get_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) @@ -569,24 +416,21 @@ async def patch( return deserialized # type: ignore @distributed_trace_async - async def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any - ) -> None: - """Delete the specified container group profile. + async def delete(self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any) -> None: + """Container group profile DELETE REST API. - 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. + Deletes a container group profile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -619,7 +463,167 @@ async def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_all_revisions( + self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ContainerGroupProfile"]: + """Get a list of all the revisions of the specified container group profile in the given + subscription and resource 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :return: An iterator like instance of either ContainerGroupProfile or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_list_all_revisions_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def get_by_revision_number( + self, resource_group_name: str, container_group_profile_name: str, revision_number: str, **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Get the properties of the specified revision of the container group profile. + + 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param revision_number: The revision number of the container group profile. Required. + :type revision_number: str + :return: ContainerGroupProfile or the result of cls(response) + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) + + _request = build_get_by_revision_number_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + revision_number=revision_number, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_group_profile_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profiles_operations.py similarity index 54% rename from sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_group_profile_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profiles_operations.py index 793cb6c08182..462278bc8ad6 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_group_profile_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profiles_operations.py @@ -1,4 +1,3 @@ -# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,10 +5,11 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys -from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar +from collections.abc import MutableMapping +from typing import Any, Callable, Optional, TypeVar import urllib.parse +from azure.core import AsyncPipelineClient from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, @@ -22,60 +22,49 @@ from azure.core.pipeline import PipelineResponse from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models -from ...operations._container_group_profile_operations import ( - build_get_by_revision_number_request, - build_list_all_revisions_request, +from ..._utils.serialization import Deserializer, Serializer +from ...operations._cg_profiles_operations import ( + build_list_by_resource_group_request, + build_list_by_subscription_request, ) +from .._configuration import ContainerInstanceManagementClientConfiguration -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list -class ContainerGroupProfileOperations: +class CGProfilesOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s - :attr:`container_group_profile` attribute. + :attr:`cg_profiles` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def list_all_revisions( - self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ContainerGroupProfile"]: - """Get a list of all the revisions of the specified container group profile in the given - subscription and resource group. + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.ContainerGroupProfile"]: + """List container group profiles in a subscription. - 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. + Gets a list of all container group profiles under a subscription. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. - :type container_group_profile_name: str :return: An iterator like instance of either ContainerGroupProfile or the result of cls(response) :rtype: @@ -88,7 +77,7 @@ def list_all_revisions( api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -99,9 +88,7 @@ def list_all_revisions( def prepare_request(next_link=None): if not next_link: - _request = build_list_all_revisions_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, + _request = build_list_by_subscription_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -150,29 +137,30 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - @distributed_trace_async - async def get_by_revision_number( - self, resource_group_name: str, container_group_profile_name: str, revision_number: str, **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Get the properties of the specified revision of the container group profile. + @distributed_trace + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ContainerGroupProfile"]: + """List container group profiles in a resource group. - 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. + Gets a list of all container group profiles under a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. - :type container_group_profile_name: str - :param revision_number: The revision number of the container group profile. Required. - :type revision_number: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :return: An iterator like instance of either ContainerGroupProfile or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) + + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -180,37 +168,55 @@ async def get_by_revision_number( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + def prepare_request(next_link=None): + if not next_link: - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) - - _request = build_get_by_revision_number_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - revision_number=revision_number, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) + _request = build_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, AsyncList(list_of_elem) - response = pipeline_response.http_response + async def get_next(next_link=None): + _request = prepare_request(next_link) - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response - deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return pipeline_response - return deserialized # type: ignore + return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_groups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_groups_operations.py index a8badbbc07b9..9a22d5273185 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_groups_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_groups_operations.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines,too-many-statements +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,25 +6,12 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from collections.abc import MutableMapping from io import IOBase -import sys -from typing import ( - Any, - AsyncIterable, - AsyncIterator, - Callable, - Dict, - IO, - List, - Optional, - Type, - TypeVar, - Union, - cast, - overload, -) +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload import urllib.parse +from azure.core import AsyncPipelineClient from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, @@ -46,6 +33,7 @@ from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models as _models +from ..._utils.serialization import Deserializer, Serializer from ...operations._container_groups_operations import ( build_create_or_update_request, build_delete_request, @@ -58,13 +46,11 @@ build_stop_request, build_update_request, ) +from .._configuration import ContainerInstanceManagementClientConfiguration -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class ContainerGroupsOperations: @@ -81,22 +67,25 @@ class ContainerGroupsOperations: def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ContainerGroup"]: + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.ListResultContainerGroup"]: """Get a list of container groups in the specified subscription. 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. - :return: An iterator like instance of either ContainerGroup or the result of cls(response) + :return: An iterator like instance of either ListResultContainerGroup or the result of + cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ContainerGroup] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ListResultContainerGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} @@ -105,7 +94,7 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.ContainerGroup"]: api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ContainerGroupListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -168,7 +157,7 @@ async def get_next(next_link=None): @distributed_trace def list_by_resource_group( self, resource_group_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ContainerGroup"]: + ) -> AsyncItemPaged["_models.ListResultContainerGroup"]: """Get a list of container groups in the specified subscription and resource group. Get a list of container groups in a specified subscription and resource group. This operation @@ -178,9 +167,10 @@ def list_by_resource_group( :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of either ContainerGroup or the result of cls(response) + :return: An iterator like instance of either ListResultContainerGroup or the result of + cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ContainerGroup] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ListResultContainerGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} @@ -189,7 +179,7 @@ def list_by_resource_group( api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ContainerGroupListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -267,7 +257,7 @@ async def get(self, resource_group_name: str, container_group_name: str, **kwarg :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -316,7 +306,7 @@ async def _create_or_update_initial( container_group: Union[_models.ContainerGroup, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -591,7 +581,7 @@ async def update( :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -648,7 +638,7 @@ async def update( async def _delete_initial( self, resource_group_name: str, container_group_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -761,7 +751,7 @@ def get_long_running_output(pipeline_response): async def _restart_initial( self, resource_group_name: str, container_group_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -867,9 +857,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace_async - async def stop( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, container_group_name: str, **kwargs: Any - ) -> None: + async def stop(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> None: """Stops all containers in a container group. Stops all containers in a container group. Compute resources will be deallocated and billing @@ -884,7 +872,7 @@ async def stop( # pylint: disable=inconsistent-return-statements :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -925,7 +913,7 @@ async def stop( # pylint: disable=inconsistent-return-statements async def _start_initial( self, resource_group_name: str, container_group_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -1048,7 +1036,7 @@ async def get_outbound_network_dependencies_endpoints( # pylint: disable=name-t :rtype: list[str] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_containers_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_containers_operations.py index 4c510109dab9..42ab1ad09507 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_containers_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_containers_operations.py @@ -1,4 +1,3 @@ -# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,10 +5,11 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from collections.abc import MutableMapping from io import IOBase -import sys -from typing import Any, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload +from typing import Any, Callable, IO, Optional, TypeVar, Union, overload +from azure.core import AsyncPipelineClient from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, @@ -25,18 +25,17 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models +from ..._utils.serialization import Deserializer, Serializer from ...operations._containers_operations import ( build_attach_request, build_execute_command_request, build_list_logs_request, ) +from .._configuration import ContainerInstanceManagementClientConfiguration -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class ContainersOperations: @@ -53,10 +52,12 @@ class ContainersOperations: def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async async def list_logs( @@ -90,7 +91,7 @@ async def list_logs( :rtype: ~azure.mgmt.containerinstance.models.Logs :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -230,7 +231,7 @@ async def execute_command( :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -305,7 +306,7 @@ async def attach( :rtype: ~azure.mgmt.containerinstance.models.ContainerAttachResponse :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_location_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_location_operations.py index ebaa9dbe3b5a..23a1b81a3715 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_location_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_location_operations.py @@ -1,4 +1,3 @@ -# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,10 +5,11 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys -from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar +from collections.abc import MutableMapping +from typing import Any, Callable, Optional, TypeVar import urllib.parse +from azure.core import AsyncPipelineClient from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, @@ -26,18 +26,17 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models +from ..._utils.serialization import Deserializer, Serializer from ...operations._location_operations import ( build_list_cached_images_request, build_list_capabilities_request, build_list_usage_request, ) +from .._configuration import ContainerInstanceManagementClientConfiguration -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class LocationOperations: @@ -54,13 +53,15 @@ class LocationOperations: def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def list_usage(self, location: str, **kwargs: Any) -> AsyncIterable["_models.Usage"]: + def list_usage(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Usage"]: """Get the usage for a subscription. :param location: The name of the Azure region. Required. @@ -75,7 +76,7 @@ def list_usage(self, location: str, **kwargs: Any) -> AsyncIterable["_models.Usa api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.UsageListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -137,7 +138,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_cached_images(self, location: str, **kwargs: Any) -> AsyncIterable["_models.CachedImages"]: + def list_cached_images(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.CachedImages"]: """Get the list of cached images. Get the list of cached images on specific OS type for a subscription in a region. @@ -155,7 +156,7 @@ def list_cached_images(self, location: str, **kwargs: Any) -> AsyncIterable["_mo api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.CachedImagesListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -217,7 +218,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_capabilities(self, location: str, **kwargs: Any) -> AsyncIterable["_models.Capabilities"]: + def list_capabilities(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Capabilities"]: """Get the list of capabilities of the location. Get the list of CPU/memory/GPU capabilities of a region. @@ -235,7 +236,7 @@ def list_capabilities(self, location: str, **kwargs: Any) -> AsyncIterable["_mod api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.CapabilitiesListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_ngroups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_ngroups_operations.py new file mode 100644 index 000000000000..acbf893d5e0b --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_ngroups_operations.py @@ -0,0 +1,1115 @@ +# pylint: disable=too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +from collections.abc import MutableMapping +from io import IOBase +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload +import urllib.parse + +from azure.core import AsyncPipelineClient +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + ResourceNotModifiedError, + StreamClosedError, + StreamConsumedError, + map_error, +) +from azure.core.pipeline import PipelineResponse +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.core.rest import AsyncHttpResponse, HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async +from azure.core.utils import case_insensitive_dict +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models +from ..._utils.serialization import Deserializer, Serializer +from ...operations._ngroups_operations import ( + build_create_or_update_request, + build_delete_request, + build_get_request, + build_list_by_resource_group_request, + build_list_request, + build_restart_request, + build_start_request, + build_stop_request, + build_update_request, +) +from .._configuration import ContainerInstanceManagementClientConfiguration + +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list + + +class NGroupsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s + :attr:`ngroups` attribute. + """ + + models = _models + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> _models.NGroup: + """NGroups GET REST API. + + Get the properties of the specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: NGroup or the result of cls(response) + :rtype: ~azure.mgmt.containerinstance.models.NGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) + + _request = build_get_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize("NGroup", pipeline_response.http_response) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroup, IO[bytes]], **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(n_group, (IOBase, bytes)): + _content = n_group + else: + _json = self._serialize.body(n_group, "NGroup") + + _request = build_create_or_update_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: _models.NGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroup + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns either NGroup or the result of + cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns either NGroup or the result of + cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroup, IO[bytes]], **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Is either a NGroup type or a IO[bytes] type. Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroup or IO[bytes] + :return: An instance of AsyncLROPoller that returns either NGroup or the result of + cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + n_group=n_group, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + deserialized = self._deserialize("NGroup", pipeline_response.http_response) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, + AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.NGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.NGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroupPatch, IO[bytes]], **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(n_group, (IOBase, bytes)): + _content = n_group + else: + _json = self._serialize.body(n_group, "NGroupPatch") + + _request = build_update_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 200: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: _models.NGroupPatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroupPatch + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns either NGroup or the result of + cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns either NGroup or the result of + cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroupPatch, IO[bytes]], **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Is either a NGroupPatch type or a IO[bytes] type. Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroupPatch or IO[bytes] + :return: An instance of AsyncLROPoller that returns either NGroup or the result of + cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + n_group=n_group, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + deserialized = self._deserialize("NGroup", pipeline_response.http_response) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, + AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.NGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.NGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_delete_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """NGroups Delete REST API. + + Deletes the NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, + AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + async def _start_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_start_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_start(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Starts all container groups in the specified NGroups resource. + + Starts all container groups in the specified NGroups resource. Compute resources will be + allocated and billing will start. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._start_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, + AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace_async + async def stop(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> None: + """Stops all container groups in the specified NGroups resource. + + Stops all container groups in the specified NGroups resource. Compute resources will be + deallocated and billing will stop. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_stop_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + async def _restart_initial( + self, resource_group_name: str, ngroups_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_restart_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_restart(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Restarts all container groups in the specified NGroups resource. + + Restarts all container groups in the specified NGroups resource in place. If container image + has updates, new image will be downloaded. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._restart_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, + AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.NGroup"]: + """GET NGroups under a resource group REST API. + + Gets a list of all NGroups resources under a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of either NGroup or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.NGroupsListResult] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("NGroupsListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.NGroup"]: + """List NGroups in a subscription. + + Gets a list of all NGroups resources under a subscription. + + :return: An iterator like instance of either NGroup or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.NGroupsListResult] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("NGroupsListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_operations.py index ea2cd970a8d2..b5d868cf5f3b 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_operations.py @@ -1,4 +1,3 @@ -# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,10 +5,11 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys -from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar +from collections.abc import MutableMapping +from typing import Any, Callable, Optional, TypeVar import urllib.parse +from azure.core import AsyncPipelineClient from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, @@ -26,14 +26,13 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models +from ..._utils.serialization import Deserializer, Serializer from ...operations._operations import build_list_request +from .._configuration import ContainerInstanceManagementClientConfiguration -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class Operations: @@ -50,13 +49,15 @@ class Operations: def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.Operation"]: + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Operation"]: """List the operations for Azure Container Instance service. :return: An iterator like instance of either Operation or the result of cls(response) @@ -69,7 +70,7 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.Operation"]: api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_subnet_service_association_link_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_subnet_service_association_link_operations.py index 9cd84db966f1..dae3ea0dc09c 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_subnet_service_association_link_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_subnet_service_association_link_operations.py @@ -1,4 +1,3 @@ -# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +5,10 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys -from typing import Any, AsyncIterator, Callable, Dict, Optional, Type, TypeVar, Union, cast +from collections.abc import MutableMapping +from typing import Any, AsyncIterator, Callable, Optional, TypeVar, Union, cast +from azure.core import AsyncPipelineClient from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, @@ -28,14 +28,13 @@ from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models as _models +from ..._utils.serialization import Deserializer, Serializer from ...operations._subnet_service_association_link_operations import build_delete_request +from .._configuration import ContainerInstanceManagementClientConfiguration -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class SubnetServiceAssociationLinkOperations: @@ -52,15 +51,17 @@ class SubnetServiceAssociationLinkOperations: def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") async def _delete_initial( self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py index a9551a9b83d2..1e95628c7802 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py @@ -5,89 +5,144 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +# pylint: disable=wrong-import-position -from ._models_py3 import AzureFileVolume -from ._models_py3 import CachedImages -from ._models_py3 import CachedImagesListResult -from ._models_py3 import Capabilities -from ._models_py3 import CapabilitiesCapabilities -from ._models_py3 import CapabilitiesListResult -from ._models_py3 import CloudErrorBody -from ._models_py3 import ConfidentialComputeProperties -from ._models_py3 import ConfigMap -from ._models_py3 import Container -from ._models_py3 import ContainerAttachResponse -from ._models_py3 import ContainerExec -from ._models_py3 import ContainerExecRequest -from ._models_py3 import ContainerExecRequestTerminalSize -from ._models_py3 import ContainerExecResponse -from ._models_py3 import ContainerGroup -from ._models_py3 import ContainerGroupDiagnostics -from ._models_py3 import ContainerGroupIdentity -from ._models_py3 import ContainerGroupListResult -from ._models_py3 import ContainerGroupProfile -from ._models_py3 import ContainerGroupProfileListResult -from ._models_py3 import ContainerGroupProfilePatch -from ._models_py3 import ContainerGroupProfileProperties -from ._models_py3 import ContainerGroupProfileReferenceDefinition -from ._models_py3 import ContainerGroupProperties -from ._models_py3 import ContainerGroupPropertiesInstanceView -from ._models_py3 import ContainerGroupSubnetId -from ._models_py3 import ContainerHttpGet -from ._models_py3 import ContainerPort -from ._models_py3 import ContainerProbe -from ._models_py3 import ContainerPropertiesInstanceView -from ._models_py3 import ContainerState -from ._models_py3 import DeploymentExtensionSpec -from ._models_py3 import DnsConfiguration -from ._models_py3 import EncryptionProperties -from ._models_py3 import EnvironmentVariable -from ._models_py3 import Event -from ._models_py3 import GitRepoVolume -from ._models_py3 import GpuResource -from ._models_py3 import HttpHeader -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import InitContainerDefinition -from ._models_py3 import InitContainerPropertiesDefinitionInstanceView -from ._models_py3 import IpAddress -from ._models_py3 import LogAnalytics -from ._models_py3 import Logs -from ._models_py3 import Operation -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationListResult -from ._models_py3 import Port -from ._models_py3 import Resource -from ._models_py3 import ResourceLimits -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceRequirements -from ._models_py3 import SecurityContextCapabilitiesDefinition -from ._models_py3 import SecurityContextDefinition -from ._models_py3 import StandbyPoolProfileDefinition -from ._models_py3 import Usage -from ._models_py3 import UsageListResult -from ._models_py3 import UsageName -from ._models_py3 import UserAssignedIdentities -from ._models_py3 import Volume -from ._models_py3 import VolumeMount +from typing import TYPE_CHECKING -from ._container_instance_management_client_enums import ContainerGroupIpAddressType -from ._container_instance_management_client_enums import ContainerGroupNetworkProtocol -from ._container_instance_management_client_enums import ContainerGroupPriority -from ._container_instance_management_client_enums import ContainerGroupRestartPolicy -from ._container_instance_management_client_enums import ContainerGroupSku -from ._container_instance_management_client_enums import ContainerInstanceOperationsOrigin -from ._container_instance_management_client_enums import ContainerNetworkProtocol -from ._container_instance_management_client_enums import DnsNameLabelReusePolicy -from ._container_instance_management_client_enums import GpuSku -from ._container_instance_management_client_enums import LogAnalyticsLogType -from ._container_instance_management_client_enums import OperatingSystemTypes -from ._container_instance_management_client_enums import ResourceIdentityType -from ._container_instance_management_client_enums import Scheme +if TYPE_CHECKING: + from ._patch import * # pylint: disable=unused-wildcard-import + + +from ._models_py3 import ( # type: ignore + ApiEntityReference, + ApplicationGateway, + ApplicationGatewayBackendAddressPool, + AzureFileVolume, + CachedImages, + CachedImagesListResult, + Capabilities, + CapabilitiesCapabilities, + CapabilitiesListResult, + CloudErrorBody, + ConfidentialComputeProperties, + ConfigMap, + Container, + ContainerAttachResponse, + ContainerExec, + ContainerExecRequest, + ContainerExecRequestTerminalSize, + ContainerExecResponse, + ContainerGroup, + ContainerGroupDiagnostics, + ContainerGroupIdentity, + ContainerGroupListResult, + ContainerGroupProfile, + ContainerGroupProfileListResult, + ContainerGroupProfilePatch, + ContainerGroupProfileReferenceDefinition, + ContainerGroupProfileStub, + ContainerGroupProperties, + ContainerGroupPropertiesInstanceView, + ContainerGroupSubnetId, + ContainerHttpGet, + ContainerPort, + ContainerProbe, + ContainerPropertiesInstanceView, + ContainerState, + DeploymentExtensionSpec, + DnsConfiguration, + ElasticProfile, + ElasticProfileContainerGroupNamingPolicy, + ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy, + EncryptionProperties, + EnvironmentVariable, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + Event, + FileShare, + FileShareProperties, + GitRepoVolume, + GpuResource, + HttpHeader, + IdentityAccessControl, + IdentityAcls, + ImageRegistryCredential, + InitContainerDefinition, + InitContainerPropertiesDefinitionInstanceView, + IpAddress, + ListResultContainerGroup, + ListResultContainerGroupProperties, + LoadBalancer, + LoadBalancerBackendAddressPool, + LogAnalytics, + Logs, + NGroup, + NGroupCGPropertyContainer, + NGroupCGPropertyContainerProperties, + NGroupCGPropertyVolume, + NGroupContainerGroupProperties, + NGroupIdentity, + NGroupPatch, + NGroupSkus, + NGroupsListResult, + NGroupsSkusList, + NetworkProfile, + Operation, + OperationDisplay, + OperationListResult, + PlacementProfile, + Port, + Resource, + ResourceLimits, + ResourceRequests, + ResourceRequirements, + SecretReference, + SecurityContextCapabilitiesDefinition, + SecurityContextDefinition, + StandbyPoolProfileDefinition, + StorageProfile, + SystemData, + UpdateProfile, + UpdateProfileRollingUpdateProfile, + Usage, + UsageListResult, + UsageName, + UserAssignedIdentities, + Volume, + VolumeMount, +) + +from ._container_instance_management_client_enums import ( # type: ignore + AzureFileShareAccessTier, + AzureFileShareAccessType, + ContainerGroupIpAddressType, + ContainerGroupNetworkProtocol, + ContainerGroupPriority, + ContainerGroupProvisioningState, + ContainerGroupRestartPolicy, + ContainerGroupSku, + ContainerInstanceOperationsOrigin, + ContainerNetworkProtocol, + CreatedByType, + DnsNameLabelReusePolicy, + GpuSku, + IdentityAccessLevel, + LogAnalyticsLogType, + NGroupProvisioningState, + NGroupUpdateMode, + OperatingSystemTypes, + ResourceIdentityType, + Scheme, +) from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import +from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ + "ApiEntityReference", + "ApplicationGateway", + "ApplicationGatewayBackendAddressPool", "AzureFileVolume", "CachedImages", "CachedImagesListResult", @@ -110,8 +165,8 @@ "ContainerGroupProfile", "ContainerGroupProfileListResult", "ContainerGroupProfilePatch", - "ContainerGroupProfileProperties", "ContainerGroupProfileReferenceDefinition", + "ContainerGroupProfileStub", "ContainerGroupProperties", "ContainerGroupPropertiesInstanceView", "ContainerGroupSubnetId", @@ -122,48 +177,86 @@ "ContainerState", "DeploymentExtensionSpec", "DnsConfiguration", + "ElasticProfile", + "ElasticProfileContainerGroupNamingPolicy", + "ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy", "EncryptionProperties", "EnvironmentVariable", + "ErrorAdditionalInfo", + "ErrorDetail", + "ErrorResponse", "Event", + "FileShare", + "FileShareProperties", "GitRepoVolume", "GpuResource", "HttpHeader", + "IdentityAccessControl", + "IdentityAcls", "ImageRegistryCredential", "InitContainerDefinition", "InitContainerPropertiesDefinitionInstanceView", "IpAddress", + "ListResultContainerGroup", + "ListResultContainerGroupProperties", + "LoadBalancer", + "LoadBalancerBackendAddressPool", "LogAnalytics", "Logs", + "NGroup", + "NGroupCGPropertyContainer", + "NGroupCGPropertyContainerProperties", + "NGroupCGPropertyVolume", + "NGroupContainerGroupProperties", + "NGroupIdentity", + "NGroupPatch", + "NGroupSkus", + "NGroupsListResult", + "NGroupsSkusList", + "NetworkProfile", "Operation", "OperationDisplay", "OperationListResult", + "PlacementProfile", "Port", "Resource", "ResourceLimits", "ResourceRequests", "ResourceRequirements", + "SecretReference", "SecurityContextCapabilitiesDefinition", "SecurityContextDefinition", "StandbyPoolProfileDefinition", + "StorageProfile", + "SystemData", + "UpdateProfile", + "UpdateProfileRollingUpdateProfile", "Usage", "UsageListResult", "UsageName", "UserAssignedIdentities", "Volume", "VolumeMount", + "AzureFileShareAccessTier", + "AzureFileShareAccessType", "ContainerGroupIpAddressType", "ContainerGroupNetworkProtocol", "ContainerGroupPriority", + "ContainerGroupProvisioningState", "ContainerGroupRestartPolicy", "ContainerGroupSku", "ContainerInstanceOperationsOrigin", "ContainerNetworkProtocol", + "CreatedByType", "DnsNameLabelReusePolicy", "GpuSku", + "IdentityAccessLevel", "LogAnalyticsLogType", + "NGroupProvisioningState", + "NGroupUpdateMode", "OperatingSystemTypes", "ResourceIdentityType", "Scheme", ] -__all__.extend([p for p in _patch_all if p not in __all__]) +__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_container_instance_management_client_enums.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_container_instance_management_client_enums.py index b2346dedd4d4..153b2b459164 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_container_instance_management_client_enums.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_container_instance_management_client_enums.py @@ -10,6 +10,27 @@ from azure.core import CaseInsensitiveEnumMeta +class AzureFileShareAccessTier(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), + Hot, and Cool. FileStorage account can choose Premium. Learn more at: + https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP#shareaccesstier. + """ + + COOL = "Cool" + HOT = "Hot" + PREMIUM = "Premium" + TRANSACTION_OPTIMIZED = "TransactionOptimized" + + +class AzureFileShareAccessType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Specifies how Container Groups can access the Azure file share i.e. all CG will share same + Azure file share or going to have exclusive file share. + """ + + SHARED = "Shared" + EXCLUSIVE = "Exclusive" + + class ContainerGroupIpAddressType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specifies if the IP is exposed to the public internet or private VNET.""" @@ -31,6 +52,24 @@ class ContainerGroupPriority(str, Enum, metaclass=CaseInsensitiveEnumMeta): SPOT = "Spot" +class ContainerGroupProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The provisioning state of the container group. This only appears in the response.""" + + NOT_SPECIFIED = "NotSpecified" + ACCEPTED = "Accepted" + PENDING = "Pending" + UPDATING = "Updating" + CREATING = "Creating" + REPAIRING = "Repairing" + UNHEALTHY = "Unhealthy" + FAILED = "Failed" + CANCELED = "Canceled" + SUCCEEDED = "Succeeded" + DELETING = "Deleting" + NOT_ACCESSIBLE = "NotAccessible" + PRE_PROVISIONED = "PreProvisioned" + + class ContainerGroupRestartPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Restart policy for all containers within the container group. @@ -48,6 +87,7 @@ class ContainerGroupRestartPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): class ContainerGroupSku(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The container group SKU.""" + NOT_SPECIFIED = "NotSpecified" STANDARD = "Standard" DEDICATED = "Dedicated" CONFIDENTIAL = "Confidential" @@ -67,6 +107,15 @@ class ContainerNetworkProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): UDP = "UDP" +class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The type of identity that created the resource.""" + + USER = "User" + APPLICATION = "Application" + MANAGED_IDENTITY = "ManagedIdentity" + KEY = "Key" + + class DnsNameLabelReusePolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """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. @@ -93,6 +142,14 @@ class GpuSku(str, Enum, metaclass=CaseInsensitiveEnumMeta): V100 = "V100" +class IdentityAccessLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The access level of an identity.""" + + ALL = "All" + SYSTEM = "System" + USER = "User" + + class LogAnalyticsLogType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The log type to be used.""" @@ -100,6 +157,25 @@ class LogAnalyticsLogType(str, Enum, metaclass=CaseInsensitiveEnumMeta): CONTAINER_INSTANCE_LOGS = "ContainerInstanceLogs" +class NGroupProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The provisioning state, which only appears in the response.""" + + CREATING = "Creating" + UPDATING = "Updating" + FAILED = "Failed" + SUCCEEDED = "Succeeded" + CANCELED = "Canceled" + DELETING = "Deleting" + MIGRATING = "Migrating" + + +class NGroupUpdateMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """NGroupUpdateMode.""" + + MANUAL = "Manual" + ROLLING = "Rolling" + + class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The operating system type required by the containers in the container group.""" diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models_py3.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models_py3.py index 6deb8bee8d24..7b1ef536c4b1 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models_py3.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models_py3.py @@ -1,5 +1,5 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines # coding=utf-8 -# pylint: disable=too-many-lines # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. @@ -7,20 +7,91 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union +from collections.abc import MutableMapping +import datetime +from typing import Any, Optional, TYPE_CHECKING, Union -from .. import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports +from .._utils import serialization as _serialization if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object +JSON = MutableMapping[str, Any] + + +class ApiEntityReference(_serialization.Model): + """The API entity reference. + + :ivar id: The ARM resource id in the form of + /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... + :vartype id: str + """ + + _attribute_map = { + "id": {"key": "id", "type": "str"}, + } + + def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin + """ + :keyword id: The ARM resource id in the form of + /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... + :paramtype id: str + """ + super().__init__(**kwargs) + self.id = id + + +class ApplicationGateway(_serialization.Model): + """Application Gateway the CG profile will use to interact with CGs in a backend pool. + + :ivar resource: The Application Gateway ARM resource Id. + :vartype resource: str + :ivar backend_address_pools: List of Application Gateway Backend Address Pools. + :vartype backend_address_pools: + list[~azure.mgmt.containerinstance.models.ApplicationGatewayBackendAddressPool] + """ + + _attribute_map = { + "resource": {"key": "resource", "type": "str"}, + "backend_address_pools": {"key": "backendAddressPools", "type": "[ApplicationGatewayBackendAddressPool]"}, + } + + def __init__( + self, + *, + resource: Optional[str] = None, + backend_address_pools: Optional[list["_models.ApplicationGatewayBackendAddressPool"]] = None, + **kwargs: Any + ) -> None: + """ + :keyword resource: The Application Gateway ARM resource Id. + :paramtype resource: str + :keyword backend_address_pools: List of Application Gateway Backend Address Pools. + :paramtype backend_address_pools: + list[~azure.mgmt.containerinstance.models.ApplicationGatewayBackendAddressPool] + """ + super().__init__(**kwargs) + self.resource = resource + self.backend_address_pools = backend_address_pools + + +class ApplicationGatewayBackendAddressPool(_serialization.Model): + """NGroups application gateway backend address pool. + + :ivar resource: The application gateway backend address pool ARM resource Id. + :vartype resource: str + """ + + _attribute_map = { + "resource": {"key": "resource", "type": "str"}, + } + + def __init__(self, *, resource: Optional[str] = None, **kwargs: Any) -> None: + """ + :keyword resource: The application gateway backend address pool ARM resource Id. + :paramtype resource: str + """ + super().__init__(**kwargs) + self.resource = resource class AzureFileVolume(_serialization.Model): @@ -38,6 +109,9 @@ class AzureFileVolume(_serialization.Model): :vartype storage_account_name: str :ivar storage_account_key: The storage account access key used to access the Azure File share. :vartype storage_account_key: str + :ivar storage_account_key_reference: The reference to the storage account access key used to + access the Azure File share. + :vartype storage_account_key_reference: str """ _validation = { @@ -50,6 +124,7 @@ class AzureFileVolume(_serialization.Model): "read_only": {"key": "readOnly", "type": "bool"}, "storage_account_name": {"key": "storageAccountName", "type": "str"}, "storage_account_key": {"key": "storageAccountKey", "type": "str"}, + "storage_account_key_reference": {"key": "storageAccountKeyReference", "type": "str"}, } def __init__( @@ -59,6 +134,7 @@ def __init__( storage_account_name: str, read_only: Optional[bool] = None, storage_account_key: Optional[str] = None, + storage_account_key_reference: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -73,12 +149,16 @@ def __init__( :keyword storage_account_key: The storage account access key used to access the Azure File share. :paramtype storage_account_key: str + :keyword storage_account_key_reference: The reference to the storage account access key used to + access the Azure File share. + :paramtype storage_account_key_reference: str """ super().__init__(**kwargs) self.share_name = share_name self.read_only = read_only self.storage_account_name = storage_account_name self.storage_account_key = storage_account_key + self.storage_account_key_reference = storage_account_key_reference class CachedImages(_serialization.Model): @@ -129,7 +209,7 @@ class CachedImagesListResult(_serialization.Model): } def __init__( - self, *, value: Optional[List["_models.CachedImages"]] = None, next_link: Optional[str] = None, **kwargs: Any + self, *, value: Optional[list["_models.CachedImages"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: The list of cached images. @@ -182,12 +262,12 @@ class Capabilities(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.resource_type = None - self.os_type = None - self.location = None - self.ip_address_type = None - self.gpu = None - self.capabilities = None + self.resource_type: Optional[str] = None + self.os_type: Optional[str] = None + self.location: Optional[str] = None + self.ip_address_type: Optional[str] = None + self.gpu: Optional[str] = None + self.capabilities: Optional["_models.CapabilitiesCapabilities"] = None class CapabilitiesCapabilities(_serialization.Model): @@ -218,9 +298,9 @@ class CapabilitiesCapabilities(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.max_memory_in_gb = None - self.max_cpu = None - self.max_gpu_count = None + self.max_memory_in_gb: Optional[float] = None + self.max_cpu: Optional[float] = None + self.max_gpu_count: Optional[float] = None class CapabilitiesListResult(_serialization.Model): @@ -238,7 +318,7 @@ class CapabilitiesListResult(_serialization.Model): } def __init__( - self, *, value: Optional[List["_models.Capabilities"]] = None, next_link: Optional[str] = None, **kwargs: Any + self, *, value: Optional[list["_models.Capabilities"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: The list of capabilities. @@ -280,7 +360,7 @@ def __init__( code: Optional[str] = None, message: Optional[str] = None, target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, + details: Optional[list["_models.CloudErrorBody"]] = None, **kwargs: Any ) -> None: """ @@ -334,7 +414,7 @@ class ConfigMap(_serialization.Model): "key_value_pairs": {"key": "keyValuePairs", "type": "{str}"}, } - def __init__(self, *, key_value_pairs: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: + def __init__(self, *, key_value_pairs: Optional[dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword key_value_pairs: The key value pairs dictionary in the config map. :paramtype key_value_pairs: dict[str, str] @@ -343,7 +423,7 @@ def __init__(self, *, key_value_pairs: Optional[Dict[str, str]] = None, **kwargs self.key_value_pairs = key_value_pairs -class Container(_serialization.Model): # pylint: disable=too-many-instance-attributes +class Container(_serialization.Model): """A container instance. Variables are only populated by the server, and will be ignored when sending a request. @@ -401,11 +481,11 @@ def __init__( *, name: str, image: Optional[str] = None, - command: Optional[List[str]] = None, - ports: Optional[List["_models.ContainerPort"]] = None, - environment_variables: Optional[List["_models.EnvironmentVariable"]] = None, + command: Optional[list[str]] = None, + ports: Optional[list["_models.ContainerPort"]] = None, + environment_variables: Optional[list["_models.EnvironmentVariable"]] = None, resources: Optional["_models.ResourceRequirements"] = None, - volume_mounts: Optional[List["_models.VolumeMount"]] = None, + volume_mounts: Optional[list["_models.VolumeMount"]] = None, liveness_probe: Optional["_models.ContainerProbe"] = None, readiness_probe: Optional["_models.ContainerProbe"] = None, security_context: Optional["_models.SecurityContextDefinition"] = None, @@ -443,7 +523,7 @@ def __init__( self.command = command self.ports = ports self.environment_variables = environment_variables - self.instance_view = None + self.instance_view: Optional["_models.ContainerPropertiesInstanceView"] = None self.resources = resources self.volume_mounts = volume_mounts self.liveness_probe = liveness_probe @@ -491,7 +571,7 @@ class ContainerExec(_serialization.Model): "command": {"key": "command", "type": "[str]"}, } - def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: + def __init__(self, *, command: Optional[list[str]] = None, **kwargs: Any) -> None: """ :keyword command: The commands to execute within the container. :paramtype command: list[str] @@ -584,7 +664,7 @@ def __init__(self, *, web_socket_uri: Optional[str] = None, password: Optional[s self.password = password -class ContainerGroupProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes +class ContainerGroupProperties(_serialization.Model): """The container group properties. Variables are only populated by the server, and will be ignored when sending a request. @@ -596,6 +676,9 @@ class ContainerGroupProperties(_serialization.Model): # pylint: disable=too-man :ivar provisioning_state: The provisioning state of the container group. This only appears in the response. :vartype provisioning_state: str + :ivar secret_references: The secret references that will be referenced within the container + group. + :vartype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] :ivar containers: The containers within the container group. Required. :vartype containers: list[~azure.mgmt.containerinstance.models.Container] :ivar image_registry_credentials: The image registry credentials by which the container group @@ -604,7 +687,6 @@ class ContainerGroupProperties(_serialization.Model): # pylint: disable=too-man list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] :ivar restart_policy: Restart policy for all containers within the container group. - * ``Always`` Always restart * ``OnFailure`` Restart on failure * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". @@ -626,8 +708,8 @@ class ContainerGroupProperties(_serialization.Model): # pylint: disable=too-man :vartype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] :ivar dns_config: The DNS config information for a container group. :vartype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration - :ivar sku: The SKU for a container group. Known values are: "Standard", "Dedicated", and - "Confidential". + :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku :ivar encryption_properties: The encryption properties for a container group. :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties @@ -640,14 +722,16 @@ class ContainerGroupProperties(_serialization.Model): # pylint: disable=too-man ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority + :ivar identity_acls: The access control levels of the identities. + :vartype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls :ivar container_group_profile: The reference container group profile properties. :vartype container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition :ivar standby_pool_profile: The reference standby pool profile properties. :vartype standby_pool_profile: ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition - :ivar is_created_from_standby_pool: The flag indicating whether the container group is created - by standby pool. + :ivar is_created_from_standby_pool: The flag to determine whether the container group is + created from standby pool. :vartype is_created_from_standby_pool: bool """ @@ -661,6 +745,7 @@ class ContainerGroupProperties(_serialization.Model): # pylint: disable=too-man _attribute_map = { "identity": {"key": "identity", "type": "ContainerGroupIdentity"}, "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, + "secret_references": {"key": "properties.secretReferences", "type": "[SecretReference]"}, "containers": {"key": "properties.containers", "type": "[Container]"}, "image_registry_credentials": { "key": "properties.imageRegistryCredentials", @@ -683,6 +768,7 @@ class ContainerGroupProperties(_serialization.Model): # pylint: disable=too-man "type": "ConfidentialComputeProperties", }, "priority": {"key": "properties.priority", "type": "str"}, + "identity_acls": {"key": "properties.identityAcls", "type": "IdentityAcls"}, "container_group_profile": { "key": "properties.containerGroupProfile", "type": "ContainerGroupProfileReferenceDefinition", @@ -694,22 +780,24 @@ class ContainerGroupProperties(_serialization.Model): # pylint: disable=too-man def __init__( self, *, - containers: List["_models.Container"], + containers: list["_models.Container"], identity: Optional["_models.ContainerGroupIdentity"] = None, - image_registry_credentials: Optional[List["_models.ImageRegistryCredential"]] = None, + secret_references: Optional[list["_models.SecretReference"]] = None, + image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = None, restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, ip_address: Optional["_models.IpAddress"] = None, os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - volumes: Optional[List["_models.Volume"]] = None, + volumes: Optional[list["_models.Volume"]] = None, diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, - subnet_ids: Optional[List["_models.ContainerGroupSubnetId"]] = None, + subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = None, dns_config: Optional["_models.DnsConfiguration"] = None, sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, encryption_properties: Optional["_models.EncryptionProperties"] = None, - init_containers: Optional[List["_models.InitContainerDefinition"]] = None, - extensions: Optional[List["_models.DeploymentExtensionSpec"]] = None, + init_containers: Optional[list["_models.InitContainerDefinition"]] = None, + extensions: Optional[list["_models.DeploymentExtensionSpec"]] = None, confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, + identity_acls: Optional["_models.IdentityAcls"] = None, container_group_profile: Optional["_models.ContainerGroupProfileReferenceDefinition"] = None, standby_pool_profile: Optional["_models.StandbyPoolProfileDefinition"] = None, **kwargs: Any @@ -717,6 +805,9 @@ def __init__( """ :keyword identity: The identity of the container group, if configured. :paramtype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity + :keyword secret_references: The secret references that will be referenced within the container + group. + :paramtype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] :keyword containers: The containers within the container group. Required. :paramtype containers: list[~azure.mgmt.containerinstance.models.Container] :keyword image_registry_credentials: The image registry credentials by which the container @@ -725,10 +816,9 @@ def __init__( list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] :keyword restart_policy: Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". + * ``Always`` Always restart + * ``OnFailure`` Restart on failure + * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". :paramtype restart_policy: str or ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy :keyword ip_address: The IP address type of the container group. @@ -745,8 +835,8 @@ def __init__( :paramtype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] :keyword dns_config: The DNS config information for a container group. :paramtype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration - :keyword sku: The SKU for a container group. Known values are: "Standard", "Dedicated", and - "Confidential". + :keyword sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". :paramtype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku :keyword encryption_properties: The encryption properties for a container group. :paramtype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties @@ -759,6 +849,8 @@ def __init__( ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties :keyword priority: The priority of the container group. Known values are: "Regular" and "Spot". :paramtype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority + :keyword identity_acls: The access control levels of the identities. + :paramtype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls :keyword container_group_profile: The reference container group profile properties. :paramtype container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition @@ -768,14 +860,15 @@ def __init__( """ super().__init__(**kwargs) self.identity = identity - self.provisioning_state = None + self.provisioning_state: Optional[str] = None + self.secret_references = secret_references self.containers = containers self.image_registry_credentials = image_registry_credentials self.restart_policy = restart_policy self.ip_address = ip_address self.os_type = os_type self.volumes = volumes - self.instance_view = None + self.instance_view: Optional["_models.ContainerGroupPropertiesInstanceView"] = None self.diagnostics = diagnostics self.subnet_ids = subnet_ids self.dns_config = dns_config @@ -785,9 +878,10 @@ def __init__( self.extensions = extensions self.confidential_compute_properties = confidential_compute_properties self.priority = priority + self.identity_acls = identity_acls self.container_group_profile = container_group_profile self.standby_pool_profile = standby_pool_profile - self.is_created_from_standby_pool = None + self.is_created_from_standby_pool: Optional[bool] = None class Resource(_serialization.Model): @@ -828,8 +922,8 @@ def __init__( self, *, location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - zones: Optional[List[str]] = None, + tags: Optional[dict[str, str]] = None, + zones: Optional[list[str]] = None, **kwargs: Any ) -> None: """ @@ -841,15 +935,15 @@ def __init__( :paramtype zones: list[str] """ super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None + self.id: Optional[str] = None + self.name: Optional[str] = None + self.type: Optional[str] = None self.location = location self.tags = tags self.zones = zones -class ContainerGroup(Resource, ContainerGroupProperties): # pylint: disable=too-many-instance-attributes +class ContainerGroup(Resource, ContainerGroupProperties): """A container group. Variables are only populated by the server, and will be ignored when sending a request. @@ -861,6 +955,9 @@ class ContainerGroup(Resource, ContainerGroupProperties): # pylint: disable=too :ivar provisioning_state: The provisioning state of the container group. This only appears in the response. :vartype provisioning_state: str + :ivar secret_references: The secret references that will be referenced within the container + group. + :vartype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] :ivar containers: The containers within the container group. Required. :vartype containers: list[~azure.mgmt.containerinstance.models.Container] :ivar image_registry_credentials: The image registry credentials by which the container group @@ -869,7 +966,6 @@ class ContainerGroup(Resource, ContainerGroupProperties): # pylint: disable=too list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] :ivar restart_policy: Restart policy for all containers within the container group. - * ``Always`` Always restart * ``OnFailure`` Restart on failure * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". @@ -891,8 +987,8 @@ class ContainerGroup(Resource, ContainerGroupProperties): # pylint: disable=too :vartype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] :ivar dns_config: The DNS config information for a container group. :vartype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration - :ivar sku: The SKU for a container group. Known values are: "Standard", "Dedicated", and - "Confidential". + :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku :ivar encryption_properties: The encryption properties for a container group. :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties @@ -905,14 +1001,16 @@ class ContainerGroup(Resource, ContainerGroupProperties): # pylint: disable=too ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority + :ivar identity_acls: The access control levels of the identities. + :vartype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls :ivar container_group_profile: The reference container group profile properties. :vartype container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition :ivar standby_pool_profile: The reference standby pool profile properties. :vartype standby_pool_profile: ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition - :ivar is_created_from_standby_pool: The flag indicating whether the container group is created - by standby pool. + :ivar is_created_from_standby_pool: The flag to determine whether the container group is + created from standby pool. :vartype is_created_from_standby_pool: bool :ivar id: The resource id. :vartype id: str @@ -941,6 +1039,7 @@ class ContainerGroup(Resource, ContainerGroupProperties): # pylint: disable=too _attribute_map = { "identity": {"key": "identity", "type": "ContainerGroupIdentity"}, "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, + "secret_references": {"key": "properties.secretReferences", "type": "[SecretReference]"}, "containers": {"key": "properties.containers", "type": "[Container]"}, "image_registry_credentials": { "key": "properties.imageRegistryCredentials", @@ -963,6 +1062,7 @@ class ContainerGroup(Resource, ContainerGroupProperties): # pylint: disable=too "type": "ConfidentialComputeProperties", }, "priority": {"key": "properties.priority", "type": "str"}, + "identity_acls": {"key": "properties.identityAcls", "type": "IdentityAcls"}, "container_group_profile": { "key": "properties.containerGroupProfile", "type": "ContainerGroupProfileReferenceDefinition", @@ -980,32 +1080,37 @@ class ContainerGroup(Resource, ContainerGroupProperties): # pylint: disable=too def __init__( # pylint: disable=too-many-locals self, *, - containers: List["_models.Container"], + containers: list["_models.Container"], identity: Optional["_models.ContainerGroupIdentity"] = None, - image_registry_credentials: Optional[List["_models.ImageRegistryCredential"]] = None, + secret_references: Optional[list["_models.SecretReference"]] = None, + image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = None, restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, ip_address: Optional["_models.IpAddress"] = None, os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - volumes: Optional[List["_models.Volume"]] = None, + volumes: Optional[list["_models.Volume"]] = None, diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, - subnet_ids: Optional[List["_models.ContainerGroupSubnetId"]] = None, + subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = None, dns_config: Optional["_models.DnsConfiguration"] = None, sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, encryption_properties: Optional["_models.EncryptionProperties"] = None, - init_containers: Optional[List["_models.InitContainerDefinition"]] = None, - extensions: Optional[List["_models.DeploymentExtensionSpec"]] = None, + init_containers: Optional[list["_models.InitContainerDefinition"]] = None, + extensions: Optional[list["_models.DeploymentExtensionSpec"]] = None, confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, + identity_acls: Optional["_models.IdentityAcls"] = None, container_group_profile: Optional["_models.ContainerGroupProfileReferenceDefinition"] = None, standby_pool_profile: Optional["_models.StandbyPoolProfileDefinition"] = None, location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - zones: Optional[List[str]] = None, + tags: Optional[dict[str, str]] = None, + zones: Optional[list[str]] = None, **kwargs: Any ) -> None: """ :keyword identity: The identity of the container group, if configured. :paramtype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity + :keyword secret_references: The secret references that will be referenced within the container + group. + :paramtype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] :keyword containers: The containers within the container group. Required. :paramtype containers: list[~azure.mgmt.containerinstance.models.Container] :keyword image_registry_credentials: The image registry credentials by which the container @@ -1014,10 +1119,9 @@ def __init__( # pylint: disable=too-many-locals list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] :keyword restart_policy: Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". + * ``Always`` Always restart + * ``OnFailure`` Restart on failure + * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". :paramtype restart_policy: str or ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy :keyword ip_address: The IP address type of the container group. @@ -1034,8 +1138,8 @@ def __init__( # pylint: disable=too-many-locals :paramtype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] :keyword dns_config: The DNS config information for a container group. :paramtype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration - :keyword sku: The SKU for a container group. Known values are: "Standard", "Dedicated", and - "Confidential". + :keyword sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". :paramtype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku :keyword encryption_properties: The encryption properties for a container group. :paramtype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties @@ -1048,6 +1152,8 @@ def __init__( # pylint: disable=too-many-locals ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties :keyword priority: The priority of the container group. Known values are: "Regular" and "Spot". :paramtype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority + :keyword identity_acls: The access control levels of the identities. + :paramtype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls :keyword container_group_profile: The reference container group profile properties. :paramtype container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition @@ -1066,6 +1172,7 @@ def __init__( # pylint: disable=too-many-locals tags=tags, zones=zones, identity=identity, + secret_references=secret_references, containers=containers, image_registry_credentials=image_registry_credentials, restart_policy=restart_policy, @@ -1081,19 +1188,21 @@ def __init__( # pylint: disable=too-many-locals extensions=extensions, confidential_compute_properties=confidential_compute_properties, priority=priority, + identity_acls=identity_acls, container_group_profile=container_group_profile, standby_pool_profile=standby_pool_profile, **kwargs ) self.identity = identity - self.provisioning_state = None + self.provisioning_state: Optional[str] = None + self.secret_references = secret_references self.containers = containers self.image_registry_credentials = image_registry_credentials self.restart_policy = restart_policy self.ip_address = ip_address self.os_type = os_type self.volumes = volumes - self.instance_view = None + self.instance_view: Optional["_models.ContainerGroupPropertiesInstanceView"] = None self.diagnostics = diagnostics self.subnet_ids = subnet_ids self.dns_config = dns_config @@ -1103,12 +1212,13 @@ def __init__( # pylint: disable=too-many-locals self.extensions = extensions self.confidential_compute_properties = confidential_compute_properties self.priority = priority + self.identity_acls = identity_acls self.container_group_profile = container_group_profile self.standby_pool_profile = standby_pool_profile - self.is_created_from_standby_pool = None - self.id = None - self.name = None - self.type = None + self.is_created_from_standby_pool: Optional[bool] = None + self.id: Optional[str] = None + self.name: Optional[str] = None + self.type: Optional[str] = None self.location = location self.tags = tags self.zones = zones @@ -1172,7 +1282,7 @@ def __init__( self, *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentities"]] = None, + user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentities"]] = None, **kwargs: Any ) -> None: """ @@ -1187,8 +1297,8 @@ def __init__( ~azure.mgmt.containerinstance.models.UserAssignedIdentities] """ super().__init__(**kwargs) - self.principal_id = None - self.tenant_id = None + self.principal_id: Optional[str] = None + self.tenant_id: Optional[str] = None self.type = type self.user_assigned_identities = user_assigned_identities @@ -1197,22 +1307,26 @@ class ContainerGroupListResult(_serialization.Model): """The container group list response that contains the container group properties. :ivar value: The list of container groups. - :vartype value: list[~azure.mgmt.containerinstance.models.ContainerGroup] + :vartype value: list[~azure.mgmt.containerinstance.models.ListResultContainerGroup] :ivar next_link: The URI to fetch the next page of container groups. :vartype next_link: str """ _attribute_map = { - "value": {"key": "value", "type": "[ContainerGroup]"}, + "value": {"key": "value", "type": "[ListResultContainerGroup]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( - self, *, value: Optional[List["_models.ContainerGroup"]] = None, next_link: Optional[str] = None, **kwargs: Any + self, + *, + value: Optional[list["_models.ListResultContainerGroup"]] = None, + next_link: Optional[str] = None, + **kwargs: Any ) -> None: """ :keyword value: The list of container groups. - :paramtype value: list[~azure.mgmt.containerinstance.models.ContainerGroup] + :paramtype value: list[~azure.mgmt.containerinstance.models.ListResultContainerGroup] :keyword next_link: The URI to fetch the next page of container groups. :paramtype next_link: str """ @@ -1221,451 +1335,368 @@ def __init__( self.next_link = next_link -class ContainerGroupProfileProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """The container group profile properties. +class ContainerGroupProfile(Resource): + """A container group profile object. Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. - - :ivar containers: The containers within the container group. Required. + :ivar id: The resource id. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar zones: The zones for the container group. + :vartype zones: list[str] + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.containerinstance.models.SystemData + :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". + :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku + :ivar encryption_properties: The encryption properties for a container group. + :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties + :ivar containers: The containers within the container group. :vartype containers: list[~azure.mgmt.containerinstance.models.Container] + :ivar init_containers: The init containers for a container group. + :vartype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] + :ivar extensions: extensions used by virtual kubelet. + :vartype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] :ivar image_registry_credentials: The image registry credentials by which the container group is created from. :vartype image_registry_credentials: list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] :ivar restart_policy: Restart policy for all containers within the container group. - * ``Always`` Always restart * ``OnFailure`` Restart on failure * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". :vartype restart_policy: str or ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy + :ivar shutdown_grace_period: Shutdown grace period for containers in a container group. + :vartype shutdown_grace_period: ~datetime.datetime :ivar ip_address: The IP address type of the container group. :vartype ip_address: ~azure.mgmt.containerinstance.models.IpAddress + :ivar time_to_live: Post completion time to live for containers of a CG. + :vartype time_to_live: ~datetime.datetime :ivar os_type: The operating system type required by the containers in the container group. - Required. Known values are: "Windows" and "Linux". + Known values are: "Windows" and "Linux". :vartype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes :ivar volumes: The list of volumes that can be mounted by containers in this container group. :vartype volumes: list[~azure.mgmt.containerinstance.models.Volume] :ivar diagnostics: The diagnostic information for a container group. :vartype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :ivar sku: The SKU for a container group. Known values are: "Standard", "Dedicated", and - "Confidential". - :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :ivar encryption_properties: The encryption properties for a container group. - :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :ivar init_containers: The init containers for a container group. - :vartype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :ivar extensions: extensions used by virtual kubelet. - :vartype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] + :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". + :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority :ivar confidential_compute_properties: The properties for confidential container group. :vartype confidential_compute_properties: ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". - :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority - :ivar revision: The container group profile current revision number. This only appears in the - response. + :ivar security_context: The container security properties. + :vartype security_context: ~azure.mgmt.containerinstance.models.SecurityContextDefinition + :ivar revision: Container group profile current revision number. :vartype revision: int + :ivar registered_revisions: Registered revisions are calculated at request time based off the + records in the table logs. + :vartype registered_revisions: list[int] + :ivar use_krypton: Gets or sets Krypton use property. + :vartype use_krypton: bool """ _validation = { - "containers": {"required": True}, - "os_type": {"required": True}, + "id": {"readonly": True}, + "name": {"readonly": True}, + "type": {"readonly": True}, + "system_data": {"readonly": True}, "revision": {"readonly": True}, + "registered_revisions": {"readonly": True}, } _attribute_map = { + "id": {"key": "id", "type": "str"}, + "name": {"key": "name", "type": "str"}, + "type": {"key": "type", "type": "str"}, + "location": {"key": "location", "type": "str"}, + "tags": {"key": "tags", "type": "{str}"}, + "zones": {"key": "zones", "type": "[str]"}, + "system_data": {"key": "systemData", "type": "SystemData"}, + "sku": {"key": "properties.sku", "type": "str"}, + "encryption_properties": {"key": "properties.encryptionProperties", "type": "EncryptionProperties"}, "containers": {"key": "properties.containers", "type": "[Container]"}, + "init_containers": {"key": "properties.initContainers", "type": "[InitContainerDefinition]"}, + "extensions": {"key": "properties.extensions", "type": "[DeploymentExtensionSpec]"}, "image_registry_credentials": { "key": "properties.imageRegistryCredentials", "type": "[ImageRegistryCredential]", }, "restart_policy": {"key": "properties.restartPolicy", "type": "str"}, + "shutdown_grace_period": {"key": "properties.shutdownGracePeriod", "type": "iso-8601"}, "ip_address": {"key": "properties.ipAddress", "type": "IpAddress"}, + "time_to_live": {"key": "properties.timeToLive", "type": "iso-8601"}, "os_type": {"key": "properties.osType", "type": "str"}, "volumes": {"key": "properties.volumes", "type": "[Volume]"}, "diagnostics": {"key": "properties.diagnostics", "type": "ContainerGroupDiagnostics"}, - "sku": {"key": "properties.sku", "type": "str"}, - "encryption_properties": {"key": "properties.encryptionProperties", "type": "EncryptionProperties"}, - "init_containers": {"key": "properties.initContainers", "type": "[InitContainerDefinition]"}, - "extensions": {"key": "properties.extensions", "type": "[DeploymentExtensionSpec]"}, + "priority": {"key": "properties.priority", "type": "str"}, "confidential_compute_properties": { "key": "properties.confidentialComputeProperties", "type": "ConfidentialComputeProperties", }, - "priority": {"key": "properties.priority", "type": "str"}, + "security_context": {"key": "properties.securityContext", "type": "SecurityContextDefinition"}, "revision": {"key": "properties.revision", "type": "int"}, + "registered_revisions": {"key": "properties.registeredRevisions", "type": "[int]"}, + "use_krypton": {"key": "properties.useKrypton", "type": "bool"}, } - def __init__( + def __init__( # pylint: disable=too-many-locals self, *, - containers: List["_models.Container"], - os_type: Union[str, "_models.OperatingSystemTypes"], - image_registry_credentials: Optional[List["_models.ImageRegistryCredential"]] = None, + location: Optional[str] = None, + tags: Optional[dict[str, str]] = None, + zones: Optional[list[str]] = None, + sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, + encryption_properties: Optional["_models.EncryptionProperties"] = None, + containers: Optional[list["_models.Container"]] = None, + init_containers: Optional[list["_models.InitContainerDefinition"]] = None, + extensions: Optional[list["_models.DeploymentExtensionSpec"]] = None, + image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = None, restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, + shutdown_grace_period: Optional[datetime.datetime] = None, ip_address: Optional["_models.IpAddress"] = None, - volumes: Optional[List["_models.Volume"]] = None, + time_to_live: Optional[datetime.datetime] = None, + os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, + volumes: Optional[list["_models.Volume"]] = None, diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, - sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, - encryption_properties: Optional["_models.EncryptionProperties"] = None, - init_containers: Optional[List["_models.InitContainerDefinition"]] = None, - extensions: Optional[List["_models.DeploymentExtensionSpec"]] = None, - confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, + confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, + security_context: Optional["_models.SecurityContextDefinition"] = None, + use_krypton: Optional[bool] = None, **kwargs: Any ) -> None: """ - :keyword containers: The containers within the container group. Required. + :keyword location: The resource location. + :paramtype location: str + :keyword tags: The resource tags. + :paramtype tags: dict[str, str] + :keyword zones: The zones for the container group. + :paramtype zones: list[str] + :keyword sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". + :paramtype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku + :keyword encryption_properties: The encryption properties for a container group. + :paramtype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties + :keyword containers: The containers within the container group. :paramtype containers: list[~azure.mgmt.containerinstance.models.Container] + :keyword init_containers: The init containers for a container group. + :paramtype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] + :keyword extensions: extensions used by virtual kubelet. + :paramtype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] :keyword image_registry_credentials: The image registry credentials by which the container group is created from. :paramtype image_registry_credentials: list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] :keyword restart_policy: Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". + * ``Always`` Always restart + * ``OnFailure`` Restart on failure + * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". :paramtype restart_policy: str or ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy + :keyword shutdown_grace_period: Shutdown grace period for containers in a container group. + :paramtype shutdown_grace_period: ~datetime.datetime :keyword ip_address: The IP address type of the container group. :paramtype ip_address: ~azure.mgmt.containerinstance.models.IpAddress + :keyword time_to_live: Post completion time to live for containers of a CG. + :paramtype time_to_live: ~datetime.datetime :keyword os_type: The operating system type required by the containers in the container group. - Required. Known values are: "Windows" and "Linux". + Known values are: "Windows" and "Linux". :paramtype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes :keyword volumes: The list of volumes that can be mounted by containers in this container group. :paramtype volumes: list[~azure.mgmt.containerinstance.models.Volume] :keyword diagnostics: The diagnostic information for a container group. :paramtype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :keyword sku: The SKU for a container group. Known values are: "Standard", "Dedicated", and - "Confidential". - :paramtype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :keyword encryption_properties: The encryption properties for a container group. - :paramtype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :keyword init_containers: The init containers for a container group. - :paramtype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :keyword extensions: extensions used by virtual kubelet. - :paramtype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] + :keyword priority: The priority of the container group. Known values are: "Regular" and "Spot". + :paramtype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority :keyword confidential_compute_properties: The properties for confidential container group. :paramtype confidential_compute_properties: ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :keyword priority: The priority of the container group. Known values are: "Regular" and "Spot". - :paramtype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority + :keyword security_context: The container security properties. + :paramtype security_context: ~azure.mgmt.containerinstance.models.SecurityContextDefinition + :keyword use_krypton: Gets or sets Krypton use property. + :paramtype use_krypton: bool """ - super().__init__(**kwargs) + super().__init__(location=location, tags=tags, zones=zones, **kwargs) + self.system_data: Optional["_models.SystemData"] = None + self.sku = sku + self.encryption_properties = encryption_properties self.containers = containers + self.init_containers = init_containers + self.extensions = extensions self.image_registry_credentials = image_registry_credentials self.restart_policy = restart_policy + self.shutdown_grace_period = shutdown_grace_period self.ip_address = ip_address + self.time_to_live = time_to_live self.os_type = os_type self.volumes = volumes self.diagnostics = diagnostics - self.sku = sku - self.encryption_properties = encryption_properties - self.init_containers = init_containers - self.extensions = extensions - self.confidential_compute_properties = confidential_compute_properties self.priority = priority - self.revision = None + self.confidential_compute_properties = confidential_compute_properties + self.security_context = security_context + self.revision: Optional[int] = None + self.registered_revisions: Optional[list[int]] = None + self.use_krypton = use_krypton -class ContainerGroupProfile(Resource, ContainerGroupProfileProperties): # pylint: disable=too-many-instance-attributes - """A container group profile. +class ContainerGroupProfileListResult(_serialization.Model): + """The container group profile list response. - Variables are only populated by the server, and will be ignored when sending a request. + :ivar value: The list of ContainerGroupProfiles under a subscription or resource group. + :vartype value: list[~azure.mgmt.containerinstance.models.ContainerGroupProfile] + :ivar next_link: The URI to fetch the next page of Container Group Profiles. + :vartype next_link: str + """ - All required parameters must be populated in order to send to server. + _attribute_map = { + "value": {"key": "value", "type": "[ContainerGroupProfile]"}, + "next_link": {"key": "nextLink", "type": "str"}, + } - :ivar containers: The containers within the container group. Required. - :vartype containers: list[~azure.mgmt.containerinstance.models.Container] - :ivar image_registry_credentials: The image registry credentials by which the container group - is created from. - :vartype image_registry_credentials: - list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] - :ivar restart_policy: Restart policy for all containers within the container group. + def __init__( + self, + *, + value: Optional[list["_models.ContainerGroupProfile"]] = None, + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: + """ + :keyword value: The list of ContainerGroupProfiles under a subscription or resource group. + :paramtype value: list[~azure.mgmt.containerinstance.models.ContainerGroupProfile] + :keyword next_link: The URI to fetch the next page of Container Group Profiles. + :paramtype next_link: str + """ + super().__init__(**kwargs) + self.value = value + self.next_link = next_link - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". - :vartype restart_policy: str or - ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy - :ivar ip_address: The IP address type of the container group. - :vartype ip_address: ~azure.mgmt.containerinstance.models.IpAddress - :ivar os_type: The operating system type required by the containers in the container group. - Required. Known values are: "Windows" and "Linux". - :vartype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes - :ivar volumes: The list of volumes that can be mounted by containers in this container group. - :vartype volumes: list[~azure.mgmt.containerinstance.models.Volume] - :ivar diagnostics: The diagnostic information for a container group. - :vartype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :ivar sku: The SKU for a container group. Known values are: "Standard", "Dedicated", and - "Confidential". - :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :ivar encryption_properties: The encryption properties for a container group. - :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :ivar init_containers: The init containers for a container group. - :vartype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :ivar extensions: extensions used by virtual kubelet. - :vartype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] - :ivar confidential_compute_properties: The properties for confidential container group. - :vartype confidential_compute_properties: - ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". - :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority - :ivar revision: The container group profile current revision number. This only appears in the - response. - :vartype revision: int - :ivar id: The resource id. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. +class ContainerGroupProfilePatch(_serialization.Model): + """Properties of container group profile that need to be patched. + + :ivar tags: Resource tags. :vartype tags: dict[str, str] - :ivar zones: The zones for the container group. - :vartype zones: list[str] """ - _validation = { - "containers": {"required": True}, - "os_type": {"required": True}, - "revision": {"readonly": True}, - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - _attribute_map = { - "containers": {"key": "properties.containers", "type": "[Container]"}, - "image_registry_credentials": { - "key": "properties.imageRegistryCredentials", - "type": "[ImageRegistryCredential]", - }, - "restart_policy": {"key": "properties.restartPolicy", "type": "str"}, - "ip_address": {"key": "properties.ipAddress", "type": "IpAddress"}, - "os_type": {"key": "properties.osType", "type": "str"}, - "volumes": {"key": "properties.volumes", "type": "[Volume]"}, - "diagnostics": {"key": "properties.diagnostics", "type": "ContainerGroupDiagnostics"}, - "sku": {"key": "properties.sku", "type": "str"}, - "encryption_properties": {"key": "properties.encryptionProperties", "type": "EncryptionProperties"}, - "init_containers": {"key": "properties.initContainers", "type": "[InitContainerDefinition]"}, - "extensions": {"key": "properties.extensions", "type": "[DeploymentExtensionSpec]"}, - "confidential_compute_properties": { - "key": "properties.confidentialComputeProperties", - "type": "ConfidentialComputeProperties", - }, - "priority": {"key": "properties.priority", "type": "str"}, - "revision": {"key": "properties.revision", "type": "int"}, - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, "tags": {"key": "tags", "type": "{str}"}, - "zones": {"key": "zones", "type": "[str]"}, } - def __init__( - self, - *, - containers: List["_models.Container"], - os_type: Union[str, "_models.OperatingSystemTypes"], - image_registry_credentials: Optional[List["_models.ImageRegistryCredential"]] = None, - restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, - ip_address: Optional["_models.IpAddress"] = None, - volumes: Optional[List["_models.Volume"]] = None, - diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, - sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, - encryption_properties: Optional["_models.EncryptionProperties"] = None, - init_containers: Optional[List["_models.InitContainerDefinition"]] = None, - extensions: Optional[List["_models.DeploymentExtensionSpec"]] = None, - confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, - priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - zones: Optional[List[str]] = None, - **kwargs: Any - ) -> None: + def __init__(self, *, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: """ - :keyword containers: The containers within the container group. Required. - :paramtype containers: list[~azure.mgmt.containerinstance.models.Container] - :keyword image_registry_credentials: The image registry credentials by which the container - group is created from. - :paramtype image_registry_credentials: - list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] - :keyword restart_policy: Restart policy for all containers within the container group. - - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". - :paramtype restart_policy: str or - ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy - :keyword ip_address: The IP address type of the container group. - :paramtype ip_address: ~azure.mgmt.containerinstance.models.IpAddress - :keyword os_type: The operating system type required by the containers in the container group. - Required. Known values are: "Windows" and "Linux". - :paramtype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes - :keyword volumes: The list of volumes that can be mounted by containers in this container - group. - :paramtype volumes: list[~azure.mgmt.containerinstance.models.Volume] - :keyword diagnostics: The diagnostic information for a container group. - :paramtype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :keyword sku: The SKU for a container group. Known values are: "Standard", "Dedicated", and - "Confidential". - :paramtype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :keyword encryption_properties: The encryption properties for a container group. - :paramtype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :keyword init_containers: The init containers for a container group. - :paramtype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :keyword extensions: extensions used by virtual kubelet. - :paramtype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] - :keyword confidential_compute_properties: The properties for confidential container group. - :paramtype confidential_compute_properties: - ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :keyword priority: The priority of the container group. Known values are: "Regular" and "Spot". - :paramtype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority - :keyword location: The resource location. - :paramtype location: str - :keyword tags: The resource tags. + :keyword tags: Resource tags. :paramtype tags: dict[str, str] - :keyword zones: The zones for the container group. - :paramtype zones: list[str] """ - super().__init__( - location=location, - tags=tags, - zones=zones, - containers=containers, - image_registry_credentials=image_registry_credentials, - restart_policy=restart_policy, - ip_address=ip_address, - os_type=os_type, - volumes=volumes, - diagnostics=diagnostics, - sku=sku, - encryption_properties=encryption_properties, - init_containers=init_containers, - extensions=extensions, - confidential_compute_properties=confidential_compute_properties, - priority=priority, - **kwargs - ) - self.containers = containers - self.image_registry_credentials = image_registry_credentials - self.restart_policy = restart_policy - self.ip_address = ip_address - self.os_type = os_type - self.volumes = volumes - self.diagnostics = diagnostics - self.sku = sku - self.encryption_properties = encryption_properties - self.init_containers = init_containers - self.extensions = extensions - self.confidential_compute_properties = confidential_compute_properties - self.priority = priority - self.revision = None - self.id = None - self.name = None - self.type = None - self.location = location + super().__init__(**kwargs) self.tags = tags - self.zones = zones -class ContainerGroupProfileListResult(_serialization.Model): - """The container group profile list response that contains the container group profile properties. +class ContainerGroupProfileReferenceDefinition(_serialization.Model): + """The container group profile reference. - :ivar value: The list of container group profiles. - :vartype value: list[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :ivar next_link: The URI to fetch the next page of container group profiles. - :vartype next_link: str + :ivar 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}'. + :vartype id: str + :ivar revision: The container group profile reference revision. + :vartype revision: int """ _attribute_map = { - "value": {"key": "value", "type": "[ContainerGroupProfile]"}, - "next_link": {"key": "nextLink", "type": "str"}, + "id": {"key": "id", "type": "str"}, + "revision": {"key": "revision", "type": "int"}, } def __init__( self, *, - value: Optional[List["_models.ContainerGroupProfile"]] = None, - next_link: Optional[str] = None, + id: Optional[str] = None, # pylint: disable=redefined-builtin + revision: Optional[int] = None, **kwargs: Any ) -> None: """ - :keyword value: The list of container group profiles. - :paramtype value: list[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :keyword next_link: The URI to fetch the next page of container group profiles. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ContainerGroupProfilePatch(_serialization.Model): - """Properties of container group profile that need to be patched. - - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - """ - - _attribute_map = { - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] + :keyword 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}'. + :paramtype id: str + :keyword revision: The container group profile reference revision. + :paramtype revision: int """ super().__init__(**kwargs) - self.tags = tags + self.id = id + self.revision = revision -class ContainerGroupProfileReferenceDefinition(_serialization.Model): - """The container group profile reference. +class ContainerGroupProfileStub(_serialization.Model): + """The object that contains a reference to a Container Group Profile and it's other related + properties. - :ivar 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}'. # pylint: disable=line-too-long - :vartype id: str - :ivar revision: The container group profile reference revision. + :ivar resource: A reference to the container group profile ARM resource hosted in ACI RP. + :vartype resource: ~azure.mgmt.containerinstance.models.ApiEntityReference + :ivar revision: The revision of the CG profile is an optional property. If customer does not to + provide a revision then NGroups will pickup the latest revision of CGProfile. :vartype revision: int + :ivar network_profile: A network profile for network settings of a ContainerGroupProfile. + :vartype network_profile: ~azure.mgmt.containerinstance.models.NetworkProfile + :ivar storage_profile: Storage profile for storage related settings of a container group + profile. + :vartype storage_profile: ~azure.mgmt.containerinstance.models.StorageProfile + :ivar container_group_properties: Container Group properties which can be set while creating or + updating the NGroups. + :vartype container_group_properties: + ~azure.mgmt.containerinstance.models.NGroupContainerGroupProperties """ _attribute_map = { - "id": {"key": "id", "type": "str"}, + "resource": {"key": "resource", "type": "ApiEntityReference"}, "revision": {"key": "revision", "type": "int"}, + "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, + "storage_profile": {"key": "storageProfile", "type": "StorageProfile"}, + "container_group_properties": {"key": "containerGroupProperties", "type": "NGroupContainerGroupProperties"}, } def __init__( self, *, - id: Optional[str] = None, # pylint: disable=redefined-builtin + resource: Optional["_models.ApiEntityReference"] = None, revision: Optional[int] = None, + network_profile: Optional["_models.NetworkProfile"] = None, + storage_profile: Optional["_models.StorageProfile"] = None, + container_group_properties: Optional["_models.NGroupContainerGroupProperties"] = None, **kwargs: Any ) -> None: """ - :keyword 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}'. # pylint: disable=line-too-long - :paramtype id: str - :keyword revision: The container group profile reference revision. + :keyword resource: A reference to the container group profile ARM resource hosted in ACI RP. + :paramtype resource: ~azure.mgmt.containerinstance.models.ApiEntityReference + :keyword revision: The revision of the CG profile is an optional property. If customer does not + to provide a revision then NGroups will pickup the latest revision of CGProfile. :paramtype revision: int + :keyword network_profile: A network profile for network settings of a ContainerGroupProfile. + :paramtype network_profile: ~azure.mgmt.containerinstance.models.NetworkProfile + :keyword storage_profile: Storage profile for storage related settings of a container group + profile. + :paramtype storage_profile: ~azure.mgmt.containerinstance.models.StorageProfile + :keyword container_group_properties: Container Group properties which can be set while creating + or updating the NGroups. + :paramtype container_group_properties: + ~azure.mgmt.containerinstance.models.NGroupContainerGroupProperties """ super().__init__(**kwargs) - self.id = id + self.resource = resource self.revision = revision + self.network_profile = network_profile + self.storage_profile = storage_profile + self.container_group_properties = container_group_properties class ContainerGroupPropertiesInstanceView(_serialization.Model): @@ -1692,8 +1723,8 @@ class ContainerGroupPropertiesInstanceView(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.events = None - self.state = None + self.events: Optional[list["_models.Event"]] = None + self.state: Optional[str] = None class ContainerGroupSubnetId(_serialization.Model): @@ -1762,7 +1793,7 @@ def __init__( port: int, path: Optional[str] = None, scheme: Optional[Union[str, "_models.Scheme"]] = None, - http_headers: Optional[List["_models.HttpHeader"]] = None, + http_headers: Optional[list["_models.HttpHeader"]] = None, **kwargs: Any ) -> None: """ @@ -1915,10 +1946,10 @@ class ContainerPropertiesInstanceView(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.restart_count = None - self.current_state = None - self.previous_state = None - self.events = None + self.restart_count: Optional[int] = None + self.current_state: Optional["_models.ContainerState"] = None + self.previous_state: Optional["_models.ContainerState"] = None + self.events: Optional[list["_models.Event"]] = None class ContainerState(_serialization.Model): @@ -1958,11 +1989,11 @@ class ContainerState(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.state = None - self.start_time = None - self.exit_code = None - self.finish_time = None - self.detail_status = None + self.state: Optional[str] = None + self.start_time: Optional[datetime.datetime] = None + self.exit_code: Optional[int] = None + self.finish_time: Optional[datetime.datetime] = None + self.detail_status: Optional[str] = None class DeploymentExtensionSpec(_serialization.Model): @@ -2050,7 +2081,7 @@ class DnsConfiguration(_serialization.Model): def __init__( self, *, - name_servers: List[str], + name_servers: list[str], search_domains: Optional[str] = None, options: Optional[str] = None, **kwargs: Any @@ -2069,6 +2100,113 @@ def __init__( self.options = options +class ElasticProfile(_serialization.Model): + """Describes the elastic profile of the NGroup. + + :ivar desired_count: + :vartype desired_count: int + :ivar maintain_desired_count: Flag that indicates whether desiredCount should be maintained + when customer deletes SPECIFIC container groups (CGs) from the NGroups. In this case, new CGs + will be created by NGroup to compensate for the specific deleted ones. + :vartype maintain_desired_count: bool + :ivar container_group_naming_policy: Container Groups are named on a generic guid based naming + scheme/policy. Customer can modify naming policy to add prefix to CG names during scale out + operation. + :vartype container_group_naming_policy: + ~azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicy + """ + + _attribute_map = { + "desired_count": {"key": "desiredCount", "type": "int"}, + "maintain_desired_count": {"key": "maintainDesiredCount", "type": "bool"}, + "container_group_naming_policy": { + "key": "containerGroupNamingPolicy", + "type": "ElasticProfileContainerGroupNamingPolicy", + }, + } + + def __init__( + self, + *, + desired_count: Optional[int] = None, + maintain_desired_count: Optional[bool] = None, + container_group_naming_policy: Optional["_models.ElasticProfileContainerGroupNamingPolicy"] = None, + **kwargs: Any + ) -> None: + """ + :keyword desired_count: + :paramtype desired_count: int + :keyword maintain_desired_count: Flag that indicates whether desiredCount should be maintained + when customer deletes SPECIFIC container groups (CGs) from the NGroups. In this case, new CGs + will be created by NGroup to compensate for the specific deleted ones. + :paramtype maintain_desired_count: bool + :keyword container_group_naming_policy: Container Groups are named on a generic guid based + naming scheme/policy. Customer can modify naming policy to add prefix to CG names during scale + out operation. + :paramtype container_group_naming_policy: + ~azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicy + """ + super().__init__(**kwargs) + self.desired_count = desired_count + self.maintain_desired_count = maintain_desired_count + self.container_group_naming_policy = container_group_naming_policy + + +class ElasticProfileContainerGroupNamingPolicy(_serialization.Model): + """Container Groups are named on a generic guid based naming scheme/policy. Customer can modify + naming policy to add prefix to CG names during scale out operation. + + :ivar guid_naming_policy: + :vartype guid_naming_policy: + ~azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy + """ + + _attribute_map = { + "guid_naming_policy": { + "key": "guidNamingPolicy", + "type": "ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy", + }, + } + + def __init__( + self, + *, + guid_naming_policy: Optional["_models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy"] = None, + **kwargs: Any + ) -> None: + """ + :keyword guid_naming_policy: + :paramtype guid_naming_policy: + ~azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy + """ + super().__init__(**kwargs) + self.guid_naming_policy = guid_naming_policy + + +class ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy(_serialization.Model): # pylint: disable=name-too-long + """ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy. + + :ivar prefix: The prefix can be used when there are tooling limitations (e.g. on the Azure + portal where CGs from multiple NGroups exist in the same RG). The prefix with the suffixed + resource name must still follow Azure resource naming guidelines. + :vartype prefix: str + """ + + _attribute_map = { + "prefix": {"key": "prefix", "type": "str"}, + } + + def __init__(self, *, prefix: Optional[str] = None, **kwargs: Any) -> None: + """ + :keyword prefix: The prefix can be used when there are tooling limitations (e.g. on the Azure + portal where CGs from multiple NGroups exist in the same RG). The prefix with the suffixed + resource name must still follow Azure resource naming guidelines. + :paramtype prefix: str + """ + super().__init__(**kwargs) + self.prefix = prefix + + class EncryptionProperties(_serialization.Model): """The container group encryption properties. @@ -2128,6 +2266,8 @@ class EnvironmentVariable(_serialization.Model): :vartype value: str :ivar secure_value: The value of the secure environment variable. :vartype secure_value: str + :ivar secure_value_reference: The reference of the secure environment variable. + :vartype secure_value_reference: str """ _validation = { @@ -2138,10 +2278,17 @@ class EnvironmentVariable(_serialization.Model): "name": {"key": "name", "type": "str"}, "value": {"key": "value", "type": "str"}, "secure_value": {"key": "secureValue", "type": "str"}, + "secure_value_reference": {"key": "secureValueReference", "type": "str"}, } def __init__( - self, *, name: str, value: Optional[str] = None, secure_value: Optional[str] = None, **kwargs: Any + self, + *, + name: str, + value: Optional[str] = None, + secure_value: Optional[str] = None, + secure_value_reference: Optional[str] = None, + **kwargs: Any ) -> None: """ :keyword name: The name of the environment variable. Required. @@ -2150,72 +2297,261 @@ def __init__( :paramtype value: str :keyword secure_value: The value of the secure environment variable. :paramtype secure_value: str + :keyword secure_value_reference: The reference of the secure environment variable. + :paramtype secure_value_reference: str """ super().__init__(**kwargs) self.name = name self.value = value self.secure_value = secure_value + self.secure_value_reference = secure_value_reference -class Event(_serialization.Model): - """A container group or container instance event. +class ErrorAdditionalInfo(_serialization.Model): + """The resource management error additional info. Variables are only populated by the server, and will be ignored when sending a request. - :ivar count: The count of the event. - :vartype count: int - :ivar first_timestamp: The date-time of the earliest logged event. - :vartype first_timestamp: ~datetime.datetime - :ivar last_timestamp: The date-time of the latest logged event. - :vartype last_timestamp: ~datetime.datetime - :ivar name: The event name. - :vartype name: str - :ivar message: The event message. - :vartype message: str - :ivar type: The event type. + :ivar type: The additional info type. :vartype type: str + :ivar info: The additional info. + :vartype info: JSON """ _validation = { - "count": {"readonly": True}, - "first_timestamp": {"readonly": True}, - "last_timestamp": {"readonly": True}, - "name": {"readonly": True}, - "message": {"readonly": True}, "type": {"readonly": True}, + "info": {"readonly": True}, } _attribute_map = { - "count": {"key": "count", "type": "int"}, - "first_timestamp": {"key": "firstTimestamp", "type": "iso-8601"}, - "last_timestamp": {"key": "lastTimestamp", "type": "iso-8601"}, - "name": {"key": "name", "type": "str"}, - "message": {"key": "message", "type": "str"}, "type": {"key": "type", "type": "str"}, + "info": {"key": "info", "type": "object"}, } def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.count = None - self.first_timestamp = None - self.last_timestamp = None - self.name = None - self.message = None - self.type = None + self.type: Optional[str] = None + self.info: Optional[JSON] = None -class GitRepoVolume(_serialization.Model): - """Represents a volume that is populated with the contents of a git repository. +class ErrorDetail(_serialization.Model): + """The error detail. - All required parameters must be populated in order to send to server. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar directory: 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. - :vartype directory: str - :ivar repository: Repository URL. Required. - :vartype repository: str + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar target: The error target. + :vartype target: str + :ivar details: The error details. + :vartype details: list[~azure.mgmt.containerinstance.models.ErrorDetail] + :ivar additional_info: The error additional info. + :vartype additional_info: list[~azure.mgmt.containerinstance.models.ErrorAdditionalInfo] + """ + + _validation = { + "code": {"readonly": True}, + "message": {"readonly": True}, + "target": {"readonly": True}, + "details": {"readonly": True}, + "additional_info": {"readonly": True}, + } + + _attribute_map = { + "code": {"key": "code", "type": "str"}, + "message": {"key": "message", "type": "str"}, + "target": {"key": "target", "type": "str"}, + "details": {"key": "details", "type": "[ErrorDetail]"}, + "additional_info": {"key": "additionalInfo", "type": "[ErrorAdditionalInfo]"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.code: Optional[str] = None + self.message: Optional[str] = None + self.target: Optional[str] = None + self.details: Optional[list["_models.ErrorDetail"]] = None + self.additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = None + + +class ErrorResponse(_serialization.Model): + """Common error response for all Azure Resource Manager APIs to return error details for failed + operations. (This also follows the OData error response format.). + + :ivar error: The error object. + :vartype error: ~azure.mgmt.containerinstance.models.ErrorDetail + """ + + _attribute_map = { + "error": {"key": "error", "type": "ErrorDetail"}, + } + + def __init__(self, *, error: Optional["_models.ErrorDetail"] = None, **kwargs: Any) -> None: + """ + :keyword error: The error object. + :paramtype error: ~azure.mgmt.containerinstance.models.ErrorDetail + """ + super().__init__(**kwargs) + self.error = error + + +class Event(_serialization.Model): + """A container group or container instance event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar count: The count of the event. + :vartype count: int + :ivar first_timestamp: The date-time of the earliest logged event. + :vartype first_timestamp: ~datetime.datetime + :ivar last_timestamp: The date-time of the latest logged event. + :vartype last_timestamp: ~datetime.datetime + :ivar name: The event name. + :vartype name: str + :ivar message: The event message. + :vartype message: str + :ivar type: The event type. + :vartype type: str + """ + + _validation = { + "count": {"readonly": True}, + "first_timestamp": {"readonly": True}, + "last_timestamp": {"readonly": True}, + "name": {"readonly": True}, + "message": {"readonly": True}, + "type": {"readonly": True}, + } + + _attribute_map = { + "count": {"key": "count", "type": "int"}, + "first_timestamp": {"key": "firstTimestamp", "type": "iso-8601"}, + "last_timestamp": {"key": "lastTimestamp", "type": "iso-8601"}, + "name": {"key": "name", "type": "str"}, + "message": {"key": "message", "type": "str"}, + "type": {"key": "type", "type": "str"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.count: Optional[int] = None + self.first_timestamp: Optional[datetime.datetime] = None + self.last_timestamp: Optional[datetime.datetime] = None + self.name: Optional[str] = None + self.message: Optional[str] = None + self.type: Optional[str] = None + + +class FileShare(_serialization.Model): + """File shares that can be mounted on container groups. + + :ivar name: + :vartype name: str + :ivar resource_group_name: + :vartype resource_group_name: str + :ivar storage_account_name: + :vartype storage_account_name: str + :ivar properties: + :vartype properties: ~azure.mgmt.containerinstance.models.FileShareProperties + """ + + _attribute_map = { + "name": {"key": "name", "type": "str"}, + "resource_group_name": {"key": "resourceGroupName", "type": "str"}, + "storage_account_name": {"key": "storageAccountName", "type": "str"}, + "properties": {"key": "properties", "type": "FileShareProperties"}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + resource_group_name: Optional[str] = None, + storage_account_name: Optional[str] = None, + properties: Optional["_models.FileShareProperties"] = None, + **kwargs: Any + ) -> None: + """ + :keyword name: + :paramtype name: str + :keyword resource_group_name: + :paramtype resource_group_name: str + :keyword storage_account_name: + :paramtype storage_account_name: str + :keyword properties: + :paramtype properties: ~azure.mgmt.containerinstance.models.FileShareProperties + """ + super().__init__(**kwargs) + self.name = name + self.resource_group_name = resource_group_name + self.storage_account_name = storage_account_name + self.properties = properties + + +class FileShareProperties(_serialization.Model): + """FileShareProperties. + + :ivar share_access_type: Specifies how Container Groups can access the Azure file share i.e. + all CG will share same Azure file share or going to have exclusive file share. Known values + are: "Shared" and "Exclusive". + :vartype share_access_type: str or + ~azure.mgmt.containerinstance.models.AzureFileShareAccessType + :ivar share_access_tier: Access tier for specific share. GpV2 account can choose between + TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Learn + more at: + https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP#shareaccesstier. + Known values are: "Cool", "Hot", "Premium", and "TransactionOptimized". + :vartype share_access_tier: str or + ~azure.mgmt.containerinstance.models.AzureFileShareAccessTier + """ + + _attribute_map = { + "share_access_type": {"key": "shareAccessType", "type": "str"}, + "share_access_tier": {"key": "shareAccessTier", "type": "str"}, + } + + def __init__( + self, + *, + share_access_type: Optional[Union[str, "_models.AzureFileShareAccessType"]] = None, + share_access_tier: Union[str, "_models.AzureFileShareAccessTier"] = "TransactionOptimized", + **kwargs: Any + ) -> None: + """ + :keyword share_access_type: Specifies how Container Groups can access the Azure file share i.e. + all CG will share same Azure file share or going to have exclusive file share. Known values + are: "Shared" and "Exclusive". + :paramtype share_access_type: str or + ~azure.mgmt.containerinstance.models.AzureFileShareAccessType + :keyword share_access_tier: Access tier for specific share. GpV2 account can choose between + TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Learn + more at: + https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP#shareaccesstier. + Known values are: "Cool", "Hot", "Premium", and "TransactionOptimized". + :paramtype share_access_tier: str or + ~azure.mgmt.containerinstance.models.AzureFileShareAccessTier + """ + super().__init__(**kwargs) + self.share_access_type = share_access_type + self.share_access_tier = share_access_tier + + +class GitRepoVolume(_serialization.Model): + """Represents a volume that is populated with the contents of a git repository. + + All required parameters must be populated in order to send to server. + + :ivar directory: 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. + :vartype directory: str + :ivar repository: Repository URL. Required. + :vartype repository: str :ivar revision: Commit hash for the specified revision. :vartype revision: str """ @@ -2309,6 +2645,72 @@ def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, * self.value = value +class IdentityAccessControl(_serialization.Model): + """The access control for an identity. + + :ivar access: The access level of the identity. Known values are: "All", "System", and "User". + :vartype access: str or ~azure.mgmt.containerinstance.models.IdentityAccessLevel + :ivar identity: An identity. + :vartype identity: str + """ + + _attribute_map = { + "access": {"key": "access", "type": "str"}, + "identity": {"key": "identity", "type": "str"}, + } + + def __init__( + self, + *, + access: Optional[Union[str, "_models.IdentityAccessLevel"]] = None, + identity: Optional[str] = None, + **kwargs: Any + ) -> None: + """ + :keyword access: The access level of the identity. Known values are: "All", "System", and + "User". + :paramtype access: str or ~azure.mgmt.containerinstance.models.IdentityAccessLevel + :keyword identity: An identity. + :paramtype identity: str + """ + super().__init__(**kwargs) + self.access = access + self.identity = identity + + +class IdentityAcls(_serialization.Model): + """The access control levels of the identities. + + :ivar default_access: The default access level. Known values are: "All", "System", and "User". + :vartype default_access: str or ~azure.mgmt.containerinstance.models.IdentityAccessLevel + :ivar acls: The access control levels for each identity. + :vartype acls: list[~azure.mgmt.containerinstance.models.IdentityAccessControl] + """ + + _attribute_map = { + "default_access": {"key": "defaultAccess", "type": "str"}, + "acls": {"key": "acls", "type": "[IdentityAccessControl]"}, + } + + def __init__( + self, + *, + default_access: Optional[Union[str, "_models.IdentityAccessLevel"]] = None, + acls: Optional[list["_models.IdentityAccessControl"]] = None, + **kwargs: Any + ) -> None: + """ + :keyword default_access: The default access level. Known values are: "All", "System", and + "User". + :paramtype default_access: str or ~azure.mgmt.containerinstance.models.IdentityAccessLevel + :keyword acls: The access control levels for each identity. + :paramtype acls: list[~azure.mgmt.containerinstance.models.IdentityAccessControl] + """ + super().__init__(**kwargs) + self.default_access = default_access + self.acls = acls + + class ImageRegistryCredential(_serialization.Model): """Image registry credential. @@ -2321,6 +2723,8 @@ class ImageRegistryCredential(_serialization.Model): :vartype username: str :ivar password: The password for the private registry. :vartype password: str + :ivar password_reference: The reference for the private registry password. + :vartype password_reference: str :ivar identity: The identity for the private registry. :vartype identity: str :ivar identity_url: The identity URL for the private registry. @@ -2335,6 +2739,7 @@ class ImageRegistryCredential(_serialization.Model): "server": {"key": "server", "type": "str"}, "username": {"key": "username", "type": "str"}, "password": {"key": "password", "type": "str"}, + "password_reference": {"key": "passwordReference", "type": "str"}, "identity": {"key": "identity", "type": "str"}, "identity_url": {"key": "identityUrl", "type": "str"}, } @@ -2345,6 +2750,7 @@ def __init__( server: str, username: Optional[str] = None, password: Optional[str] = None, + password_reference: Optional[str] = None, identity: Optional[str] = None, identity_url: Optional[str] = None, **kwargs: Any @@ -2357,6 +2763,8 @@ def __init__( :paramtype username: str :keyword password: The password for the private registry. :paramtype password: str + :keyword password_reference: The reference for the private registry password. + :paramtype password_reference: str :keyword identity: The identity for the private registry. :paramtype identity: str :keyword identity_url: The identity URL for the private registry. @@ -2366,6 +2774,7 @@ def __init__( self.server = server self.username = username self.password = password + self.password_reference = password_reference self.identity = identity self.identity_url = identity_url @@ -2414,9 +2823,9 @@ def __init__( *, name: str, image: Optional[str] = None, - command: Optional[List[str]] = None, - environment_variables: Optional[List["_models.EnvironmentVariable"]] = None, - volume_mounts: Optional[List["_models.VolumeMount"]] = None, + command: Optional[list[str]] = None, + environment_variables: Optional[list["_models.EnvironmentVariable"]] = None, + volume_mounts: Optional[list["_models.VolumeMount"]] = None, security_context: Optional["_models.SecurityContextDefinition"] = None, **kwargs: Any ) -> None: @@ -2440,7 +2849,7 @@ def __init__( self.image = image self.command = command self.environment_variables = environment_variables - self.instance_view = None + self.instance_view: Optional["_models.InitContainerPropertiesDefinitionInstanceView"] = None self.volume_mounts = volume_mounts self.security_context = security_context @@ -2477,10 +2886,10 @@ class InitContainerPropertiesDefinitionInstanceView(_serialization.Model): # py def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.restart_count = None - self.current_state = None - self.previous_state = None - self.events = None + self.restart_count: Optional[int] = None + self.current_state: Optional["_models.ContainerState"] = None + self.previous_state: Optional["_models.ContainerState"] = None + self.events: Optional[list["_models.Event"]] = None class IpAddress(_serialization.Model): @@ -2515,141 +2924,1210 @@ class IpAddress(_serialization.Model): """ _validation = { - "ports": {"required": True}, - "type": {"required": True}, - "fqdn": {"readonly": True}, + "ports": {"required": True}, + "type": {"required": True}, + "fqdn": {"readonly": True}, + } + + _attribute_map = { + "ports": {"key": "ports", "type": "[Port]"}, + "type": {"key": "type", "type": "str"}, + "ip": {"key": "ip", "type": "str"}, + "dns_name_label": {"key": "dnsNameLabel", "type": "str"}, + "auto_generated_domain_name_label_scope": {"key": "autoGeneratedDomainNameLabelScope", "type": "str"}, + "fqdn": {"key": "fqdn", "type": "str"}, + } + + def __init__( + self, + *, + ports: list["_models.Port"], + type: Union[str, "_models.ContainerGroupIpAddressType"], + ip: Optional[str] = None, + dns_name_label: Optional[str] = None, + auto_generated_domain_name_label_scope: Union[str, "_models.DnsNameLabelReusePolicy"] = "Unsecure", + **kwargs: Any + ) -> None: + """ + :keyword ports: The list of ports exposed on the container group. Required. + :paramtype ports: list[~azure.mgmt.containerinstance.models.Port] + :keyword type: Specifies if the IP is exposed to the public internet or private VNET. Required. + Known values are: "Public" and "Private". + :paramtype type: str or ~azure.mgmt.containerinstance.models.ContainerGroupIpAddressType + :keyword ip: The IP exposed to the public internet. + :paramtype ip: str + :keyword dns_name_label: The Dns name label for the IP. + :paramtype dns_name_label: str + :keyword auto_generated_domain_name_label_scope: 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. Known values are: + "Unsecure", "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "Noreuse". + :paramtype auto_generated_domain_name_label_scope: str or + ~azure.mgmt.containerinstance.models.DnsNameLabelReusePolicy + """ + super().__init__(**kwargs) + self.ports = ports + self.type = type + self.ip = ip + self.dns_name_label = dns_name_label + self.auto_generated_domain_name_label_scope = auto_generated_domain_name_label_scope + self.fqdn: Optional[str] = None + + +class ListResultContainerGroupProperties(_serialization.Model): + """Properties of container group part of list result. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to server. + + :ivar identity: The identity of the container group, if configured. + :vartype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity + :ivar provisioning_state: The provisioning state of the container group. This only appears in + the response. Known values are: "NotSpecified", "Accepted", "Pending", "Updating", "Creating", + "Repairing", "Unhealthy", "Failed", "Canceled", "Succeeded", "Deleting", "NotAccessible", and + "PreProvisioned". + :vartype provisioning_state: str or + ~azure.mgmt.containerinstance.models.ContainerGroupProvisioningState + :ivar secret_references: The secret references that will be referenced within the container + group. + :vartype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] + :ivar containers: The containers within the container group. Required. + :vartype containers: list[~azure.mgmt.containerinstance.models.Container] + :ivar image_registry_credentials: The image registry credentials by which the container group + is created from. + :vartype image_registry_credentials: + list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] + :ivar restart_policy: Restart policy for all containers within the container group. + + * ``Always`` Always restart + * ``OnFailure`` Restart on failure + * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". + :vartype restart_policy: str or + ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy + :ivar ip_address: The IP address type of the container group. + :vartype ip_address: ~azure.mgmt.containerinstance.models.IpAddress + :ivar os_type: The operating system type required by the containers in the container group. + Required. Known values are: "Windows" and "Linux". + :vartype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes + :ivar volumes: The list of volumes that can be mounted by containers in this container group. + :vartype volumes: list[~azure.mgmt.containerinstance.models.Volume] + :ivar diagnostics: The diagnostic information for a container group. + :vartype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics + :ivar subnet_ids: The subnet resource IDs for a container group. + :vartype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] + :ivar dns_config: The DNS config information for a container group. + :vartype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration + :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". + :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku + :ivar encryption_properties: The encryption properties for a container group. + :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties + :ivar init_containers: The init containers for a container group. + :vartype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] + :ivar extensions: extensions used by virtual kubelet. + :vartype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] + :ivar confidential_compute_properties: The properties for confidential container group. + :vartype confidential_compute_properties: + ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties + :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". + :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority + :ivar identity_acls: The access control levels of the identities. + :vartype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls + :ivar container_group_profile: The reference container group profile properties. + :vartype container_group_profile: + ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition + :ivar standby_pool_profile: The reference standby pool profile properties. + :vartype standby_pool_profile: + ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition + :ivar is_created_from_standby_pool: The flag to determine whether the container group is + created from standby pool. + :vartype is_created_from_standby_pool: bool + """ + + _validation = { + "provisioning_state": {"readonly": True}, + "containers": {"required": True}, + "os_type": {"required": True}, + "is_created_from_standby_pool": {"readonly": True}, + } + + _attribute_map = { + "identity": {"key": "identity", "type": "ContainerGroupIdentity"}, + "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, + "secret_references": {"key": "properties.secretReferences", "type": "[SecretReference]"}, + "containers": {"key": "properties.containers", "type": "[Container]"}, + "image_registry_credentials": { + "key": "properties.imageRegistryCredentials", + "type": "[ImageRegistryCredential]", + }, + "restart_policy": {"key": "properties.restartPolicy", "type": "str"}, + "ip_address": {"key": "properties.ipAddress", "type": "IpAddress"}, + "os_type": {"key": "properties.osType", "type": "str"}, + "volumes": {"key": "properties.volumes", "type": "[Volume]"}, + "diagnostics": {"key": "properties.diagnostics", "type": "ContainerGroupDiagnostics"}, + "subnet_ids": {"key": "properties.subnetIds", "type": "[ContainerGroupSubnetId]"}, + "dns_config": {"key": "properties.dnsConfig", "type": "DnsConfiguration"}, + "sku": {"key": "properties.sku", "type": "str"}, + "encryption_properties": {"key": "properties.encryptionProperties", "type": "EncryptionProperties"}, + "init_containers": {"key": "properties.initContainers", "type": "[InitContainerDefinition]"}, + "extensions": {"key": "properties.extensions", "type": "[DeploymentExtensionSpec]"}, + "confidential_compute_properties": { + "key": "properties.confidentialComputeProperties", + "type": "ConfidentialComputeProperties", + }, + "priority": {"key": "properties.priority", "type": "str"}, + "identity_acls": {"key": "properties.identityAcls", "type": "IdentityAcls"}, + "container_group_profile": { + "key": "properties.containerGroupProfile", + "type": "ContainerGroupProfileReferenceDefinition", + }, + "standby_pool_profile": {"key": "properties.standbyPoolProfile", "type": "StandbyPoolProfileDefinition"}, + "is_created_from_standby_pool": {"key": "properties.isCreatedFromStandbyPool", "type": "bool"}, + } + + def __init__( + self, + *, + containers: list["_models.Container"], + os_type: Union[str, "_models.OperatingSystemTypes"], + identity: Optional["_models.ContainerGroupIdentity"] = None, + secret_references: Optional[list["_models.SecretReference"]] = None, + image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = None, + restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, + ip_address: Optional["_models.IpAddress"] = None, + volumes: Optional[list["_models.Volume"]] = None, + diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, + subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = None, + dns_config: Optional["_models.DnsConfiguration"] = None, + sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, + encryption_properties: Optional["_models.EncryptionProperties"] = None, + init_containers: Optional[list["_models.InitContainerDefinition"]] = None, + extensions: Optional[list["_models.DeploymentExtensionSpec"]] = None, + confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, + priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, + identity_acls: Optional["_models.IdentityAcls"] = None, + container_group_profile: Optional["_models.ContainerGroupProfileReferenceDefinition"] = None, + standby_pool_profile: Optional["_models.StandbyPoolProfileDefinition"] = None, + **kwargs: Any + ) -> None: + """ + :keyword identity: The identity of the container group, if configured. + :paramtype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity + :keyword secret_references: The secret references that will be referenced within the container + group. + :paramtype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] + :keyword containers: The containers within the container group. Required. + :paramtype containers: list[~azure.mgmt.containerinstance.models.Container] + :keyword image_registry_credentials: The image registry credentials by which the container + group is created from. + :paramtype image_registry_credentials: + list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] + :keyword restart_policy: Restart policy for all containers within the container group. + + * ``Always`` Always restart + * ``OnFailure`` Restart on failure + * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". + :paramtype restart_policy: str or + ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy + :keyword ip_address: The IP address type of the container group. + :paramtype ip_address: ~azure.mgmt.containerinstance.models.IpAddress + :keyword os_type: The operating system type required by the containers in the container group. + Required. Known values are: "Windows" and "Linux". + :paramtype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes + :keyword volumes: The list of volumes that can be mounted by containers in this container + group. + :paramtype volumes: list[~azure.mgmt.containerinstance.models.Volume] + :keyword diagnostics: The diagnostic information for a container group. + :paramtype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics + :keyword subnet_ids: The subnet resource IDs for a container group. + :paramtype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] + :keyword dns_config: The DNS config information for a container group. + :paramtype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration + :keyword sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". + :paramtype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku + :keyword encryption_properties: The encryption properties for a container group. + :paramtype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties + :keyword init_containers: The init containers for a container group. + :paramtype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] + :keyword extensions: extensions used by virtual kubelet. + :paramtype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] + :keyword confidential_compute_properties: The properties for confidential container group. + :paramtype confidential_compute_properties: + ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties + :keyword priority: The priority of the container group. Known values are: "Regular" and "Spot". + :paramtype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority + :keyword identity_acls: The access control levels of the identities. + :paramtype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls + :keyword container_group_profile: The reference container group profile properties. + :paramtype container_group_profile: + ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition + :keyword standby_pool_profile: The reference standby pool profile properties. + :paramtype standby_pool_profile: + ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition + """ + super().__init__(**kwargs) + self.identity = identity + self.provisioning_state: Optional[Union[str, "_models.ContainerGroupProvisioningState"]] = None + self.secret_references = secret_references + self.containers = containers + self.image_registry_credentials = image_registry_credentials + self.restart_policy = restart_policy + self.ip_address = ip_address + self.os_type = os_type + self.volumes = volumes + self.diagnostics = diagnostics + self.subnet_ids = subnet_ids + self.dns_config = dns_config + self.sku = sku + self.encryption_properties = encryption_properties + self.init_containers = init_containers + self.extensions = extensions + self.confidential_compute_properties = confidential_compute_properties + self.priority = priority + self.identity_acls = identity_acls + self.container_group_profile = container_group_profile + self.standby_pool_profile = standby_pool_profile + self.is_created_from_standby_pool: Optional[bool] = None + + +class ListResultContainerGroup(Resource, ListResultContainerGroupProperties): + """A container group part of the list result. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to server. + + :ivar identity: The identity of the container group, if configured. + :vartype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity + :ivar provisioning_state: The provisioning state of the container group. This only appears in + the response. Known values are: "NotSpecified", "Accepted", "Pending", "Updating", "Creating", + "Repairing", "Unhealthy", "Failed", "Canceled", "Succeeded", "Deleting", "NotAccessible", and + "PreProvisioned". + :vartype provisioning_state: str or + ~azure.mgmt.containerinstance.models.ContainerGroupProvisioningState + :ivar secret_references: The secret references that will be referenced within the container + group. + :vartype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] + :ivar containers: The containers within the container group. Required. + :vartype containers: list[~azure.mgmt.containerinstance.models.Container] + :ivar image_registry_credentials: The image registry credentials by which the container group + is created from. + :vartype image_registry_credentials: + list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] + :ivar restart_policy: Restart policy for all containers within the container group. + + * ``Always`` Always restart + * ``OnFailure`` Restart on failure + * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". + :vartype restart_policy: str or + ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy + :ivar ip_address: The IP address type of the container group. + :vartype ip_address: ~azure.mgmt.containerinstance.models.IpAddress + :ivar os_type: The operating system type required by the containers in the container group. + Required. Known values are: "Windows" and "Linux". + :vartype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes + :ivar volumes: The list of volumes that can be mounted by containers in this container group. + :vartype volumes: list[~azure.mgmt.containerinstance.models.Volume] + :ivar diagnostics: The diagnostic information for a container group. + :vartype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics + :ivar subnet_ids: The subnet resource IDs for a container group. + :vartype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] + :ivar dns_config: The DNS config information for a container group. + :vartype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration + :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". + :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku + :ivar encryption_properties: The encryption properties for a container group. + :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties + :ivar init_containers: The init containers for a container group. + :vartype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] + :ivar extensions: extensions used by virtual kubelet. + :vartype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] + :ivar confidential_compute_properties: The properties for confidential container group. + :vartype confidential_compute_properties: + ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties + :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". + :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority + :ivar identity_acls: The access control levels of the identities. + :vartype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls + :ivar container_group_profile: The reference container group profile properties. + :vartype container_group_profile: + ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition + :ivar standby_pool_profile: The reference standby pool profile properties. + :vartype standby_pool_profile: + ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition + :ivar is_created_from_standby_pool: The flag to determine whether the container group is + created from standby pool. + :vartype is_created_from_standby_pool: bool + :ivar id: The resource id. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar zones: The zones for the container group. + :vartype zones: list[str] + """ + + _validation = { + "provisioning_state": {"readonly": True}, + "containers": {"required": True}, + "os_type": {"required": True}, + "is_created_from_standby_pool": {"readonly": True}, + "id": {"readonly": True}, + "name": {"readonly": True}, + "type": {"readonly": True}, + } + + _attribute_map = { + "identity": {"key": "identity", "type": "ContainerGroupIdentity"}, + "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, + "secret_references": {"key": "properties.secretReferences", "type": "[SecretReference]"}, + "containers": {"key": "properties.containers", "type": "[Container]"}, + "image_registry_credentials": { + "key": "properties.imageRegistryCredentials", + "type": "[ImageRegistryCredential]", + }, + "restart_policy": {"key": "properties.restartPolicy", "type": "str"}, + "ip_address": {"key": "properties.ipAddress", "type": "IpAddress"}, + "os_type": {"key": "properties.osType", "type": "str"}, + "volumes": {"key": "properties.volumes", "type": "[Volume]"}, + "diagnostics": {"key": "properties.diagnostics", "type": "ContainerGroupDiagnostics"}, + "subnet_ids": {"key": "properties.subnetIds", "type": "[ContainerGroupSubnetId]"}, + "dns_config": {"key": "properties.dnsConfig", "type": "DnsConfiguration"}, + "sku": {"key": "properties.sku", "type": "str"}, + "encryption_properties": {"key": "properties.encryptionProperties", "type": "EncryptionProperties"}, + "init_containers": {"key": "properties.initContainers", "type": "[InitContainerDefinition]"}, + "extensions": {"key": "properties.extensions", "type": "[DeploymentExtensionSpec]"}, + "confidential_compute_properties": { + "key": "properties.confidentialComputeProperties", + "type": "ConfidentialComputeProperties", + }, + "priority": {"key": "properties.priority", "type": "str"}, + "identity_acls": {"key": "properties.identityAcls", "type": "IdentityAcls"}, + "container_group_profile": { + "key": "properties.containerGroupProfile", + "type": "ContainerGroupProfileReferenceDefinition", + }, + "standby_pool_profile": {"key": "properties.standbyPoolProfile", "type": "StandbyPoolProfileDefinition"}, + "is_created_from_standby_pool": {"key": "properties.isCreatedFromStandbyPool", "type": "bool"}, + "id": {"key": "id", "type": "str"}, + "name": {"key": "name", "type": "str"}, + "type": {"key": "type", "type": "str"}, + "location": {"key": "location", "type": "str"}, + "tags": {"key": "tags", "type": "{str}"}, + "zones": {"key": "zones", "type": "[str]"}, + } + + def __init__( # pylint: disable=too-many-locals + self, + *, + containers: list["_models.Container"], + os_type: Union[str, "_models.OperatingSystemTypes"], + identity: Optional["_models.ContainerGroupIdentity"] = None, + secret_references: Optional[list["_models.SecretReference"]] = None, + image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = None, + restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, + ip_address: Optional["_models.IpAddress"] = None, + volumes: Optional[list["_models.Volume"]] = None, + diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, + subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = None, + dns_config: Optional["_models.DnsConfiguration"] = None, + sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, + encryption_properties: Optional["_models.EncryptionProperties"] = None, + init_containers: Optional[list["_models.InitContainerDefinition"]] = None, + extensions: Optional[list["_models.DeploymentExtensionSpec"]] = None, + confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, + priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, + identity_acls: Optional["_models.IdentityAcls"] = None, + container_group_profile: Optional["_models.ContainerGroupProfileReferenceDefinition"] = None, + standby_pool_profile: Optional["_models.StandbyPoolProfileDefinition"] = None, + location: Optional[str] = None, + tags: Optional[dict[str, str]] = None, + zones: Optional[list[str]] = None, + **kwargs: Any + ) -> None: + """ + :keyword identity: The identity of the container group, if configured. + :paramtype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity + :keyword secret_references: The secret references that will be referenced within the container + group. + :paramtype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] + :keyword containers: The containers within the container group. Required. + :paramtype containers: list[~azure.mgmt.containerinstance.models.Container] + :keyword image_registry_credentials: The image registry credentials by which the container + group is created from. + :paramtype image_registry_credentials: + list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] + :keyword restart_policy: Restart policy for all containers within the container group. + + * ``Always`` Always restart + * ``OnFailure`` Restart on failure + * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". + :paramtype restart_policy: str or + ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy + :keyword ip_address: The IP address type of the container group. + :paramtype ip_address: ~azure.mgmt.containerinstance.models.IpAddress + :keyword os_type: The operating system type required by the containers in the container group. + Required. Known values are: "Windows" and "Linux". + :paramtype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes + :keyword volumes: The list of volumes that can be mounted by containers in this container + group. + :paramtype volumes: list[~azure.mgmt.containerinstance.models.Volume] + :keyword diagnostics: The diagnostic information for a container group. + :paramtype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics + :keyword subnet_ids: The subnet resource IDs for a container group. + :paramtype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] + :keyword dns_config: The DNS config information for a container group. + :paramtype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration + :keyword sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". + :paramtype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku + :keyword encryption_properties: The encryption properties for a container group. + :paramtype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties + :keyword init_containers: The init containers for a container group. + :paramtype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] + :keyword extensions: extensions used by virtual kubelet. + :paramtype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] + :keyword confidential_compute_properties: The properties for confidential container group. + :paramtype confidential_compute_properties: + ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties + :keyword priority: The priority of the container group. Known values are: "Regular" and "Spot". + :paramtype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority + :keyword identity_acls: The access control levels of the identities. + :paramtype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls + :keyword container_group_profile: The reference container group profile properties. + :paramtype container_group_profile: + ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition + :keyword standby_pool_profile: The reference standby pool profile properties. + :paramtype standby_pool_profile: + ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition + :keyword location: The resource location. + :paramtype location: str + :keyword tags: The resource tags. + :paramtype tags: dict[str, str] + :keyword zones: The zones for the container group. + :paramtype zones: list[str] + """ + super().__init__( + location=location, + tags=tags, + zones=zones, + identity=identity, + secret_references=secret_references, + containers=containers, + image_registry_credentials=image_registry_credentials, + restart_policy=restart_policy, + ip_address=ip_address, + os_type=os_type, + volumes=volumes, + diagnostics=diagnostics, + subnet_ids=subnet_ids, + dns_config=dns_config, + sku=sku, + encryption_properties=encryption_properties, + init_containers=init_containers, + extensions=extensions, + confidential_compute_properties=confidential_compute_properties, + priority=priority, + identity_acls=identity_acls, + container_group_profile=container_group_profile, + standby_pool_profile=standby_pool_profile, + **kwargs + ) + self.identity = identity + self.provisioning_state: Optional[Union[str, "_models.ContainerGroupProvisioningState"]] = None + self.secret_references = secret_references + self.containers = containers + self.image_registry_credentials = image_registry_credentials + self.restart_policy = restart_policy + self.ip_address = ip_address + self.os_type = os_type + self.volumes = volumes + self.diagnostics = diagnostics + self.subnet_ids = subnet_ids + self.dns_config = dns_config + self.sku = sku + self.encryption_properties = encryption_properties + self.init_containers = init_containers + self.extensions = extensions + self.confidential_compute_properties = confidential_compute_properties + self.priority = priority + self.identity_acls = identity_acls + self.container_group_profile = container_group_profile + self.standby_pool_profile = standby_pool_profile + self.is_created_from_standby_pool: Optional[bool] = None + self.id: Optional[str] = None + self.name: Optional[str] = None + self.type: Optional[str] = None + self.location = location + self.tags = tags + self.zones = zones + + +class LoadBalancer(_serialization.Model): + """LoadBalancer the CG profile will use to interact with CGs in a backend pool. + + :ivar backend_address_pools: List of Load Balancer Backend Address Pools. + :vartype backend_address_pools: + list[~azure.mgmt.containerinstance.models.LoadBalancerBackendAddressPool] + """ + + _attribute_map = { + "backend_address_pools": {"key": "backendAddressPools", "type": "[LoadBalancerBackendAddressPool]"}, + } + + def __init__( + self, *, backend_address_pools: Optional[list["_models.LoadBalancerBackendAddressPool"]] = None, **kwargs: Any + ) -> None: + """ + :keyword backend_address_pools: List of Load Balancer Backend Address Pools. + :paramtype backend_address_pools: + list[~azure.mgmt.containerinstance.models.LoadBalancerBackendAddressPool] + """ + super().__init__(**kwargs) + self.backend_address_pools = backend_address_pools + + +class LoadBalancerBackendAddressPool(_serialization.Model): + """NGroups load balancer backend address pool. + + :ivar resource: The Load Balancer backend address pool ARM resource Id. + :vartype resource: str + """ + + _attribute_map = { + "resource": {"key": "resource", "type": "str"}, + } + + def __init__(self, *, resource: Optional[str] = None, **kwargs: Any) -> None: + """ + :keyword resource: The Load Balancer backend address pool ARM resource Id. + :paramtype resource: str + """ + super().__init__(**kwargs) + self.resource = resource + + +class LogAnalytics(_serialization.Model): + """Container group log analytics information. + + All required parameters must be populated in order to send to server. + + :ivar workspace_id: The workspace id for log analytics. Required. + :vartype workspace_id: str + :ivar workspace_key: The workspace key for log analytics. Required. + :vartype workspace_key: str + :ivar log_type: The log type to be used. Known values are: "ContainerInsights" and + "ContainerInstanceLogs". + :vartype log_type: str or ~azure.mgmt.containerinstance.models.LogAnalyticsLogType + :ivar metadata: Metadata for log analytics. + :vartype metadata: dict[str, str] + :ivar workspace_resource_id: The workspace resource id for log analytics. + :vartype workspace_resource_id: str + """ + + _validation = { + "workspace_id": {"required": True}, + "workspace_key": {"required": True}, + } + + _attribute_map = { + "workspace_id": {"key": "workspaceId", "type": "str"}, + "workspace_key": {"key": "workspaceKey", "type": "str"}, + "log_type": {"key": "logType", "type": "str"}, + "metadata": {"key": "metadata", "type": "{str}"}, + "workspace_resource_id": {"key": "workspaceResourceId", "type": "str"}, + } + + def __init__( + self, + *, + workspace_id: str, + workspace_key: str, + log_type: Optional[Union[str, "_models.LogAnalyticsLogType"]] = None, + metadata: Optional[dict[str, str]] = None, + workspace_resource_id: Optional[str] = None, + **kwargs: Any + ) -> None: + """ + :keyword workspace_id: The workspace id for log analytics. Required. + :paramtype workspace_id: str + :keyword workspace_key: The workspace key for log analytics. Required. + :paramtype workspace_key: str + :keyword log_type: The log type to be used. Known values are: "ContainerInsights" and + "ContainerInstanceLogs". + :paramtype log_type: str or ~azure.mgmt.containerinstance.models.LogAnalyticsLogType + :keyword metadata: Metadata for log analytics. + :paramtype metadata: dict[str, str] + :keyword workspace_resource_id: The workspace resource id for log analytics. + :paramtype workspace_resource_id: str + """ + super().__init__(**kwargs) + self.workspace_id = workspace_id + self.workspace_key = workspace_key + self.log_type = log_type + self.metadata = metadata + self.workspace_resource_id = workspace_resource_id + + +class Logs(_serialization.Model): + """The logs. + + :ivar content: The content of the log. + :vartype content: str + """ + + _attribute_map = { + "content": {"key": "content", "type": "str"}, + } + + def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: + """ + :keyword content: The content of the log. + :paramtype content: str + """ + super().__init__(**kwargs) + self.content = content + + +class NetworkProfile(_serialization.Model): + """A network profile for network settings of a ContainerGroupProfile. Used to manage load balancer + and application gateway backend pools, specifically updating the IP addresses of CGs within the + backend pool. + + :ivar load_balancer: LoadBalancer the CG profile will use to interact with CGs in a backend + pool. + :vartype load_balancer: ~azure.mgmt.containerinstance.models.LoadBalancer + :ivar application_gateway: Application Gateway the CG profile will use to interact with CGs in + a backend pool. + :vartype application_gateway: ~azure.mgmt.containerinstance.models.ApplicationGateway + """ + + _attribute_map = { + "load_balancer": {"key": "loadBalancer", "type": "LoadBalancer"}, + "application_gateway": {"key": "applicationGateway", "type": "ApplicationGateway"}, + } + + def __init__( + self, + *, + load_balancer: Optional["_models.LoadBalancer"] = None, + application_gateway: Optional["_models.ApplicationGateway"] = None, + **kwargs: Any + ) -> None: + """ + :keyword load_balancer: LoadBalancer the CG profile will use to interact with CGs in a backend + pool. + :paramtype load_balancer: ~azure.mgmt.containerinstance.models.LoadBalancer + :keyword application_gateway: Application Gateway the CG profile will use to interact with CGs + in a backend pool. + :paramtype application_gateway: ~azure.mgmt.containerinstance.models.ApplicationGateway + """ + super().__init__(**kwargs) + self.load_balancer = load_balancer + self.application_gateway = application_gateway + + +class NGroup(Resource): + """Describes the NGroups resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar zones: The zones for the container group. + :vartype zones: list[str] + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.containerinstance.models.SystemData + :ivar identity: The identity of the NGroup, if configured. + :vartype identity: ~azure.mgmt.containerinstance.models.NGroupIdentity + :ivar elastic_profile: The elastic profile. + :vartype elastic_profile: ~azure.mgmt.containerinstance.models.ElasticProfile + :ivar placement_profile: Provides options w.r.t allocation and management w.r.t certain + placement policies. These utilize capabilities provided by the underlying Azure infrastructure. + They are typically used for high availability scenarios. E.g., distributing CGs across fault + domains. + :vartype placement_profile: ~azure.mgmt.containerinstance.models.PlacementProfile + :ivar container_group_profiles: The Container Group Profiles that could be used in the NGroups + resource. + :vartype container_group_profiles: + list[~azure.mgmt.containerinstance.models.ContainerGroupProfileStub] + :ivar provisioning_state: The provisioning state, which only appears in the response. Known + values are: "Creating", "Updating", "Failed", "Succeeded", "Canceled", "Deleting", and + "Migrating". + :vartype provisioning_state: str or + ~azure.mgmt.containerinstance.models.NGroupProvisioningState + :ivar update_profile: Used by the customer to specify the way to update the Container Groups in + NGroup. + :vartype update_profile: ~azure.mgmt.containerinstance.models.UpdateProfile + """ + + _validation = { + "id": {"readonly": True}, + "name": {"readonly": True}, + "type": {"readonly": True}, + "system_data": {"readonly": True}, + "provisioning_state": {"readonly": True}, + } + + _attribute_map = { + "id": {"key": "id", "type": "str"}, + "name": {"key": "name", "type": "str"}, + "type": {"key": "type", "type": "str"}, + "location": {"key": "location", "type": "str"}, + "tags": {"key": "tags", "type": "{str}"}, + "zones": {"key": "zones", "type": "[str]"}, + "system_data": {"key": "systemData", "type": "SystemData"}, + "identity": {"key": "identity", "type": "NGroupIdentity"}, + "elastic_profile": {"key": "properties.elasticProfile", "type": "ElasticProfile"}, + "placement_profile": {"key": "properties.placementProfile", "type": "PlacementProfile"}, + "container_group_profiles": {"key": "properties.containerGroupProfiles", "type": "[ContainerGroupProfileStub]"}, + "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, + "update_profile": {"key": "properties.updateProfile", "type": "UpdateProfile"}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[dict[str, str]] = None, + zones: Optional[list[str]] = None, + identity: Optional["_models.NGroupIdentity"] = None, + elastic_profile: Optional["_models.ElasticProfile"] = None, + placement_profile: Optional["_models.PlacementProfile"] = None, + container_group_profiles: Optional[list["_models.ContainerGroupProfileStub"]] = None, + update_profile: Optional["_models.UpdateProfile"] = None, + **kwargs: Any + ) -> None: + """ + :keyword location: The resource location. + :paramtype location: str + :keyword tags: The resource tags. + :paramtype tags: dict[str, str] + :keyword zones: The zones for the container group. + :paramtype zones: list[str] + :keyword identity: The identity of the NGroup, if configured. + :paramtype identity: ~azure.mgmt.containerinstance.models.NGroupIdentity + :keyword elastic_profile: The elastic profile. + :paramtype elastic_profile: ~azure.mgmt.containerinstance.models.ElasticProfile + :keyword placement_profile: Provides options w.r.t allocation and management w.r.t certain + placement policies. These utilize capabilities provided by the underlying Azure infrastructure. + They are typically used for high availability scenarios. E.g., distributing CGs across fault + domains. + :paramtype placement_profile: ~azure.mgmt.containerinstance.models.PlacementProfile + :keyword container_group_profiles: The Container Group Profiles that could be used in the + NGroups resource. + :paramtype container_group_profiles: + list[~azure.mgmt.containerinstance.models.ContainerGroupProfileStub] + :keyword update_profile: Used by the customer to specify the way to update the Container Groups + in NGroup. + :paramtype update_profile: ~azure.mgmt.containerinstance.models.UpdateProfile + """ + super().__init__(location=location, tags=tags, zones=zones, **kwargs) + self.system_data: Optional["_models.SystemData"] = None + self.identity = identity + self.elastic_profile = elastic_profile + self.placement_profile = placement_profile + self.container_group_profiles = container_group_profiles + self.provisioning_state: Optional[Union[str, "_models.NGroupProvisioningState"]] = None + self.update_profile = update_profile + + +class NGroupCGPropertyContainer(_serialization.Model): + """Container properties that can be provided with NGroups object. + + :ivar name: container name. + :vartype name: str + :ivar properties: container properties. + :vartype properties: ~azure.mgmt.containerinstance.models.NGroupCGPropertyContainerProperties + """ + + _attribute_map = { + "name": {"key": "name", "type": "str"}, + "properties": {"key": "properties", "type": "NGroupCGPropertyContainerProperties"}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + properties: Optional["_models.NGroupCGPropertyContainerProperties"] = None, + **kwargs: Any + ) -> None: + """ + :keyword name: container name. + :paramtype name: str + :keyword properties: container properties. + :paramtype properties: ~azure.mgmt.containerinstance.models.NGroupCGPropertyContainerProperties + """ + super().__init__(**kwargs) + self.name = name + self.properties = properties + + +class NGroupCGPropertyContainerProperties(_serialization.Model): + """container properties. + + :ivar volume_mounts: + :vartype volume_mounts: list[~azure.mgmt.containerinstance.models.VolumeMount] + """ + + _attribute_map = { + "volume_mounts": {"key": "volumeMounts", "type": "[VolumeMount]"}, + } + + def __init__(self, *, volume_mounts: Optional[list["_models.VolumeMount"]] = None, **kwargs: Any) -> None: + """ + :keyword volume_mounts: + :paramtype volume_mounts: list[~azure.mgmt.containerinstance.models.VolumeMount] + """ + super().__init__(**kwargs) + self.volume_mounts = volume_mounts + + +class NGroupCGPropertyVolume(_serialization.Model): + """Contains information about the volumes that can be mounted by Containers in the Container + Groups. + + All required parameters must be populated in order to send to server. + + :ivar name: The name of the volume. Required. + :vartype name: str + :ivar azure_file: The Azure File volume. + :vartype azure_file: ~azure.mgmt.containerinstance.models.AzureFileVolume + """ + + _validation = { + "name": {"required": True}, + } + + _attribute_map = { + "name": {"key": "name", "type": "str"}, + "azure_file": {"key": "azureFile", "type": "AzureFileVolume"}, + } + + def __init__(self, *, name: str, azure_file: Optional["_models.AzureFileVolume"] = None, **kwargs: Any) -> None: + """ + :keyword name: The name of the volume. Required. + :paramtype name: str + :keyword azure_file: The Azure File volume. + :paramtype azure_file: ~azure.mgmt.containerinstance.models.AzureFileVolume + """ + super().__init__(**kwargs) + self.name = name + self.azure_file = azure_file + + +class NGroupContainerGroupProperties(_serialization.Model): + """Container Group properties which can be set while creating or updating the NGroups. + + :ivar subnet_ids: Contains information about Virtual Network Subnet ARM Resource. + :vartype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] + :ivar volumes: Contains information about the volumes that can be mounted by Containers in the + Container Groups. + :vartype volumes: list[~azure.mgmt.containerinstance.models.NGroupCGPropertyVolume] + :ivar containers: Contains information about Container which can be set while creating or + updating the NGroups. + :vartype containers: list[~azure.mgmt.containerinstance.models.NGroupCGPropertyContainer] + """ + + _attribute_map = { + "subnet_ids": {"key": "subnetIds", "type": "[ContainerGroupSubnetId]"}, + "volumes": {"key": "volumes", "type": "[NGroupCGPropertyVolume]"}, + "containers": {"key": "containers", "type": "[NGroupCGPropertyContainer]"}, + } + + def __init__( + self, + *, + subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = None, + volumes: Optional[list["_models.NGroupCGPropertyVolume"]] = None, + containers: Optional[list["_models.NGroupCGPropertyContainer"]] = None, + **kwargs: Any + ) -> None: + """ + :keyword subnet_ids: Contains information about Virtual Network Subnet ARM Resource. + :paramtype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] + :keyword volumes: Contains information about the volumes that can be mounted by Containers in + the Container Groups. + :paramtype volumes: list[~azure.mgmt.containerinstance.models.NGroupCGPropertyVolume] + :keyword containers: Contains information about Container which can be set while creating or + updating the NGroups. + :paramtype containers: list[~azure.mgmt.containerinstance.models.NGroupCGPropertyContainer] + """ + super().__init__(**kwargs) + self.subnet_ids = subnet_ids + self.volumes = volumes + self.containers = containers + + +class NGroupIdentity(_serialization.Model): + """Identity for the NGroup. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal id of the NGroup identity. This property will only be + provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the NGroup. This property will only be provided + for a system assigned identity. + :vartype tenant_id: str + :ivar type: The type of identity used for the NGroup. The type 'SystemAssigned, UserAssigned' + includes both an implicitly created identity and a set of user assigned identities. The type + 'None' will remove any identities from the NGroup. Known values are: "SystemAssigned", + "UserAssigned", "SystemAssigned, UserAssigned", and "None". + :vartype type: str or ~azure.mgmt.containerinstance.models.ResourceIdentityType + :ivar user_assigned_identities: The list of user identities associated with the NGroup. + :vartype user_assigned_identities: dict[str, + ~azure.mgmt.containerinstance.models.UserAssignedIdentities] + """ + + _validation = { + "principal_id": {"readonly": True}, + "tenant_id": {"readonly": True}, } _attribute_map = { - "ports": {"key": "ports", "type": "[Port]"}, + "principal_id": {"key": "principalId", "type": "str"}, + "tenant_id": {"key": "tenantId", "type": "str"}, "type": {"key": "type", "type": "str"}, - "ip": {"key": "ip", "type": "str"}, - "dns_name_label": {"key": "dnsNameLabel", "type": "str"}, - "auto_generated_domain_name_label_scope": {"key": "autoGeneratedDomainNameLabelScope", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, + "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedIdentities}"}, } def __init__( self, *, - ports: List["_models.Port"], - type: Union[str, "_models.ContainerGroupIpAddressType"], - ip: Optional[str] = None, - dns_name_label: Optional[str] = None, - auto_generated_domain_name_label_scope: Union[str, "_models.DnsNameLabelReusePolicy"] = "Unsecure", + type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, + user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentities"]] = None, **kwargs: Any ) -> None: """ - :keyword ports: The list of ports exposed on the container group. Required. - :paramtype ports: list[~azure.mgmt.containerinstance.models.Port] - :keyword type: Specifies if the IP is exposed to the public internet or private VNET. Required. - Known values are: "Public" and "Private". - :paramtype type: str or ~azure.mgmt.containerinstance.models.ContainerGroupIpAddressType - :keyword ip: The IP exposed to the public internet. - :paramtype ip: str - :keyword dns_name_label: The Dns name label for the IP. - :paramtype dns_name_label: str - :keyword auto_generated_domain_name_label_scope: 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. Known values are: - "Unsecure", "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "Noreuse". - :paramtype auto_generated_domain_name_label_scope: str or - ~azure.mgmt.containerinstance.models.DnsNameLabelReusePolicy + :keyword type: The type of identity used for the NGroup. The type 'SystemAssigned, + UserAssigned' includes both an implicitly created identity and a set of user assigned + identities. The type 'None' will remove any identities from the NGroup. Known values are: + "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", and "None". + :paramtype type: str or ~azure.mgmt.containerinstance.models.ResourceIdentityType + :keyword user_assigned_identities: The list of user identities associated with the NGroup. + :paramtype user_assigned_identities: dict[str, + ~azure.mgmt.containerinstance.models.UserAssignedIdentities] """ super().__init__(**kwargs) - self.ports = ports + self.principal_id: Optional[str] = None + self.tenant_id: Optional[str] = None self.type = type - self.ip = ip - self.dns_name_label = dns_name_label - self.auto_generated_domain_name_label_scope = auto_generated_domain_name_label_scope - self.fqdn = None + self.user_assigned_identities = user_assigned_identities -class LogAnalytics(_serialization.Model): - """Container group log analytics information. +class NGroupPatch(_serialization.Model): + """Describes the NGroups resource. - All required parameters must be populated in order to send to server. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar workspace_id: The workspace id for log analytics. Required. - :vartype workspace_id: str - :ivar workspace_key: The workspace key for log analytics. Required. - :vartype workspace_key: str - :ivar log_type: The log type to be used. Known values are: "ContainerInsights" and - "ContainerInstanceLogs". - :vartype log_type: str or ~azure.mgmt.containerinstance.models.LogAnalyticsLogType - :ivar metadata: Metadata for log analytics. - :vartype metadata: dict[str, str] - :ivar workspace_resource_id: The workspace resource id for log analytics. - :vartype workspace_resource_id: str + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.containerinstance.models.SystemData + :ivar identity: The identity of the NGroup, if configured. + :vartype identity: ~azure.mgmt.containerinstance.models.NGroupIdentity + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar zones: The zones for the NGroup. + :vartype zones: list[str] + :ivar elastic_profile: The elastic profile. + :vartype elastic_profile: ~azure.mgmt.containerinstance.models.ElasticProfile + :ivar placement_profile: Provides options w.r.t allocation and management w.r.t certain + placement policies. These utilize capabilities provided by the underlying Azure infrastructure. + They are typically used for high availability scenarios. E.g., distributing CGs across fault + domains. + :vartype placement_profile: ~azure.mgmt.containerinstance.models.PlacementProfile + :ivar container_group_profiles: The Container Group Profiles that could be used in the NGroups + resource. + :vartype container_group_profiles: + list[~azure.mgmt.containerinstance.models.ContainerGroupProfileStub] + :ivar provisioning_state: The provisioning state, which only appears in the response. Known + values are: "Creating", "Updating", "Failed", "Succeeded", "Canceled", "Deleting", and + "Migrating". + :vartype provisioning_state: str or + ~azure.mgmt.containerinstance.models.NGroupProvisioningState + :ivar update_profile: Used by the customer to specify the way to update the Container Groups in + NGroup. + :vartype update_profile: ~azure.mgmt.containerinstance.models.UpdateProfile """ _validation = { - "workspace_id": {"required": True}, - "workspace_key": {"required": True}, + "system_data": {"readonly": True}, + "provisioning_state": {"readonly": True}, } _attribute_map = { - "workspace_id": {"key": "workspaceId", "type": "str"}, - "workspace_key": {"key": "workspaceKey", "type": "str"}, - "log_type": {"key": "logType", "type": "str"}, - "metadata": {"key": "metadata", "type": "{str}"}, - "workspace_resource_id": {"key": "workspaceResourceId", "type": "str"}, + "system_data": {"key": "systemData", "type": "SystemData"}, + "identity": {"key": "identity", "type": "NGroupIdentity"}, + "tags": {"key": "tags", "type": "{str}"}, + "zones": {"key": "zones", "type": "[str]"}, + "elastic_profile": {"key": "properties.elasticProfile", "type": "ElasticProfile"}, + "placement_profile": {"key": "properties.placementProfile", "type": "PlacementProfile"}, + "container_group_profiles": {"key": "properties.containerGroupProfiles", "type": "[ContainerGroupProfileStub]"}, + "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, + "update_profile": {"key": "properties.updateProfile", "type": "UpdateProfile"}, } def __init__( self, *, - workspace_id: str, - workspace_key: str, - log_type: Optional[Union[str, "_models.LogAnalyticsLogType"]] = None, - metadata: Optional[Dict[str, str]] = None, - workspace_resource_id: Optional[str] = None, + identity: Optional["_models.NGroupIdentity"] = None, + tags: Optional[dict[str, str]] = None, + zones: Optional[list[str]] = None, + elastic_profile: Optional["_models.ElasticProfile"] = None, + placement_profile: Optional["_models.PlacementProfile"] = None, + container_group_profiles: Optional[list["_models.ContainerGroupProfileStub"]] = None, + update_profile: Optional["_models.UpdateProfile"] = None, **kwargs: Any ) -> None: """ - :keyword workspace_id: The workspace id for log analytics. Required. - :paramtype workspace_id: str - :keyword workspace_key: The workspace key for log analytics. Required. - :paramtype workspace_key: str - :keyword log_type: The log type to be used. Known values are: "ContainerInsights" and - "ContainerInstanceLogs". - :paramtype log_type: str or ~azure.mgmt.containerinstance.models.LogAnalyticsLogType - :keyword metadata: Metadata for log analytics. - :paramtype metadata: dict[str, str] - :keyword workspace_resource_id: The workspace resource id for log analytics. - :paramtype workspace_resource_id: str + :keyword identity: The identity of the NGroup, if configured. + :paramtype identity: ~azure.mgmt.containerinstance.models.NGroupIdentity + :keyword tags: The resource tags. + :paramtype tags: dict[str, str] + :keyword zones: The zones for the NGroup. + :paramtype zones: list[str] + :keyword elastic_profile: The elastic profile. + :paramtype elastic_profile: ~azure.mgmt.containerinstance.models.ElasticProfile + :keyword placement_profile: Provides options w.r.t allocation and management w.r.t certain + placement policies. These utilize capabilities provided by the underlying Azure infrastructure. + They are typically used for high availability scenarios. E.g., distributing CGs across fault + domains. + :paramtype placement_profile: ~azure.mgmt.containerinstance.models.PlacementProfile + :keyword container_group_profiles: The Container Group Profiles that could be used in the + NGroups resource. + :paramtype container_group_profiles: + list[~azure.mgmt.containerinstance.models.ContainerGroupProfileStub] + :keyword update_profile: Used by the customer to specify the way to update the Container Groups + in NGroup. + :paramtype update_profile: ~azure.mgmt.containerinstance.models.UpdateProfile """ super().__init__(**kwargs) - self.workspace_id = workspace_id - self.workspace_key = workspace_key - self.log_type = log_type - self.metadata = metadata - self.workspace_resource_id = workspace_resource_id + self.system_data: Optional["_models.SystemData"] = None + self.identity = identity + self.tags = tags + self.zones = zones + self.elastic_profile = elastic_profile + self.placement_profile = placement_profile + self.container_group_profiles = container_group_profiles + self.provisioning_state: Optional[Union[str, "_models.NGroupProvisioningState"]] = None + self.update_profile = update_profile -class Logs(_serialization.Model): - """The logs. +class NGroupSkus(_serialization.Model): + """The container probe, for liveness or readiness. - :ivar content: The content of the log. - :vartype content: str + :ivar resource_type: The type of resource the sku is applied to. + :vartype resource_type: str + :ivar sku: The sku of the resource type. + :vartype sku: str + :ivar sku_capacity: The number of container groups of the NGroups. + :vartype sku_capacity: str """ _attribute_map = { - "content": {"key": "content", "type": "str"}, + "resource_type": {"key": "resourceType", "type": "str"}, + "sku": {"key": "sku", "type": "str"}, + "sku_capacity": {"key": "skuCapacity", "type": "str"}, } - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: + def __init__( + self, + *, + resource_type: Optional[str] = None, + sku: Optional[str] = None, + sku_capacity: Optional[str] = None, + **kwargs: Any + ) -> None: """ - :keyword content: The content of the log. - :paramtype content: str + :keyword resource_type: The type of resource the sku is applied to. + :paramtype resource_type: str + :keyword sku: The sku of the resource type. + :paramtype sku: str + :keyword sku_capacity: The number of container groups of the NGroups. + :paramtype sku_capacity: str """ super().__init__(**kwargs) - self.content = content + self.resource_type = resource_type + self.sku = sku + self.sku_capacity = sku_capacity + + +class NGroupsListResult(_serialization.Model): + """The NGroups list response that contains the NGroups properties. + + :ivar value: The list of NGroups. + :vartype value: list[~azure.mgmt.containerinstance.models.NGroup] + :ivar next_link: The URI to fetch the next page of NGroups. + :vartype next_link: str + """ + + _attribute_map = { + "value": {"key": "value", "type": "[NGroup]"}, + "next_link": {"key": "nextLink", "type": "str"}, + } + + def __init__( + self, *, value: Optional[list["_models.NGroup"]] = None, next_link: Optional[str] = None, **kwargs: Any + ) -> None: + """ + :keyword value: The list of NGroups. + :paramtype value: list[~azure.mgmt.containerinstance.models.NGroup] + :keyword next_link: The URI to fetch the next page of NGroups. + :paramtype next_link: str + """ + super().__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class NGroupsSkusList(_serialization.Model): + """List of SKU definitions. NGroups offer a single sku. + + :ivar value: The list of NGroups SKUs. + :vartype value: list[~azure.mgmt.containerinstance.models.NGroupSkus] + :ivar next_link: The URI to fetch the next page of NGroups SKUs. + :vartype next_link: str + """ + + _attribute_map = { + "value": {"key": "value", "type": "[NGroupSkus]"}, + "next_link": {"key": "nextLink", "type": "str"}, + } + + def __init__( + self, *, value: Optional[list["_models.NGroupSkus"]] = None, next_link: Optional[str] = None, **kwargs: Any + ) -> None: + """ + :keyword value: The list of NGroups SKUs. + :paramtype value: list[~azure.mgmt.containerinstance.models.NGroupSkus] + :keyword next_link: The URI to fetch the next page of NGroups SKUs. + :paramtype next_link: str + """ + super().__init__(**kwargs) + self.value = value + self.next_link = next_link class Operation(_serialization.Model): @@ -2767,7 +4245,7 @@ class OperationListResult(_serialization.Model): } def __init__( - self, *, value: Optional[List["_models.Operation"]] = None, next_link: Optional[str] = None, **kwargs: Any + self, *, value: Optional[list["_models.Operation"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: The list of operations. @@ -2780,6 +4258,31 @@ def __init__( self.next_link = next_link +class PlacementProfile(_serialization.Model): + """Provides options w.r.t allocation and management w.r.t certain placement policies. These + utilize capabilities provided by the underlying Azure infrastructure. They are typically used + for high availability scenarios. E.g., distributing CGs across fault domains. + + :ivar fault_domain_count: The number of fault domains to be used to spread CGs in the NGroups + resource. This can only be specified during NGroup creation and is immutable after that. + :vartype fault_domain_count: int + """ + + _attribute_map = { + "fault_domain_count": {"key": "faultDomainCount", "type": "int"}, + } + + def __init__(self, *, fault_domain_count: Optional[int] = None, **kwargs: Any) -> None: + """ + :keyword fault_domain_count: The number of fault domains to be used to spread CGs in the + NGroups resource. This can only be specified during NGroup creation and is immutable after + that. + :paramtype fault_domain_count: int + """ + super().__init__(**kwargs) + self.fault_domain_count = fault_domain_count + + class Port(_serialization.Model): """The port exposed on the container group. @@ -2932,6 +4435,48 @@ def __init__( self.limits = limits +class SecretReference(_serialization.Model): + """A secret reference. + + All required parameters must be populated in order to send to server. + + :ivar name: The identifier of the secret reference. Required. + :vartype name: str + :ivar identity: The ARM resource id of the managed identity that has access to the secret in + the key vault. Required. + :vartype identity: str + :ivar secret_reference_uri: The URI to the secret in key vault. Required. + :vartype secret_reference_uri: str + """ + + _validation = { + "name": {"required": True}, + "identity": {"required": True}, + "secret_reference_uri": {"required": True}, + } + + _attribute_map = { + "name": {"key": "name", "type": "str"}, + "identity": {"key": "identity", "type": "str"}, + "secret_reference_uri": {"key": "secretReferenceUri", "type": "str"}, + } + + def __init__(self, *, name: str, identity: str, secret_reference_uri: str, **kwargs: Any) -> None: + """ + :keyword name: The identifier of the secret reference. Required. + :paramtype name: str + :keyword identity: The ARM resource id of the managed identity that has access to the secret in + the key vault. Required. + :paramtype identity: str + :keyword secret_reference_uri: The URI to the secret in key vault. Required. + :paramtype secret_reference_uri: str + """ + super().__init__(**kwargs) + self.name = name + self.identity = identity + self.secret_reference_uri = secret_reference_uri + + class SecurityContextCapabilitiesDefinition(_serialization.Model): """The capabilities to add or drop from a container. @@ -2946,7 +4491,7 @@ class SecurityContextCapabilitiesDefinition(_serialization.Model): "drop": {"key": "drop", "type": "[str]"}, } - def __init__(self, *, add: Optional[List[str]] = None, drop: Optional[List[str]] = None, **kwargs: Any) -> None: + def __init__(self, *, add: Optional[list[str]] = None, drop: Optional[list[str]] = None, **kwargs: Any) -> None: """ :keyword add: The capabilities to add to the container. :paramtype add: list[str] @@ -3029,7 +4574,7 @@ class StandbyPoolProfileDefinition(_serialization.Model): """The standby pool profile reference. :ivar 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}'. # pylint: disable=line-too-long + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. :vartype id: str :ivar fail_container_group_create_on_reuse_failure: The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool. @@ -3053,7 +4598,7 @@ def __init__( ) -> None: """ :keyword 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}'. # pylint: disable=line-too-long + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. :paramtype id: str :keyword fail_container_group_create_on_reuse_failure: The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool. @@ -3064,6 +4609,182 @@ def __init__( self.fail_container_group_create_on_reuse_failure = fail_container_group_create_on_reuse_failure +class StorageProfile(_serialization.Model): + """Storage profile for storage related settings of a container group profile. + + :ivar file_shares: + :vartype file_shares: list[~azure.mgmt.containerinstance.models.FileShare] + """ + + _attribute_map = { + "file_shares": {"key": "fileShares", "type": "[FileShare]"}, + } + + def __init__(self, *, file_shares: Optional[list["_models.FileShare"]] = None, **kwargs: Any) -> None: + """ + :keyword file_shares: + :paramtype file_shares: list[~azure.mgmt.containerinstance.models.FileShare] + """ + super().__init__(**kwargs) + self.file_shares = file_shares + + +class SystemData(_serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :ivar created_by: The identity that created the resource. + :vartype created_by: str + :ivar created_by_type: The type of identity that created the resource. Known values are: + "User", "Application", "ManagedIdentity", and "Key". + :vartype created_by_type: str or ~azure.mgmt.containerinstance.models.CreatedByType + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: ~datetime.datetime + :ivar last_modified_by: The identity that last modified the resource. + :vartype last_modified_by: str + :ivar last_modified_by_type: The type of identity that last modified the resource. Known values + are: "User", "Application", "ManagedIdentity", and "Key". + :vartype last_modified_by_type: str or ~azure.mgmt.containerinstance.models.CreatedByType + :ivar last_modified_at: The timestamp of resource last modification (UTC). + :vartype last_modified_at: ~datetime.datetime + """ + + _attribute_map = { + "created_by": {"key": "createdBy", "type": "str"}, + "created_by_type": {"key": "createdByType", "type": "str"}, + "created_at": {"key": "createdAt", "type": "iso-8601"}, + "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, + "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, + "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, + } + + def __init__( + self, + *, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + **kwargs: Any + ) -> None: + """ + :keyword created_by: The identity that created the resource. + :paramtype created_by: str + :keyword created_by_type: The type of identity that created the resource. Known values are: + "User", "Application", "ManagedIdentity", and "Key". + :paramtype created_by_type: str or ~azure.mgmt.containerinstance.models.CreatedByType + :keyword created_at: The timestamp of resource creation (UTC). + :paramtype created_at: ~datetime.datetime + :keyword last_modified_by: The identity that last modified the resource. + :paramtype last_modified_by: str + :keyword last_modified_by_type: The type of identity that last modified the resource. Known + values are: "User", "Application", "ManagedIdentity", and "Key". + :paramtype last_modified_by_type: str or ~azure.mgmt.containerinstance.models.CreatedByType + :keyword last_modified_at: The timestamp of resource last modification (UTC). + :paramtype last_modified_at: ~datetime.datetime + """ + super().__init__(**kwargs) + self.created_by = created_by + self.created_by_type = created_by_type + self.created_at = created_at + self.last_modified_by = last_modified_by + self.last_modified_by_type = last_modified_by_type + self.last_modified_at = last_modified_at + + +class UpdateProfile(_serialization.Model): + """Used by the customer to specify the way to update the Container Groups in NGroup. + + :ivar update_mode: Known values are: "Manual" and "Rolling". + :vartype update_mode: str or ~azure.mgmt.containerinstance.models.NGroupUpdateMode + :ivar rolling_update_profile: This profile allows the customers to customize the rolling + update. + :vartype rolling_update_profile: + ~azure.mgmt.containerinstance.models.UpdateProfileRollingUpdateProfile + """ + + _attribute_map = { + "update_mode": {"key": "updateMode", "type": "str"}, + "rolling_update_profile": {"key": "rollingUpdateProfile", "type": "UpdateProfileRollingUpdateProfile"}, + } + + def __init__( + self, + *, + update_mode: Optional[Union[str, "_models.NGroupUpdateMode"]] = None, + rolling_update_profile: Optional["_models.UpdateProfileRollingUpdateProfile"] = None, + **kwargs: Any + ) -> None: + """ + :keyword update_mode: Known values are: "Manual" and "Rolling". + :paramtype update_mode: str or ~azure.mgmt.containerinstance.models.NGroupUpdateMode + :keyword rolling_update_profile: This profile allows the customers to customize the rolling + update. + :paramtype rolling_update_profile: + ~azure.mgmt.containerinstance.models.UpdateProfileRollingUpdateProfile + """ + super().__init__(**kwargs) + self.update_mode = update_mode + self.rolling_update_profile = rolling_update_profile + + +class UpdateProfileRollingUpdateProfile(_serialization.Model): + """This profile allows the customers to customize the rolling update. + + :ivar max_batch_percent: Maximum percentage of total Container Groups which can be updated + simultaneously by rolling update in one batch. + :vartype max_batch_percent: int + :ivar max_unhealthy_percent: Maximum percentage of the updated Container Groups which can be in + unhealthy state after each batch is updated. + :vartype max_unhealthy_percent: int + :ivar pause_time_between_batches: The wait time between batches after completing the one batch + of the rolling update and starting the next batch. The time duration should be specified in ISO + 8601 format for duration. + :vartype pause_time_between_batches: str + :ivar in_place_update: Default is false. If set to true, the CGs will be updated in-place + instead of creating new CG and deleting old ones. + :vartype in_place_update: bool + """ + + _attribute_map = { + "max_batch_percent": {"key": "maxBatchPercent", "type": "int"}, + "max_unhealthy_percent": {"key": "maxUnhealthyPercent", "type": "int"}, + "pause_time_between_batches": {"key": "pauseTimeBetweenBatches", "type": "str"}, + "in_place_update": {"key": "inPlaceUpdate", "type": "bool"}, + } + + def __init__( + self, + *, + max_batch_percent: Optional[int] = None, + max_unhealthy_percent: Optional[int] = None, + pause_time_between_batches: Optional[str] = None, + in_place_update: Optional[bool] = None, + **kwargs: Any + ) -> None: + """ + :keyword max_batch_percent: Maximum percentage of total Container Groups which can be updated + simultaneously by rolling update in one batch. + :paramtype max_batch_percent: int + :keyword max_unhealthy_percent: Maximum percentage of the updated Container Groups which can be + in unhealthy state after each batch is updated. + :paramtype max_unhealthy_percent: int + :keyword pause_time_between_batches: The wait time between batches after completing the one + batch of the rolling update and starting the next batch. The time duration should be specified + in ISO 8601 format for duration. + :paramtype pause_time_between_batches: str + :keyword in_place_update: Default is false. If set to true, the CGs will be updated in-place + instead of creating new CG and deleting old ones. + :paramtype in_place_update: bool + """ + super().__init__(**kwargs) + self.max_batch_percent = max_batch_percent + self.max_unhealthy_percent = max_unhealthy_percent + self.pause_time_between_batches = pause_time_between_batches + self.in_place_update = in_place_update + + class Usage(_serialization.Model): """A single usage result. @@ -3100,11 +4821,11 @@ class Usage(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.id = None - self.unit = None - self.current_value = None - self.limit = None - self.name = None + self.id: Optional[str] = None + self.unit: Optional[str] = None + self.current_value: Optional[int] = None + self.limit: Optional[int] = None + self.name: Optional["_models.UsageName"] = None class UsageListResult(_serialization.Model): @@ -3127,7 +4848,7 @@ class UsageListResult(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.value = None + self.value: Optional[list["_models.Usage"]] = None class UsageName(_serialization.Model): @@ -3154,8 +4875,8 @@ class UsageName(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.value = None - self.localized_value = None + self.value: Optional[str] = None + self.localized_value: Optional[str] = None class UserAssignedIdentities(_serialization.Model): @@ -3184,8 +4905,8 @@ class UserAssignedIdentities(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.principal_id = None - self.client_id = None + self.principal_id: Optional[str] = None + self.client_id: Optional[str] = None class Volume(_serialization.Model): @@ -3201,6 +4922,8 @@ class Volume(_serialization.Model): :vartype empty_dir: JSON :ivar secret: The secret volume. :vartype secret: dict[str, str] + :ivar secret_reference: The secret reference volume. + :vartype secret_reference: dict[str, str] :ivar git_repo: The git repo volume. :vartype git_repo: ~azure.mgmt.containerinstance.models.GitRepoVolume """ @@ -3214,6 +4937,7 @@ class Volume(_serialization.Model): "azure_file": {"key": "azureFile", "type": "AzureFileVolume"}, "empty_dir": {"key": "emptyDir", "type": "object"}, "secret": {"key": "secret", "type": "{str}"}, + "secret_reference": {"key": "secretReference", "type": "{str}"}, "git_repo": {"key": "gitRepo", "type": "GitRepoVolume"}, } @@ -3223,7 +4947,8 @@ def __init__( name: str, azure_file: Optional["_models.AzureFileVolume"] = None, empty_dir: Optional[JSON] = None, - secret: Optional[Dict[str, str]] = None, + secret: Optional[dict[str, str]] = None, + secret_reference: Optional[dict[str, str]] = None, git_repo: Optional["_models.GitRepoVolume"] = None, **kwargs: Any ) -> None: @@ -3236,6 +4961,8 @@ def __init__( :paramtype empty_dir: JSON :keyword secret: The secret volume. :paramtype secret: dict[str, str] + :keyword secret_reference: The secret reference volume. + :paramtype secret_reference: dict[str, str] :keyword git_repo: The git repo volume. :paramtype git_repo: ~azure.mgmt.containerinstance.models.GitRepoVolume """ @@ -3244,6 +4971,7 @@ def __init__( self.azure_file = azure_file self.empty_dir = empty_dir self.secret = secret + self.secret_reference = secret_reference self.git_repo = git_repo diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/__init__.py index 7120d9b773f9..88d90a09aa65 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/__init__.py @@ -5,17 +5,24 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +# pylint: disable=wrong-import-position -from ._container_groups_operations import ContainerGroupsOperations -from ._operations import Operations -from ._location_operations import LocationOperations -from ._containers_operations import ContainersOperations -from ._subnet_service_association_link_operations import SubnetServiceAssociationLinkOperations -from ._container_group_profiles_operations import ContainerGroupProfilesOperations -from ._container_group_profile_operations import ContainerGroupProfileOperations +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from ._patch import * # pylint: disable=unused-wildcard-import + +from ._container_groups_operations import ContainerGroupsOperations # type: ignore +from ._operations import Operations # type: ignore +from ._location_operations import LocationOperations # type: ignore +from ._containers_operations import ContainersOperations # type: ignore +from ._subnet_service_association_link_operations import SubnetServiceAssociationLinkOperations # type: ignore +from ._ngroups_operations import NGroupsOperations # type: ignore +from ._cg_profiles_operations import CGProfilesOperations # type: ignore +from ._cg_profile_operations import CGProfileOperations # type: ignore from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import +from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ @@ -24,8 +31,9 @@ "LocationOperations", "ContainersOperations", "SubnetServiceAssociationLinkOperations", - "ContainerGroupProfilesOperations", - "ContainerGroupProfileOperations", + "NGroupsOperations", + "CGProfilesOperations", + "CGProfileOperations", ] -__all__.extend([p for p in _patch_all if p not in __all__]) +__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_group_profiles_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profile_operations.py similarity index 74% rename from sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_group_profiles_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profile_operations.py index a759ea9e9238..2a3eafbc15f0 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_group_profiles_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profile_operations.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines,too-many-statements +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,11 +6,12 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from collections.abc import MutableMapping from io import IOBase -import sys -from typing import Any, Callable, Dict, IO, Iterable, Optional, Type, TypeVar, Union, overload +from typing import Any, Callable, IO, Optional, TypeVar, Union, overload import urllib.parse +from azure.core import PipelineClient from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, @@ -27,32 +28,45 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from .. import models as _models -from .._serialization import Serializer +from .._configuration import ContainerInstanceManagementClientConfiguration +from .._utils.serialization import Deserializer, Serializer -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: +def build_create_or_update_request( + resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( - "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroupProfiles" - ) # pylint: disable=line-too-long + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 + ), + "containerGroupProfileName": _SERIALIZER.url( + "container_group_profile_name", + container_group_profile_name, + "str", + max_length=63, + min_length=1, + pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", + ), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -61,28 +75,41 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) -def build_list_by_resource_group_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: +def build_update_request( + resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles", - ) # pylint: disable=line-too-long + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 ), + "containerGroupProfileName": _SERIALIZER.url( + "container_group_profile_name", + container_group_profile_name, + "str", + max_length=63, + min_length=1, + pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", + ), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -91,9 +118,11 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) def build_get_request( @@ -102,14 +131,14 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -121,7 +150,7 @@ def build_get_request( "str", max_length=63, min_length=1, - pattern=r"^(?!.*--)[a-z0-9]([-a-z0-9]*[a-z0-9])?$", + pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", ), } @@ -136,21 +165,20 @@ def build_get_request( return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_create_or_update_request( +def build_delete_request( resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -162,7 +190,7 @@ def build_create_or_update_request( "str", max_length=63, min_length=1, - pattern=r"^(?!.*--)[a-z0-9]([-a-z0-9]*[a-z0-9])?$", + pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", ), } @@ -172,28 +200,25 @@ def build_create_or_update_request( _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) -def build_patch_request( +def build_list_all_revisions_request( resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", - ) # pylint: disable=line-too-long + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions", + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -205,7 +230,7 @@ def build_patch_request( "str", max_length=63, min_length=1, - pattern=r"^(?!.*--)[a-z0-9]([-a-z0-9]*[a-z0-9])?$", + pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", ), } @@ -215,27 +240,29 @@ def build_patch_request( _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_delete_request( - resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any +def build_get_by_revision_number_request( + resource_group_name: str, + container_group_profile_name: str, + revision_number: str, + subscription_id: str, + **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", - ) # pylint: disable=line-too-long + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions/{revisionNumber}", + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -247,8 +274,9 @@ def build_delete_request( "str", max_length=63, min_length=1, - pattern=r"^(?!.*--)[a-z0-9]([-a-z0-9]*[a-z0-9])?$", + pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", ), + "revisionNumber": _SERIALIZER.url("revision_number", revision_number, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -259,256 +287,29 @@ def build_delete_request( # Construct headers _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -class ContainerGroupProfilesOperations: +class CGProfileOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s - :attr:`container_group_profiles` attribute. + :attr:`cg_profile` attribute. """ models = _models - def __init__(self, *args, **kwargs): + def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ContainerGroupProfile"]: - """Get a list of container group profiles in the specified subscription. - - 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. - - :return: An iterator like instance of either ContainerGroupProfile or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping[int, Type[HttpResponseError]] = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> Iterable["_models.ContainerGroupProfile"]: - """Get a list of container group profiles in the specified subscription and resource group. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either ContainerGroupProfile or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping[int, Type[HttpResponseError]] = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Get the properties of the specified container group profile. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. - :type container_group_profile_name: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @overload def create_or_update( @@ -520,17 +321,16 @@ def create_or_update( content_type: str = "application/json", **kwargs: Any ) -> _models.ContainerGroupProfile: - """Create or update container group profiles. + """Create or Update a ContainerGroupProfile. - Create or update container group profiles with specified configurations. + Create a CGProfile if it doesn't exist or update an existing CGProfile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str - :param container_group_profile: The properties of the container group profile to be created or - updated. Required. + :param container_group_profile: The ContainerGroupProfile object. Required. :type container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfile :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -550,17 +350,16 @@ def create_or_update( content_type: str = "application/json", **kwargs: Any ) -> _models.ContainerGroupProfile: - """Create or update container group profiles. + """Create or Update a ContainerGroupProfile. - Create or update container group profiles with specified configurations. + Create a CGProfile if it doesn't exist or update an existing CGProfile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str - :param container_group_profile: The properties of the container group profile to be created or - updated. Required. + :param container_group_profile: The ContainerGroupProfile object. Required. :type container_group_profile: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -578,24 +377,24 @@ def create_or_update( container_group_profile: Union[_models.ContainerGroupProfile, IO[bytes]], **kwargs: Any ) -> _models.ContainerGroupProfile: - """Create or update container group profiles. + """Create or Update a ContainerGroupProfile. - Create or update container group profiles with specified configurations. + Create a CGProfile if it doesn't exist or update an existing CGProfile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str - :param container_group_profile: The properties of the container group profile to be created or - updated. Is either a ContainerGroupProfile type or a IO[bytes] type. Required. + :param container_group_profile: The ContainerGroupProfile object. Is either a + ContainerGroupProfile type or a IO[bytes] type. Required. :type container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfile or IO[bytes] :return: ContainerGroupProfile or the result of cls(response) :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -640,17 +439,26 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @overload - def patch( + def update( self, resource_group_name: str, container_group_profile_name: str, @@ -659,14 +467,14 @@ def patch( content_type: str = "application/json", **kwargs: Any ) -> _models.ContainerGroupProfile: - """Patch container group profiles. + """Container group profile PATCH REST API. - Patches container group profile with specified properties. + Update a specified container group profile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str :param properties: The container group profile properties that need to be updated. Required. :type properties: ~azure.mgmt.containerinstance.models.ContainerGroupProfilePatch @@ -679,7 +487,7 @@ def patch( """ @overload - def patch( + def update( self, resource_group_name: str, container_group_profile_name: str, @@ -688,14 +496,14 @@ def patch( content_type: str = "application/json", **kwargs: Any ) -> _models.ContainerGroupProfile: - """Patch container group profiles. + """Container group profile PATCH REST API. - Patches container group profile with specified properties. + Update a specified container group profile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str :param properties: The container group profile properties that need to be updated. Required. :type properties: IO[bytes] @@ -708,21 +516,21 @@ def patch( """ @distributed_trace - def patch( + def update( self, resource_group_name: str, container_group_profile_name: str, properties: Union[_models.ContainerGroupProfilePatch, IO[bytes]], **kwargs: Any ) -> _models.ContainerGroupProfile: - """Patch container group profiles. + """Container group profile PATCH REST API. - Patches container group profile with specified properties. + Update a specified container group profile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str :param properties: The container group profile properties that need to be updated. Is either a ContainerGroupProfilePatch type or a IO[bytes] type. Required. @@ -731,7 +539,7 @@ def patch( :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -754,7 +562,7 @@ def patch( else: _json = self._serialize.body(properties, "ContainerGroupProfilePatch") - _request = build_patch_request( + _request = build_update_request( resource_group_name=resource_group_name, container_group_profile_name=container_group_profile_name, subscription_id=self._config.subscription_id, @@ -774,6 +582,74 @@ def patch( response = pipeline_response.http_response + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) + + deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def get( + self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Display information about a specified ContainerGroupProfile. + + Get the properties of the specified container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :return: ContainerGroupProfile or the result of cls(response) + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) + + _request = build_get_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) @@ -789,21 +665,20 @@ def patch( def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any ) -> None: - """Delete the specified container group profile. + """Container group profile DELETE REST API. - 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. + Deletes a container group profile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. + :param container_group_profile_name: ContainerGroupProfile name. Required. :type container_group_profile_name: str :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -836,7 +711,167 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_all_revisions( + self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any + ) -> ItemPaged["_models.ContainerGroupProfile"]: + """Get a list of all the revisions of the specified container group profile in the given + subscription and resource 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :return: An iterator like instance of either ContainerGroupProfile or the result of + cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_list_all_revisions_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + def extract_data(pipeline_response): + deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def get_by_revision_number( + self, resource_group_name: str, container_group_profile_name: str, revision_number: str, **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Get the properties of the specified revision of the container group profile. + + 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param revision_number: The revision number of the container group profile. Required. + :type revision_number: str + :return: ContainerGroupProfile or the result of cls(response) + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) + + _request = build_get_by_revision_number_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + revision_number=revision_number, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_group_profile_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profiles_operations.py similarity index 54% rename from sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_group_profile_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profiles_operations.py index ea2f7ca60b95..14ac72b71ee9 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_group_profile_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profiles_operations.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines,too-many-statements +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,10 +6,11 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys -from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar +from collections.abc import MutableMapping +from typing import Any, Callable, Optional, TypeVar import urllib.parse +from azure.core import PipelineClient from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, @@ -26,46 +27,30 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from .. import models as _models -from .._serialization import Serializer +from .._configuration import ContainerInstanceManagementClientConfiguration +from .._utils.serialization import Deserializer, Serializer -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -def build_list_all_revisions_request( - resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: +def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions", - ) # pylint: disable=line-too-long + "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroupProfiles" + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupProfileName": _SERIALIZER.url( - "container_group_profile_name", - container_group_profile_name, - "str", - max_length=63, - min_length=1, - pattern=r"^(?!.*--)[a-z0-9]([-a-z0-9]*[a-z0-9])?$", - ), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -79,38 +64,23 @@ def build_list_all_revisions_request( return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_get_by_revision_number_request( - resource_group_name: str, - container_group_profile_name: str, - revision_number: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: +def build_list_by_resource_group_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions/{revisionNumber}", - ) # pylint: disable=line-too-long + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles", + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 ), - "containerGroupProfileName": _SERIALIZER.url( - "container_group_profile_name", - container_group_profile_name, - "str", - max_length=63, - min_length=1, - pattern=r"^(?!.*--)[a-z0-9]([-a-z0-9]*[a-z0-9])?$", - ), - "revisionNumber": _SERIALIZER.url("revision_number", revision_number, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -124,42 +94,33 @@ def build_get_by_revision_number_request( return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -class ContainerGroupProfileOperations: +class CGProfilesOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s - :attr:`container_group_profile` attribute. + :attr:`cg_profiles` attribute. """ models = _models - def __init__(self, *args, **kwargs): + def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def list_all_revisions( - self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any - ) -> Iterable["_models.ContainerGroupProfile"]: - """Get a list of all the revisions of the specified container group profile in the given - subscription and resource group. + def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ContainerGroupProfile"]: + """List container group profiles in a subscription. - 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. + Gets a list of all container group profiles under a subscription. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. - :type container_group_profile_name: str :return: An iterator like instance of either ContainerGroupProfile or the result of cls(response) :rtype: @@ -172,7 +133,7 @@ def list_all_revisions( api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -183,9 +144,7 @@ def list_all_revisions( def prepare_request(next_link=None): if not next_link: - _request = build_list_all_revisions_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, + _request = build_list_by_subscription_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -235,28 +194,29 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) @distributed_trace - def get_by_revision_number( - self, resource_group_name: str, container_group_profile_name: str, revision_number: str, **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Get the properties of the specified revision of the container group profile. + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> ItemPaged["_models.ContainerGroupProfile"]: + """List container group profiles in a resource group. - 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. + Gets a list of all container group profiles under a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param container_group_profile_name: The name of the container group profile. Required. - :type container_group_profile_name: str - :param revision_number: The revision number of the container group profile. Required. - :type revision_number: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :return: An iterator like instance of either ContainerGroupProfile or the result of + cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) + + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -264,37 +224,55 @@ def get_by_revision_number( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + def prepare_request(next_link=None): + if not next_link: - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) - - _request = build_get_by_revision_number_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - revision_number=revision_number, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) + _request = build_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request - response = pipeline_response.http_response + def extract_data(pipeline_response): + deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, iter(list_of_elem) - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + def get_next(next_link=None): + _request = prepare_request(next_link) - deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return pipeline_response - return deserialized # type: ignore + return ItemPaged(get_next, extract_data) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_groups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_groups_operations.py index 4ae227c0b153..c570d798644c 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_groups_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_groups_operations.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines,too-many-statements +# pylint: disable=line-too-long,useless-suppression,too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,11 +6,12 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from collections.abc import MutableMapping from io import IOBase -import sys -from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse +from azure.core import PipelineClient from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, @@ -31,14 +32,12 @@ from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models as _models -from .._serialization import Serializer +from .._configuration import ContainerInstanceManagementClientConfiguration +from .._utils.serialization import Deserializer, Serializer -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -48,13 +47,13 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups" - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } @@ -74,14 +73,14 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -106,14 +105,14 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -139,7 +138,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -147,7 +146,7 @@ def build_create_or_update_request( _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -175,7 +174,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -183,7 +182,7 @@ def build_update_request( _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -211,14 +210,14 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -244,14 +243,14 @@ def build_restart_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -277,14 +276,14 @@ def build_stop_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -310,14 +309,14 @@ def build_start_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -343,14 +342,14 @@ def build_get_outbound_network_dependencies_endpoints_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -382,23 +381,27 @@ class ContainerGroupsOperations: models = _models - def __init__(self, *args, **kwargs): + def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ContainerGroup"]: + def list(self, **kwargs: Any) -> ItemPaged["_models.ListResultContainerGroup"]: """Get a list of container groups in the specified subscription. 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. - :return: An iterator like instance of either ContainerGroup or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ContainerGroup] + :return: An iterator like instance of either ListResultContainerGroup or the result of + cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ListResultContainerGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} @@ -407,7 +410,7 @@ def list(self, **kwargs: Any) -> Iterable["_models.ContainerGroup"]: api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ContainerGroupListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -468,7 +471,9 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ContainerGroup"]: + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> ItemPaged["_models.ListResultContainerGroup"]: """Get a list of container groups in the specified subscription and resource group. Get a list of container groups in a specified subscription and resource group. This operation @@ -478,8 +483,10 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of either ContainerGroup or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ContainerGroup] + :return: An iterator like instance of either ListResultContainerGroup or the result of + cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ListResultContainerGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} @@ -488,7 +495,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ContainerGroupListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -566,7 +573,7 @@ def get(self, resource_group_name: str, container_group_name: str, **kwargs: Any :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -615,7 +622,7 @@ def _create_or_update_initial( container_group: Union[_models.ContainerGroup, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -890,7 +897,7 @@ def update( :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -945,7 +952,7 @@ def update( return deserialized # type: ignore def _delete_initial(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -1056,7 +1063,7 @@ def get_long_running_output(pipeline_response): ) def _restart_initial(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -1177,7 +1184,7 @@ def stop( # pylint: disable=inconsistent-return-statements :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -1216,7 +1223,7 @@ def stop( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore def _start_initial(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -1337,7 +1344,7 @@ def get_outbound_network_dependencies_endpoints( # pylint: disable=name-too-lon :rtype: list[str] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_containers_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_containers_operations.py index 402c91e64a96..a0b7c12472cb 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_containers_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_containers_operations.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines,too-many-statements +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,10 +6,11 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from collections.abc import MutableMapping from io import IOBase -import sys -from typing import Any, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload +from typing import Any, Callable, IO, Optional, TypeVar, Union, overload +from azure.core import PipelineClient from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, @@ -25,14 +26,12 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from .. import models as _models -from .._serialization import Serializer +from .._configuration import ContainerInstanceManagementClientConfiguration +from .._utils.serialization import Deserializer, Serializer -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -51,14 +50,14 @@ def build_list_logs_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -89,7 +88,7 @@ def build_execute_command_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -97,7 +96,7 @@ def build_execute_command_request( _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -126,14 +125,14 @@ def build_attach_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -166,12 +165,14 @@ class ContainersOperations: models = _models - def __init__(self, *args, **kwargs): + def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace def list_logs( @@ -205,7 +206,7 @@ def list_logs( :rtype: ~azure.mgmt.containerinstance.models.Logs :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -345,7 +346,7 @@ def execute_command( :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -420,7 +421,7 @@ def attach( :rtype: ~azure.mgmt.containerinstance.models.ContainerAttachResponse :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_location_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_location_operations.py index b7ad2e02b809..6e448d64d8a2 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_location_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_location_operations.py @@ -1,4 +1,3 @@ -# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,10 +5,11 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys -from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar +from collections.abc import MutableMapping +from typing import Any, Callable, Optional, TypeVar import urllib.parse +from azure.core import PipelineClient from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, @@ -26,14 +26,12 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from .. import models as _models -from .._serialization import Serializer +from .._configuration import ContainerInstanceManagementClientConfiguration +from .._utils.serialization import Deserializer, Serializer -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -43,14 +41,14 @@ def build_list_usage_request(location: str, subscription_id: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "location": _SERIALIZER.url("location", location, "str", min_length=1), @@ -71,14 +69,14 @@ def build_list_cached_images_request(location: str, subscription_id: str, **kwar _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "location": _SERIALIZER.url("location", location, "str", min_length=1), @@ -99,14 +97,14 @@ def build_list_capabilities_request(location: str, subscription_id: str, **kwarg _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "location": _SERIALIZER.url("location", location, "str", min_length=1), @@ -135,15 +133,17 @@ class LocationOperations: models = _models - def __init__(self, *args, **kwargs): + def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def list_usage(self, location: str, **kwargs: Any) -> Iterable["_models.Usage"]: + def list_usage(self, location: str, **kwargs: Any) -> ItemPaged["_models.Usage"]: """Get the usage for a subscription. :param location: The name of the Azure region. Required. @@ -158,7 +158,7 @@ def list_usage(self, location: str, **kwargs: Any) -> Iterable["_models.Usage"]: api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.UsageListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -220,7 +220,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) @distributed_trace - def list_cached_images(self, location: str, **kwargs: Any) -> Iterable["_models.CachedImages"]: + def list_cached_images(self, location: str, **kwargs: Any) -> ItemPaged["_models.CachedImages"]: """Get the list of cached images. Get the list of cached images on specific OS type for a subscription in a region. @@ -237,7 +237,7 @@ def list_cached_images(self, location: str, **kwargs: Any) -> Iterable["_models. api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.CachedImagesListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -299,7 +299,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) @distributed_trace - def list_capabilities(self, location: str, **kwargs: Any) -> Iterable["_models.Capabilities"]: + def list_capabilities(self, location: str, **kwargs: Any) -> ItemPaged["_models.Capabilities"]: """Get the list of capabilities of the location. Get the list of CPU/memory/GPU capabilities of a region. @@ -316,7 +316,7 @@ def list_capabilities(self, location: str, **kwargs: Any) -> Iterable["_models.C api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.CapabilitiesListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_ngroups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_ngroups_operations.py new file mode 100644 index 000000000000..0ff80f06f337 --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_ngroups_operations.py @@ -0,0 +1,1431 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +from collections.abc import MutableMapping +from io import IOBase +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload +import urllib.parse + +from azure.core import PipelineClient +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + ResourceNotModifiedError, + StreamClosedError, + StreamConsumedError, + map_error, +) +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.core.rest import HttpRequest, HttpResponse +from azure.core.tracing.decorator import distributed_trace +from azure.core.utils import case_insensitive_dict +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models +from .._configuration import ContainerInstanceManagementClientConfiguration +from .._utils.serialization import Deserializer, Serializer + +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + + +def build_get_request(resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}", + ) + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 + ), + "ngroupsName": _SERIALIZER.url( + "ngroups_name", + ngroups_name, + "str", + max_length=63, + min_length=1, + pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_create_or_update_request( + resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}", + ) + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 + ), + "ngroupsName": _SERIALIZER.url( + "ngroups_name", + ngroups_name, + "str", + max_length=63, + min_length=1, + pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", + ), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_update_request( + resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}", + ) + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 + ), + "ngroupsName": _SERIALIZER.url( + "ngroups_name", + ngroups_name, + "str", + max_length=63, + min_length=1, + pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", + ), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_delete_request( + resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}", + ) + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 + ), + "ngroupsName": _SERIALIZER.url( + "ngroups_name", + ngroups_name, + "str", + max_length=63, + min_length=1, + pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", + ), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_start_request( + resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/start", + ) + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 + ), + "ngroupsName": _SERIALIZER.url( + "ngroups_name", + ngroups_name, + "str", + max_length=63, + min_length=1, + pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_stop_request(resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/stop", + ) + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 + ), + "ngroupsName": _SERIALIZER.url( + "ngroups_name", + ngroups_name, + "str", + max_length=63, + min_length=1, + pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_restart_request( + resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/restart", + ) + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 + ), + "ngroupsName": _SERIALIZER.url( + "ngroups_name", + ngroups_name, + "str", + max_length=63, + min_length=1, + pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_list_by_resource_group_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups", + ) + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/ngroups") + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +class NGroupsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s + :attr:`ngroups` attribute. + """ + + models = _models + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> _models.NGroup: + """NGroups GET REST API. + + Get the properties of the specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: NGroup or the result of cls(response) + :rtype: ~azure.mgmt.containerinstance.models.NGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) + + _request = build_get_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize("NGroup", pipeline_response.http_response) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroup, IO[bytes]], **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(n_group, (IOBase, bytes)): + _content = n_group + else: + _json = self._serialize.body(n_group, "NGroup") + + _request = build_create_or_update_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: _models.NGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroup + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns either NGroup or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns either NGroup or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroup, IO[bytes]], **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Is either a NGroup type or a IO[bytes] type. Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroup or IO[bytes] + :return: An instance of LROPoller that returns either NGroup or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + n_group=n_group, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + deserialized = self._deserialize("NGroup", pipeline_response.http_response) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.NGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.NGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_initial( + self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroupPatch, IO[bytes]], **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(n_group, (IOBase, bytes)): + _content = n_group + else: + _json = self._serialize.body(n_group, "NGroupPatch") + + _request = build_update_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 200: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: _models.NGroupPatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroupPatch + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns either NGroup or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns either NGroup or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroupPatch, IO[bytes]], **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Is either a NGroupPatch type or a IO[bytes] type. Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroupPatch or IO[bytes] + :return: An instance of LROPoller that returns either NGroup or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + n_group=n_group, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + deserialized = self._deserialize("NGroup", pipeline_response.http_response) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.NGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.NGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_delete_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> LROPoller[None]: + """NGroups Delete REST API. + + Deletes the NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + def _start_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_start_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_start(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> LROPoller[None]: + """Starts all container groups in the specified NGroups resource. + + Starts all container groups in the specified NGroups resource. Compute resources will be + allocated and billing will start. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._start_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def stop( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, ngroups_name: str, **kwargs: Any + ) -> None: + """Stops all container groups in the specified NGroups resource. + + Stops all container groups in the specified NGroups resource. Compute resources will be + deallocated and billing will stop. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_stop_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + def _restart_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_restart_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_restart(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> LROPoller[None]: + """Restarts all container groups in the specified NGroups resource. + + Restarts all container groups in the specified NGroups resource in place. If container image + has updates, new image will be downloaded. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._restart_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.NGroup"]: + """GET NGroups under a resource group REST API. + + Gets a list of all NGroups resources under a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of either NGroup or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.NGroupsListResult] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + def extract_data(pipeline_response): + deserialized = self._deserialize("NGroupsListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged["_models.NGroup"]: + """List NGroups in a subscription. + + Gets a list of all NGroups resources under a subscription. + + :return: An iterator like instance of either NGroup or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.NGroupsListResult] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + def extract_data(pipeline_response): + deserialized = self._deserialize("NGroupsListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_operations.py index 3b750f69232c..cd89b6b76dca 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_operations.py @@ -1,4 +1,3 @@ -# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,10 +5,11 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys -from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar +from collections.abc import MutableMapping +from typing import Any, Callable, Optional, TypeVar import urllib.parse +from azure.core import PipelineClient from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, @@ -26,14 +26,12 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from .. import models as _models -from .._serialization import Serializer +from .._configuration import ContainerInstanceManagementClientConfiguration +from .._utils.serialization import Deserializer, Serializer -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -43,7 +41,7 @@ def build_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -70,15 +68,17 @@ class Operations: models = _models - def __init__(self, *args, **kwargs): + def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.Operation"]: + def list(self, **kwargs: Any) -> ItemPaged["_models.Operation"]: """List the operations for Azure Container Instance service. :return: An iterator like instance of either Operation or the result of cls(response) @@ -91,7 +91,7 @@ def list(self, **kwargs: Any) -> Iterable["_models.Operation"]: api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None) - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_subnet_service_association_link_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_subnet_service_association_link_operations.py index eccbeed67ad0..628e0922a411 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_subnet_service_association_link_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_subnet_service_association_link_operations.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines,too-many-statements +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +6,10 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys -from typing import Any, Callable, Dict, Iterator, Optional, Type, TypeVar, Union, cast +from collections.abc import MutableMapping +from typing import Any, Callable, Iterator, Optional, TypeVar, Union, cast +from azure.core import PipelineClient from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, @@ -28,14 +29,12 @@ from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models as _models -from .._serialization import Serializer +from .._configuration import ContainerInstanceManagementClientConfiguration +from .._utils.serialization import Deserializer, Serializer -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -47,14 +46,14 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL _url = kwargs.pop( "template_url", "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default", - ) # pylint: disable=line-too-long + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -87,17 +86,19 @@ class SubnetServiceAssociationLinkOperations: models = _models - def __init__(self, *args, **kwargs): + def __init__(self, *args, **kwargs) -> None: input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") def _delete_initial( self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any ) -> Iterator[bytes]: - error_map: MutableMapping[int, Type[HttpResponseError]] = { + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/code_report_swagger.json b/sdk/containerinstance/azure-mgmt-containerinstance/code_report_swagger.json new file mode 100644 index 000000000000..67a5240c5d7b --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/code_report_swagger.json @@ -0,0 +1,17009 @@ +{ + "azure.mgmt.containerinstance": { + "class_nodes": { + "ContainerInstanceManagementClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "container_groups": { + "attr_type": "ContainerGroupsOperations" + }, + "operations": { + "attr_type": "Operations" + }, + "location": { + "attr_type": "LocationOperations" + }, + "containers": { + "attr_type": "ContainersOperations" + }, + "subnet_service_association_link": { + "attr_type": "SubnetServiceAssociationLinkOperations" + }, + "ngroups": { + "attr_type": "NGroupsOperations" + }, + "cg_profiles": { + "attr_type": "CGProfilesOperations" + }, + "cg_profile": { + "attr_type": "CGProfileOperations" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.containerinstance.operations": { + "class_nodes": { + "CGProfileOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "type": "ContainerGroupProfile", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_by_revision_number": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_number": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_all_revisions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "ContainerGroupProfilePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "CGProfilesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerGroupsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "type": "ContainerGroup", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_restart": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_outbound_network_dependencies_endpoints": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "Resource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ContainersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "attach": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "execute_command": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "type": "ContainerExecRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "list_logs": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tail": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "timestamps": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "LocationOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_cached_images": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_capabilities": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_usage": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "NGroupsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "NGroup", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_restart": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "NGroupPatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "Operations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "SubnetServiceAssociationLinkOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "virtual_network_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subnet_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + } + }, + "function_nodes": {} + }, + "azure.mgmt.containerinstance.models": { + "class_nodes": { + "ApiEntityReference": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": "id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ApplicationGateway": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "backend_address_pools": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource": { + "attr_type": "resource" + }, + "backend_address_pools": { + "attr_type": "backend_address_pools" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ApplicationGatewayBackendAddressPool": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource": { + "attr_type": "resource" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AzureFileShareAccessTier": { + "type": "Enum", + "methods": {}, + "properties": { + "COOL": "COOL", + "HOT": "HOT", + "PREMIUM": "PREMIUM", + "TRANSACTION_OPTIMIZED": "TRANSACTION_OPTIMIZED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AzureFileShareAccessType": { + "type": "Enum", + "methods": {}, + "properties": { + "EXCLUSIVE": "EXCLUSIVE", + "SHARED": "SHARED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AzureFileVolume": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "share_name": { + "default": null, + "param_type": "keyword_only" + }, + "storage_account_name": { + "default": null, + "param_type": "keyword_only" + }, + "read_only": { + "default": "none", + "param_type": "keyword_only" + }, + "storage_account_key": { + "default": "none", + "param_type": "keyword_only" + }, + "storage_account_key_reference": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "share_name": { + "attr_type": "share_name" + }, + "read_only": { + "attr_type": "read_only" + }, + "storage_account_name": { + "attr_type": "storage_account_name" + }, + "storage_account_key": { + "attr_type": "storage_account_key" + }, + "storage_account_key_reference": { + "attr_type": "storage_account_key_reference" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CachedImages": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "os_type": { + "default": null, + "param_type": "keyword_only" + }, + "image": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "os_type": { + "attr_type": "os_type" + }, + "image": { + "attr_type": "image" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CachedImagesListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Capabilities": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource_type": { + "attr_type": null + }, + "os_type": { + "attr_type": null + }, + "location": { + "attr_type": null + }, + "ip_address_type": { + "attr_type": null + }, + "gpu": { + "attr_type": null + }, + "capabilities": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CapabilitiesCapabilities": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "max_memory_in_gb": { + "attr_type": null + }, + "max_cpu": { + "attr_type": null + }, + "max_gpu_count": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CapabilitiesListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CloudErrorBody": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "code": { + "default": "none", + "param_type": "keyword_only" + }, + "message": { + "default": "none", + "param_type": "keyword_only" + }, + "target": { + "default": "none", + "param_type": "keyword_only" + }, + "details": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": "code" + }, + "message": { + "attr_type": "message" + }, + "target": { + "attr_type": "target" + }, + "details": { + "attr_type": "details" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConfidentialComputeProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "cce_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "cce_policy": { + "attr_type": "cce_policy" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConfigMap": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_value_pairs": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "key_value_pairs": { + "attr_type": "key_value_pairs" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Container": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "image": { + "default": "none", + "param_type": "keyword_only" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "ports": { + "default": "none", + "param_type": "keyword_only" + }, + "environment_variables": { + "default": "none", + "param_type": "keyword_only" + }, + "resources": { + "default": "none", + "param_type": "keyword_only" + }, + "volume_mounts": { + "default": "none", + "param_type": "keyword_only" + }, + "liveness_probe": { + "default": "none", + "param_type": "keyword_only" + }, + "readiness_probe": { + "default": "none", + "param_type": "keyword_only" + }, + "security_context": { + "default": "none", + "param_type": "keyword_only" + }, + "config_map": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "image": { + "attr_type": "image" + }, + "command": { + "attr_type": "command" + }, + "ports": { + "attr_type": "ports" + }, + "environment_variables": { + "attr_type": "environment_variables" + }, + "instance_view": { + "attr_type": null + }, + "resources": { + "attr_type": "resources" + }, + "volume_mounts": { + "attr_type": "volume_mounts" + }, + "liveness_probe": { + "attr_type": "liveness_probe" + }, + "readiness_probe": { + "attr_type": "readiness_probe" + }, + "security_context": { + "attr_type": "security_context" + }, + "config_map": { + "attr_type": "config_map" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerAttachResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "web_socket_uri": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "web_socket_uri": { + "attr_type": "web_socket_uri" + }, + "password": { + "attr_type": "password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerExec": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "command": { + "attr_type": "command" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerExecRequest": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "terminal_size": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "command": { + "attr_type": "command" + }, + "terminal_size": { + "attr_type": "terminal_size" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerExecRequestTerminalSize": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "rows": { + "default": "none", + "param_type": "keyword_only" + }, + "cols": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "rows": { + "attr_type": "rows" + }, + "cols": { + "attr_type": "cols" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerExecResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "web_socket_uri": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "web_socket_uri": { + "attr_type": "web_socket_uri" + }, + "password": { + "attr_type": "password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroup": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "secret_references": { + "default": "none", + "param_type": "keyword_only" + }, + "image_registry_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "restart_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "ip_address": { + "default": "none", + "param_type": "keyword_only" + }, + "os_type": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "diagnostics": { + "default": "none", + "param_type": "keyword_only" + }, + "subnet_ids": { + "default": "none", + "param_type": "keyword_only" + }, + "dns_config": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "encryption_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "extensions": { + "default": "none", + "param_type": "keyword_only" + }, + "confidential_compute_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "priority": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_acls": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "standby_pool_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "zones": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "provisioning_state": { + "attr_type": null + }, + "secret_references": { + "attr_type": "secret_references" + }, + "containers": { + "attr_type": "containers" + }, + "image_registry_credentials": { + "attr_type": "image_registry_credentials" + }, + "restart_policy": { + "attr_type": "restart_policy" + }, + "ip_address": { + "attr_type": "ip_address" + }, + "os_type": { + "attr_type": "os_type" + }, + "volumes": { + "attr_type": "volumes" + }, + "instance_view": { + "attr_type": null + }, + "diagnostics": { + "attr_type": "diagnostics" + }, + "subnet_ids": { + "attr_type": "subnet_ids" + }, + "dns_config": { + "attr_type": "dns_config" + }, + "sku": { + "attr_type": "sku" + }, + "encryption_properties": { + "attr_type": "encryption_properties" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "extensions": { + "attr_type": "extensions" + }, + "confidential_compute_properties": { + "attr_type": "confidential_compute_properties" + }, + "priority": { + "attr_type": "priority" + }, + "identity_acls": { + "attr_type": "identity_acls" + }, + "container_group_profile": { + "attr_type": "container_group_profile" + }, + "standby_pool_profile": { + "attr_type": "standby_pool_profile" + }, + "is_created_from_standby_pool": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "zones": { + "attr_type": "zones" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupDiagnostics": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "log_analytics": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "log_analytics": { + "attr_type": "log_analytics" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "user_assigned_identities": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": { + "attr_type": null + }, + "tenant_id": { + "attr_type": null + }, + "type": { + "attr_type": "type" + }, + "user_assigned_identities": { + "attr_type": "user_assigned_identities" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupIpAddressType": { + "type": "Enum", + "methods": {}, + "properties": { + "PRIVATE": "PRIVATE", + "PUBLIC": "PUBLIC", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupNetworkProtocol": { + "type": "Enum", + "methods": {}, + "properties": { + "TCP": "TCP", + "UDP": "UDP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupPriority": { + "type": "Enum", + "methods": {}, + "properties": { + "REGULAR": "REGULAR", + "SPOT": "SPOT", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "zones": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "encryption_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "extensions": { + "default": "none", + "param_type": "keyword_only" + }, + "image_registry_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "restart_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "shutdown_grace_period": { + "default": "none", + "param_type": "keyword_only" + }, + "ip_address": { + "default": "none", + "param_type": "keyword_only" + }, + "time_to_live": { + "default": "none", + "param_type": "keyword_only" + }, + "os_type": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "diagnostics": { + "default": "none", + "param_type": "keyword_only" + }, + "priority": { + "default": "none", + "param_type": "keyword_only" + }, + "confidential_compute_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "security_context": { + "default": "none", + "param_type": "keyword_only" + }, + "use_krypton": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "system_data": { + "attr_type": null + }, + "sku": { + "attr_type": "sku" + }, + "encryption_properties": { + "attr_type": "encryption_properties" + }, + "containers": { + "attr_type": "containers" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "extensions": { + "attr_type": "extensions" + }, + "image_registry_credentials": { + "attr_type": "image_registry_credentials" + }, + "restart_policy": { + "attr_type": "restart_policy" + }, + "shutdown_grace_period": { + "attr_type": "shutdown_grace_period" + }, + "ip_address": { + "attr_type": "ip_address" + }, + "time_to_live": { + "attr_type": "time_to_live" + }, + "os_type": { + "attr_type": "os_type" + }, + "volumes": { + "attr_type": "volumes" + }, + "diagnostics": { + "attr_type": "diagnostics" + }, + "priority": { + "attr_type": "priority" + }, + "confidential_compute_properties": { + "attr_type": "confidential_compute_properties" + }, + "security_context": { + "attr_type": "security_context" + }, + "revision": { + "attr_type": null + }, + "registered_revisions": { + "attr_type": null + }, + "use_krypton": { + "attr_type": "use_krypton" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "zones": { + "attr_type": "zones" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupProfileListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupProfilePatch": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupProfileReferenceDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "revision": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": "id" + }, + "revision": { + "attr_type": "revision" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupProfileStub": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "revision": { + "default": "none", + "param_type": "keyword_only" + }, + "network_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "storage_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource": { + "attr_type": "resource" + }, + "revision": { + "attr_type": "revision" + }, + "network_profile": { + "attr_type": "network_profile" + }, + "storage_profile": { + "attr_type": "storage_profile" + }, + "container_group_properties": { + "attr_type": "container_group_properties" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "secret_references": { + "default": "none", + "param_type": "keyword_only" + }, + "image_registry_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "restart_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "ip_address": { + "default": "none", + "param_type": "keyword_only" + }, + "os_type": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "diagnostics": { + "default": "none", + "param_type": "keyword_only" + }, + "subnet_ids": { + "default": "none", + "param_type": "keyword_only" + }, + "dns_config": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "encryption_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "extensions": { + "default": "none", + "param_type": "keyword_only" + }, + "confidential_compute_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "priority": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_acls": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "standby_pool_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "provisioning_state": { + "attr_type": null + }, + "secret_references": { + "attr_type": "secret_references" + }, + "containers": { + "attr_type": "containers" + }, + "image_registry_credentials": { + "attr_type": "image_registry_credentials" + }, + "restart_policy": { + "attr_type": "restart_policy" + }, + "ip_address": { + "attr_type": "ip_address" + }, + "os_type": { + "attr_type": "os_type" + }, + "volumes": { + "attr_type": "volumes" + }, + "instance_view": { + "attr_type": null + }, + "diagnostics": { + "attr_type": "diagnostics" + }, + "subnet_ids": { + "attr_type": "subnet_ids" + }, + "dns_config": { + "attr_type": "dns_config" + }, + "sku": { + "attr_type": "sku" + }, + "encryption_properties": { + "attr_type": "encryption_properties" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "extensions": { + "attr_type": "extensions" + }, + "confidential_compute_properties": { + "attr_type": "confidential_compute_properties" + }, + "priority": { + "attr_type": "priority" + }, + "identity_acls": { + "attr_type": "identity_acls" + }, + "container_group_profile": { + "attr_type": "container_group_profile" + }, + "standby_pool_profile": { + "attr_type": "standby_pool_profile" + }, + "is_created_from_standby_pool": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupPropertiesInstanceView": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "events": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCEPTED": "ACCEPTED", + "CANCELED": "CANCELED", + "CREATING": "CREATING", + "DELETING": "DELETING", + "FAILED": "FAILED", + "NOT_ACCESSIBLE": "NOT_ACCESSIBLE", + "NOT_SPECIFIED": "NOT_SPECIFIED", + "PENDING": "PENDING", + "PRE_PROVISIONED": "PRE_PROVISIONED", + "REPAIRING": "REPAIRING", + "SUCCEEDED": "SUCCEEDED", + "UNHEALTHY": "UNHEALTHY", + "UPDATING": "UPDATING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupRestartPolicy": { + "type": "Enum", + "methods": {}, + "properties": { + "ALWAYS": "ALWAYS", + "NEVER": "NEVER", + "ON_FAILURE": "ON_FAILURE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupSku": { + "type": "Enum", + "methods": {}, + "properties": { + "CONFIDENTIAL": "CONFIDENTIAL", + "DEDICATED": "DEDICATED", + "NOT_SPECIFIED": "NOT_SPECIFIED", + "STANDARD": "STANDARD", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupSubnetId": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "default": null, + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": "id" + }, + "name": { + "attr_type": "name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerHttpGet": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "default": null, + "param_type": "keyword_only" + }, + "path": { + "default": "none", + "param_type": "keyword_only" + }, + "scheme": { + "default": "none", + "param_type": "keyword_only" + }, + "http_headers": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "path": { + "attr_type": "path" + }, + "port": { + "attr_type": "port" + }, + "scheme": { + "attr_type": "scheme" + }, + "http_headers": { + "attr_type": "http_headers" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerInstanceOperationsOrigin": { + "type": "Enum", + "methods": {}, + "properties": { + "SYSTEM": "SYSTEM", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerNetworkProtocol": { + "type": "Enum", + "methods": {}, + "properties": { + "TCP": "TCP", + "UDP": "UDP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerPort": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "default": null, + "param_type": "keyword_only" + }, + "protocol": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "protocol": { + "attr_type": "protocol" + }, + "port": { + "attr_type": "port" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerProbe": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exec_property": { + "default": "none", + "param_type": "keyword_only" + }, + "http_get": { + "default": "none", + "param_type": "keyword_only" + }, + "initial_delay_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "period_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "failure_threshold": { + "default": "none", + "param_type": "keyword_only" + }, + "success_threshold": { + "default": "none", + "param_type": "keyword_only" + }, + "timeout_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "exec_property": { + "attr_type": "exec_property" + }, + "http_get": { + "attr_type": "http_get" + }, + "initial_delay_seconds": { + "attr_type": "initial_delay_seconds" + }, + "period_seconds": { + "attr_type": "period_seconds" + }, + "failure_threshold": { + "attr_type": "failure_threshold" + }, + "success_threshold": { + "attr_type": "success_threshold" + }, + "timeout_seconds": { + "attr_type": "timeout_seconds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerPropertiesInstanceView": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "restart_count": { + "attr_type": null + }, + "current_state": { + "attr_type": null + }, + "previous_state": { + "attr_type": null + }, + "events": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerState": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "state": { + "attr_type": null + }, + "start_time": { + "attr_type": null + }, + "exit_code": { + "attr_type": null + }, + "finish_time": { + "attr_type": null + }, + "detail_status": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CreatedByType": { + "type": "Enum", + "methods": {}, + "properties": { + "APPLICATION": "APPLICATION", + "KEY": "KEY", + "MANAGED_IDENTITY": "MANAGED_IDENTITY", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DeploymentExtensionSpec": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "extension_type": { + "default": "none", + "param_type": "keyword_only" + }, + "version": { + "default": "none", + "param_type": "keyword_only" + }, + "settings": { + "default": "none", + "param_type": "keyword_only" + }, + "protected_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "extension_type": { + "attr_type": "extension_type" + }, + "version": { + "attr_type": "version" + }, + "settings": { + "attr_type": "settings" + }, + "protected_settings": { + "attr_type": "protected_settings" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DnsConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name_servers": { + "default": null, + "param_type": "keyword_only" + }, + "search_domains": { + "default": "none", + "param_type": "keyword_only" + }, + "options": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name_servers": { + "attr_type": "name_servers" + }, + "search_domains": { + "attr_type": "search_domains" + }, + "options": { + "attr_type": "options" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DnsNameLabelReusePolicy": { + "type": "Enum", + "methods": {}, + "properties": { + "NOREUSE": "NOREUSE", + "RESOURCE_GROUP_REUSE": "RESOURCE_GROUP_REUSE", + "SUBSCRIPTION_REUSE": "SUBSCRIPTION_REUSE", + "TENANT_REUSE": "TENANT_REUSE", + "UNSECURE": "UNSECURE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ElasticProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "desired_count": { + "default": "none", + "param_type": "keyword_only" + }, + "maintain_desired_count": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_naming_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "desired_count": { + "attr_type": "desired_count" + }, + "maintain_desired_count": { + "attr_type": "maintain_desired_count" + }, + "container_group_naming_policy": { + "attr_type": "container_group_naming_policy" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ElasticProfileContainerGroupNamingPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "guid_naming_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "guid_naming_policy": { + "attr_type": "guid_naming_policy" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "prefix": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "prefix": { + "attr_type": "prefix" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "EncryptionProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "vault_base_url": { + "default": null, + "param_type": "keyword_only" + }, + "key_name": { + "default": null, + "param_type": "keyword_only" + }, + "key_version": { + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "vault_base_url": { + "attr_type": "vault_base_url" + }, + "key_name": { + "attr_type": "key_name" + }, + "key_version": { + "attr_type": "key_version" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "EnvironmentVariable": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "secure_value": { + "default": "none", + "param_type": "keyword_only" + }, + "secure_value_reference": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "secure_value": { + "attr_type": "secure_value" + }, + "secure_value_reference": { + "attr_type": "secure_value_reference" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorAdditionalInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": null + }, + "info": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorDetail": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "target": { + "attr_type": null + }, + "details": { + "attr_type": null + }, + "additional_info": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "error": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": { + "attr_type": "error" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Event": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "count": { + "attr_type": null + }, + "first_timestamp": { + "attr_type": null + }, + "last_timestamp": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "FileShare": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "resource_group_name": { + "default": "none", + "param_type": "keyword_only" + }, + "storage_account_name": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "resource_group_name": { + "attr_type": "resource_group_name" + }, + "storage_account_name": { + "attr_type": "storage_account_name" + }, + "properties": { + "attr_type": "properties" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "FileShareProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "share_access_type": { + "default": "none", + "param_type": "keyword_only" + }, + "share_access_tier": { + "default": "str", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "share_access_type": { + "attr_type": "share_access_type" + }, + "share_access_tier": { + "attr_type": "share_access_tier" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GitRepoVolume": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "repository": { + "default": null, + "param_type": "keyword_only" + }, + "directory": { + "default": "none", + "param_type": "keyword_only" + }, + "revision": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "directory": { + "attr_type": "directory" + }, + "repository": { + "attr_type": "repository" + }, + "revision": { + "attr_type": "revision" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GpuResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "count": { + "default": null, + "param_type": "keyword_only" + }, + "sku": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "count": { + "attr_type": "count" + }, + "sku": { + "attr_type": "sku" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GpuSku": { + "type": "Enum", + "methods": {}, + "properties": { + "K80": "K80", + "P100": "P100", + "V100": "V100", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "HttpHeader": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IdentityAccessControl": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "access": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "access": { + "attr_type": "access" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IdentityAccessLevel": { + "type": "Enum", + "methods": {}, + "properties": { + "ALL": "ALL", + "SYSTEM": "SYSTEM", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "IdentityAcls": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default_access": { + "default": "none", + "param_type": "keyword_only" + }, + "acls": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "default_access": { + "attr_type": "default_access" + }, + "acls": { + "attr_type": "acls" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ImageRegistryCredential": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "server": { + "default": null, + "param_type": "keyword_only" + }, + "username": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "password_reference": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_url": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server": { + "attr_type": "server" + }, + "username": { + "attr_type": "username" + }, + "password": { + "attr_type": "password" + }, + "password_reference": { + "attr_type": "password_reference" + }, + "identity": { + "attr_type": "identity" + }, + "identity_url": { + "attr_type": "identity_url" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "InitContainerDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "image": { + "default": "none", + "param_type": "keyword_only" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "environment_variables": { + "default": "none", + "param_type": "keyword_only" + }, + "volume_mounts": { + "default": "none", + "param_type": "keyword_only" + }, + "security_context": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "image": { + "attr_type": "image" + }, + "command": { + "attr_type": "command" + }, + "environment_variables": { + "attr_type": "environment_variables" + }, + "instance_view": { + "attr_type": null + }, + "volume_mounts": { + "attr_type": "volume_mounts" + }, + "security_context": { + "attr_type": "security_context" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "InitContainerPropertiesDefinitionInstanceView": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "restart_count": { + "attr_type": null + }, + "current_state": { + "attr_type": null + }, + "previous_state": { + "attr_type": null + }, + "events": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IpAddress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ports": { + "default": null, + "param_type": "keyword_only" + }, + "type": { + "default": null, + "param_type": "keyword_only" + }, + "ip": { + "default": "none", + "param_type": "keyword_only" + }, + "dns_name_label": { + "default": "none", + "param_type": "keyword_only" + }, + "auto_generated_domain_name_label_scope": { + "default": "str", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "ports": { + "attr_type": "ports" + }, + "type": { + "attr_type": "type" + }, + "ip": { + "attr_type": "ip" + }, + "dns_name_label": { + "attr_type": "dns_name_label" + }, + "auto_generated_domain_name_label_scope": { + "attr_type": "auto_generated_domain_name_label_scope" + }, + "fqdn": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ListResultContainerGroup": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "default": null, + "param_type": "keyword_only" + }, + "os_type": { + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "secret_references": { + "default": "none", + "param_type": "keyword_only" + }, + "image_registry_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "restart_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "ip_address": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "diagnostics": { + "default": "none", + "param_type": "keyword_only" + }, + "subnet_ids": { + "default": "none", + "param_type": "keyword_only" + }, + "dns_config": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "encryption_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "extensions": { + "default": "none", + "param_type": "keyword_only" + }, + "confidential_compute_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "priority": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_acls": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "standby_pool_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "zones": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "provisioning_state": { + "attr_type": null + }, + "secret_references": { + "attr_type": "secret_references" + }, + "containers": { + "attr_type": "containers" + }, + "image_registry_credentials": { + "attr_type": "image_registry_credentials" + }, + "restart_policy": { + "attr_type": "restart_policy" + }, + "ip_address": { + "attr_type": "ip_address" + }, + "os_type": { + "attr_type": "os_type" + }, + "volumes": { + "attr_type": "volumes" + }, + "diagnostics": { + "attr_type": "diagnostics" + }, + "subnet_ids": { + "attr_type": "subnet_ids" + }, + "dns_config": { + "attr_type": "dns_config" + }, + "sku": { + "attr_type": "sku" + }, + "encryption_properties": { + "attr_type": "encryption_properties" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "extensions": { + "attr_type": "extensions" + }, + "confidential_compute_properties": { + "attr_type": "confidential_compute_properties" + }, + "priority": { + "attr_type": "priority" + }, + "identity_acls": { + "attr_type": "identity_acls" + }, + "container_group_profile": { + "attr_type": "container_group_profile" + }, + "standby_pool_profile": { + "attr_type": "standby_pool_profile" + }, + "is_created_from_standby_pool": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "zones": { + "attr_type": "zones" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ListResultContainerGroupProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "default": null, + "param_type": "keyword_only" + }, + "os_type": { + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "secret_references": { + "default": "none", + "param_type": "keyword_only" + }, + "image_registry_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "restart_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "ip_address": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "diagnostics": { + "default": "none", + "param_type": "keyword_only" + }, + "subnet_ids": { + "default": "none", + "param_type": "keyword_only" + }, + "dns_config": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "encryption_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "extensions": { + "default": "none", + "param_type": "keyword_only" + }, + "confidential_compute_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "priority": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_acls": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "standby_pool_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "provisioning_state": { + "attr_type": null + }, + "secret_references": { + "attr_type": "secret_references" + }, + "containers": { + "attr_type": "containers" + }, + "image_registry_credentials": { + "attr_type": "image_registry_credentials" + }, + "restart_policy": { + "attr_type": "restart_policy" + }, + "ip_address": { + "attr_type": "ip_address" + }, + "os_type": { + "attr_type": "os_type" + }, + "volumes": { + "attr_type": "volumes" + }, + "diagnostics": { + "attr_type": "diagnostics" + }, + "subnet_ids": { + "attr_type": "subnet_ids" + }, + "dns_config": { + "attr_type": "dns_config" + }, + "sku": { + "attr_type": "sku" + }, + "encryption_properties": { + "attr_type": "encryption_properties" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "extensions": { + "attr_type": "extensions" + }, + "confidential_compute_properties": { + "attr_type": "confidential_compute_properties" + }, + "priority": { + "attr_type": "priority" + }, + "identity_acls": { + "attr_type": "identity_acls" + }, + "container_group_profile": { + "attr_type": "container_group_profile" + }, + "standby_pool_profile": { + "attr_type": "standby_pool_profile" + }, + "is_created_from_standby_pool": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LoadBalancer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "backend_address_pools": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "backend_address_pools": { + "attr_type": "backend_address_pools" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LoadBalancerBackendAddressPool": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource": { + "attr_type": "resource" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LogAnalytics": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "workspace_id": { + "default": null, + "param_type": "keyword_only" + }, + "workspace_key": { + "default": null, + "param_type": "keyword_only" + }, + "log_type": { + "default": "none", + "param_type": "keyword_only" + }, + "metadata": { + "default": "none", + "param_type": "keyword_only" + }, + "workspace_resource_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "workspace_id": { + "attr_type": "workspace_id" + }, + "workspace_key": { + "attr_type": "workspace_key" + }, + "log_type": { + "attr_type": "log_type" + }, + "metadata": { + "attr_type": "metadata" + }, + "workspace_resource_id": { + "attr_type": "workspace_resource_id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LogAnalyticsLogType": { + "type": "Enum", + "methods": {}, + "properties": { + "CONTAINER_INSIGHTS": "CONTAINER_INSIGHTS", + "CONTAINER_INSTANCE_LOGS": "CONTAINER_INSTANCE_LOGS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Logs": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "content": { + "attr_type": "content" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroup": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "zones": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "elastic_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "placement_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_profiles": { + "default": "none", + "param_type": "keyword_only" + }, + "update_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "system_data": { + "attr_type": null + }, + "identity": { + "attr_type": "identity" + }, + "elastic_profile": { + "attr_type": "elastic_profile" + }, + "placement_profile": { + "attr_type": "placement_profile" + }, + "container_group_profiles": { + "attr_type": "container_group_profiles" + }, + "provisioning_state": { + "attr_type": null + }, + "update_profile": { + "attr_type": "update_profile" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "zones": { + "attr_type": "zones" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupCGPropertyContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "properties": { + "attr_type": "properties" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupCGPropertyContainerProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "volume_mounts": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "volume_mounts": { + "attr_type": "volume_mounts" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupCGPropertyVolume": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "azure_file": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "azure_file": { + "attr_type": "azure_file" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupContainerGroupProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subnet_ids": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "subnet_ids": { + "attr_type": "subnet_ids" + }, + "volumes": { + "attr_type": "volumes" + }, + "containers": { + "attr_type": "containers" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "user_assigned_identities": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": { + "attr_type": null + }, + "tenant_id": { + "attr_type": null + }, + "type": { + "attr_type": "type" + }, + "user_assigned_identities": { + "attr_type": "user_assigned_identities" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupPatch": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "zones": { + "default": "none", + "param_type": "keyword_only" + }, + "elastic_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "placement_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_profiles": { + "default": "none", + "param_type": "keyword_only" + }, + "update_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "system_data": { + "attr_type": null + }, + "identity": { + "attr_type": "identity" + }, + "tags": { + "attr_type": "tags" + }, + "zones": { + "attr_type": "zones" + }, + "elastic_profile": { + "attr_type": "elastic_profile" + }, + "placement_profile": { + "attr_type": "placement_profile" + }, + "container_group_profiles": { + "attr_type": "container_group_profiles" + }, + "provisioning_state": { + "attr_type": null + }, + "update_profile": { + "attr_type": "update_profile" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "CREATING": "CREATING", + "DELETING": "DELETING", + "FAILED": "FAILED", + "MIGRATING": "MIGRATING", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "NGroupSkus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_type": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "sku_capacity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource_type": { + "attr_type": "resource_type" + }, + "sku": { + "attr_type": "sku" + }, + "sku_capacity": { + "attr_type": "sku_capacity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupUpdateMode": { + "type": "Enum", + "methods": {}, + "properties": { + "MANUAL": "MANUAL", + "ROLLING": "ROLLING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "NGroupsListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupsSkusList": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NetworkProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "load_balancer": { + "default": "none", + "param_type": "keyword_only" + }, + "application_gateway": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "load_balancer": { + "attr_type": "load_balancer" + }, + "application_gateway": { + "attr_type": "application_gateway" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OperatingSystemTypes": { + "type": "Enum", + "methods": {}, + "properties": { + "LINUX": "LINUX", + "WINDOWS": "WINDOWS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Operation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "display": { + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "origin": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "display": { + "attr_type": "display" + }, + "properties": { + "attr_type": "properties" + }, + "origin": { + "attr_type": "origin" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OperationDisplay": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "provider": { + "default": "none", + "param_type": "keyword_only" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "operation": { + "default": "none", + "param_type": "keyword_only" + }, + "description": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provider": { + "attr_type": "provider" + }, + "resource": { + "attr_type": "resource" + }, + "operation": { + "attr_type": "operation" + }, + "description": { + "attr_type": "description" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OperationListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PlacementProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "fault_domain_count": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "fault_domain_count": { + "attr_type": "fault_domain_count" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Port": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "default": null, + "param_type": "keyword_only" + }, + "protocol": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "protocol": { + "attr_type": "protocol" + }, + "port": { + "attr_type": "port" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Resource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "zones": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "zones": { + "attr_type": "zones" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceIdentityType": { + "type": "Enum", + "methods": {}, + "properties": { + "NONE": "NONE", + "SYSTEM_ASSIGNED": "SYSTEM_ASSIGNED", + "SYSTEM_ASSIGNED_USER_ASSIGNED": "SYSTEM_ASSIGNED_USER_ASSIGNED", + "USER_ASSIGNED": "USER_ASSIGNED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ResourceLimits": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "memory_in_gb": { + "default": "none", + "param_type": "keyword_only" + }, + "cpu": { + "default": "none", + "param_type": "keyword_only" + }, + "gpu": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "memory_in_gb": { + "attr_type": "memory_in_gb" + }, + "cpu": { + "attr_type": "cpu" + }, + "gpu": { + "attr_type": "gpu" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceRequests": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "memory_in_gb": { + "default": null, + "param_type": "keyword_only" + }, + "cpu": { + "default": null, + "param_type": "keyword_only" + }, + "gpu": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "memory_in_gb": { + "attr_type": "memory_in_gb" + }, + "cpu": { + "attr_type": "cpu" + }, + "gpu": { + "attr_type": "gpu" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceRequirements": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "requests": { + "default": null, + "param_type": "keyword_only" + }, + "limits": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "requests": { + "attr_type": "requests" + }, + "limits": { + "attr_type": "limits" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Scheme": { + "type": "Enum", + "methods": {}, + "properties": { + "HTTP": "HTTP", + "HTTPS": "HTTPS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SecretReference": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "default": null, + "param_type": "keyword_only" + }, + "secret_reference_uri": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "identity": { + "attr_type": "identity" + }, + "secret_reference_uri": { + "attr_type": "secret_reference_uri" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SecurityContextCapabilitiesDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "add": { + "default": "none", + "param_type": "keyword_only" + }, + "drop": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "add": { + "attr_type": "add" + }, + "drop": { + "attr_type": "drop" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SecurityContextDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "privileged": { + "default": "none", + "param_type": "keyword_only" + }, + "allow_privilege_escalation": { + "default": "none", + "param_type": "keyword_only" + }, + "capabilities": { + "default": "none", + "param_type": "keyword_only" + }, + "run_as_group": { + "default": "none", + "param_type": "keyword_only" + }, + "run_as_user": { + "default": "none", + "param_type": "keyword_only" + }, + "seccomp_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "privileged": { + "attr_type": "privileged" + }, + "allow_privilege_escalation": { + "attr_type": "allow_privilege_escalation" + }, + "capabilities": { + "attr_type": "capabilities" + }, + "run_as_group": { + "attr_type": "run_as_group" + }, + "run_as_user": { + "attr_type": "run_as_user" + }, + "seccomp_profile": { + "attr_type": "seccomp_profile" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "StandbyPoolProfileDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "fail_container_group_create_on_reuse_failure": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": "id" + }, + "fail_container_group_create_on_reuse_failure": { + "attr_type": "fail_container_group_create_on_reuse_failure" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "StorageProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_shares": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "file_shares": { + "attr_type": "file_shares" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SystemData": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "created_by": { + "default": "none", + "param_type": "keyword_only" + }, + "created_by_type": { + "default": "none", + "param_type": "keyword_only" + }, + "created_at": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_by": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_by_type": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_at": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_by": { + "attr_type": "created_by" + }, + "created_by_type": { + "attr_type": "created_by_type" + }, + "created_at": { + "attr_type": "created_at" + }, + "last_modified_by": { + "attr_type": "last_modified_by" + }, + "last_modified_by_type": { + "attr_type": "last_modified_by_type" + }, + "last_modified_at": { + "attr_type": "last_modified_at" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UpdateProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "update_mode": { + "default": "none", + "param_type": "keyword_only" + }, + "rolling_update_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "update_mode": { + "attr_type": "update_mode" + }, + "rolling_update_profile": { + "attr_type": "rolling_update_profile" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UpdateProfileRollingUpdateProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "max_batch_percent": { + "default": "none", + "param_type": "keyword_only" + }, + "max_unhealthy_percent": { + "default": "none", + "param_type": "keyword_only" + }, + "pause_time_between_batches": { + "default": "none", + "param_type": "keyword_only" + }, + "in_place_update": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "max_batch_percent": { + "attr_type": "max_batch_percent" + }, + "max_unhealthy_percent": { + "attr_type": "max_unhealthy_percent" + }, + "pause_time_between_batches": { + "attr_type": "pause_time_between_batches" + }, + "in_place_update": { + "attr_type": "in_place_update" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Usage": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "unit": { + "attr_type": null + }, + "current_value": { + "attr_type": null + }, + "limit": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UsageListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UsageName": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": null + }, + "localized_value": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UserAssignedIdentities": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": { + "attr_type": null + }, + "client_id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Volume": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "azure_file": { + "default": "none", + "param_type": "keyword_only" + }, + "empty_dir": { + "default": "none", + "param_type": "keyword_only" + }, + "secret": { + "default": "none", + "param_type": "keyword_only" + }, + "secret_reference": { + "default": "none", + "param_type": "keyword_only" + }, + "git_repo": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "azure_file": { + "attr_type": "azure_file" + }, + "empty_dir": { + "attr_type": "empty_dir" + }, + "secret": { + "attr_type": "secret" + }, + "secret_reference": { + "attr_type": "secret_reference" + }, + "git_repo": { + "attr_type": "git_repo" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "VolumeMount": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "mount_path": { + "default": null, + "param_type": "keyword_only" + }, + "read_only": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "mount_path": { + "attr_type": "mount_path" + }, + "read_only": { + "attr_type": "read_only" + }, + "additional_properties": { + "attr_type": null + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.containerinstance.aio": { + "class_nodes": { + "ContainerInstanceManagementClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "container_groups": { + "attr_type": "ContainerGroupsOperations" + }, + "operations": { + "attr_type": "Operations" + }, + "location": { + "attr_type": "LocationOperations" + }, + "containers": { + "attr_type": "ContainersOperations" + }, + "subnet_service_association_link": { + "attr_type": "SubnetServiceAssociationLinkOperations" + }, + "ngroups": { + "attr_type": "NGroupsOperations" + }, + "cg_profiles": { + "attr_type": "CGProfilesOperations" + }, + "cg_profile": { + "attr_type": "CGProfileOperations" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.containerinstance.aio.operations": { + "class_nodes": { + "CGProfileOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "type": "ContainerGroupProfile", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_by_revision_number": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_number": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_all_revisions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "ContainerGroupProfilePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "CGProfilesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerGroupsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "type": "ContainerGroup", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_restart": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_outbound_network_dependencies_endpoints": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "Resource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ContainersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "attach": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "execute_command": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "type": "ContainerExecRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "list_logs": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tail": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "timestamps": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "LocationOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_cached_images": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_capabilities": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_usage": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "NGroupsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "NGroup", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_restart": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "NGroupPatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "Operations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "SubnetServiceAssociationLinkOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "virtual_network_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subnet_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + } + }, + "function_nodes": {} + } +} \ No newline at end of file diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/cached_images_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/cached_images_list.py index f111cbec9718..aafe56fd3685 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/cached_images_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/cached_images_list.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -37,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/CachedImagesList.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/CachedImagesList.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py index c62ac513402f..c55dc853a6e4 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -37,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/CapabilitiesList.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/CapabilitiesList.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py index b7a778451025..a7a001b071fc 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -38,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerAttach.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerAttach.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py index 8bde95f563ef..b1f9635ba3c5 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -39,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerExec.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerExec.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_confidential.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_confidential.py index 8595e0e0f8cc..1269b41e20df 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_confidential.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_confidential.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -62,6 +63,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupCreateConfidential.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupCreateConfidential.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_or_update_standby_pool.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_or_update_standby_pool.py index 9995a99cedea..3ef0b721255c 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_or_update_standby_pool.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_or_update_standby_pool.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -50,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupCreateOrUpdateStandbyPool.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupCreateOrUpdateStandbyPool.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_encryption_properties.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_encryption_properties.py index b912076f1e40..8d467d75edf2 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_encryption_properties.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_encryption_properties.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -69,6 +70,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupEncryptionProperties.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupEncryptionProperties.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_extensions.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_extensions.py index c2715df00e72..96bbd45ca1eb 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_extensions.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_extensions.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -77,6 +78,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupExtensions.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupExtensions.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_create_confidential.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_create_confidential.py index 7b92f39dad8a..fe43b50086a0 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_create_confidential.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_create_confidential.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -30,39 +31,220 @@ def main(): subscription_id="00000000-0000-0000-0000-000000000000", ) - response = client.container_group_profiles.create_or_update( + response = client.cg_profile.create_or_update( resource_group_name="demo", container_group_profile_name="demo1", container_group_profile={ - "location": "westeurope", - "properties": { - "confidentialComputeProperties": { - "ccePolicy": "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19" - }, - "containers": [ - { - "name": "accdemo", - "properties": { - "command": [], - "environmentVariables": [], - "image": "confiimage", - "ports": [{"port": 8000}], - "resources": {"requests": {"cpu": 1, "memoryInGB": 1.5}}, - "securityContext": {"capabilities": {"add": ["CAP_NET_ADMIN"]}, "privileged": False}, + "confidentialComputeProperties": {"ccePolicy": "str"}, + "containers": [ + { + "name": "str", + "command": ["str"], + "configMap": {"keyValuePairs": {"str": "str"}}, + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", }, - } - ], - "imageRegistryCredentials": [], - "ipAddress": {"ports": [{"port": 8000, "protocol": "TCP"}], "type": "Public"}, - "osType": "Linux", - "sku": "Confidential", + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "livenessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "ports": [{"port": 0, "protocol": "str"}], + "readinessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "resources": { + "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, + "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + } + ], + "diagnostics": { + "logAnalytics": { + "workspaceId": "str", + "workspaceKey": "str", + "logType": "str", + "metadata": {"str": "str"}, + "workspaceResourceId": "str", + } + }, + "encryptionProperties": {"keyName": "str", "keyVersion": "str", "vaultBaseUrl": "str", "identity": "str"}, + "extensions": [ + {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} + ], + "id": "str", + "imageRegistryCredentials": [ + { + "server": "str", + "identity": "str", + "identityUrl": "str", + "password": "str", + "passwordReference": "str", + "username": "str", + } + ], + "initContainers": [ + { + "name": "str", + "command": ["str"], + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + } + ], + "ipAddress": { + "ports": [{"port": 0, "protocol": "str"}], + "type": "str", + "autoGeneratedDomainNameLabelScope": "Unsecure", + "dnsNameLabel": "str", + "fqdn": "str", + "ip": "str", + }, + "location": "str", + "name": "str", + "osType": "str", + "priority": "str", + "registeredRevisions": [0], + "restartPolicy": "str", + "revision": 0, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "shutdownGracePeriod": "2020-02-20 00:00:00", + "sku": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", }, - "zones": ["1"], + "tags": {"str": "str"}, + "timeToLive": "2020-02-20 00:00:00", + "type": "str", + "useKrypton": bool, + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + "emptyDir": {}, + "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, + "secret": {"str": "str"}, + "secretReference": {"str": "str"}, + } + ], + "zones": ["str"], }, ) print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupProfileCreateOrUpdate_CreateConfidential.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfileCreateOrUpdate_CreateConfidential.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_encryption_properties.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_encryption_properties.py index ec7389df39d0..044a30a5a6c5 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_encryption_properties.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_encryption_properties.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -30,40 +31,220 @@ def main(): subscription_id="00000000-0000-0000-0000-000000000000", ) - response = client.container_group_profiles.create_or_update( + response = client.cg_profile.create_or_update( resource_group_name="demo", container_group_profile_name="demo1", container_group_profile={ - "location": "eastus2", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [{"port": 80}], - "resources": {"requests": {"cpu": 1, "memoryInGB": 1.5}}, + "confidentialComputeProperties": {"ccePolicy": "str"}, + "containers": [ + { + "name": "str", + "command": ["str"], + "configMap": {"keyValuePairs": {"str": "str"}}, + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", }, - } - ], - "encryptionProperties": { - "identity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity", - "keyName": "test-key", - "keyVersion": "", - "vaultBaseUrl": "https://testkeyvault.vault.azure.net", - }, - "imageRegistryCredentials": [], - "ipAddress": {"ports": [{"port": 80, "protocol": "TCP"}], "type": "Public"}, - "osType": "Linux", + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "livenessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "ports": [{"port": 0, "protocol": "str"}], + "readinessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "resources": { + "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, + "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + } + ], + "diagnostics": { + "logAnalytics": { + "workspaceId": "str", + "workspaceKey": "str", + "logType": "str", + "metadata": {"str": "str"}, + "workspaceResourceId": "str", + } + }, + "encryptionProperties": {"keyName": "str", "keyVersion": "str", "vaultBaseUrl": "str", "identity": "str"}, + "extensions": [ + {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} + ], + "id": "str", + "imageRegistryCredentials": [ + { + "server": "str", + "identity": "str", + "identityUrl": "str", + "password": "str", + "passwordReference": "str", + "username": "str", + } + ], + "initContainers": [ + { + "name": "str", + "command": ["str"], + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + } + ], + "ipAddress": { + "ports": [{"port": 0, "protocol": "str"}], + "type": "str", + "autoGeneratedDomainNameLabelScope": "Unsecure", + "dnsNameLabel": "str", + "fqdn": "str", + "ip": "str", + }, + "location": "str", + "name": "str", + "osType": "str", + "priority": "str", + "registeredRevisions": [0], + "restartPolicy": "str", + "revision": 0, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "shutdownGracePeriod": "2020-02-20 00:00:00", + "sku": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", }, - "zones": ["1"], + "tags": {"str": "str"}, + "timeToLive": "2020-02-20 00:00:00", + "type": "str", + "useKrypton": bool, + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + "emptyDir": {}, + "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, + "secret": {"str": "str"}, + "secretReference": {"str": "str"}, + } + ], + "zones": ["str"], }, ) print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupProfileCreateOrUpdate_EncryptionProperties.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfileCreateOrUpdate_EncryptionProperties.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_extensions.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_extensions.py index acf5e175be98..867af407a904 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_extensions.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_extensions.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -30,49 +31,220 @@ def main(): subscription_id="00000000-0000-0000-0000-000000000000", ) - response = client.container_group_profiles.create_or_update( + response = client.cg_profile.create_or_update( resource_group_name="demo", container_group_profile_name="demo1", container_group_profile={ - "location": "eastus2", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [{"port": 80}], - "resources": {"requests": {"cpu": 1, "memoryInGB": 1.5}}, + "confidentialComputeProperties": {"ccePolicy": "str"}, + "containers": [ + { + "name": "str", + "command": ["str"], + "configMap": {"keyValuePairs": {"str": "str"}}, + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", }, - } - ], - "extensions": [ - { - "name": "kube-proxy", - "properties": { - "extensionType": "kube-proxy", - "protectedSettings": {"kubeConfig": ""}, - "settings": {"clusterCidr": "10.240.0.0/16", "kubeVersion": "v1.9.10"}, - "version": "1.0", + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", }, + "restartCount": 0, }, - { - "name": "vk-realtime-metrics", - "properties": {"extensionType": "realtime-metrics", "version": "1.0"}, + "livenessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "ports": [{"port": 0, "protocol": "str"}], + "readinessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "resources": { + "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, + "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, }, - ], - "imageRegistryCredentials": [], - "ipAddress": {"ports": [{"port": 80, "protocol": "TCP"}], "type": "Private"}, - "osType": "Linux", + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + } + ], + "diagnostics": { + "logAnalytics": { + "workspaceId": "str", + "workspaceKey": "str", + "logType": "str", + "metadata": {"str": "str"}, + "workspaceResourceId": "str", + } }, - "zones": ["1"], + "encryptionProperties": {"keyName": "str", "keyVersion": "str", "vaultBaseUrl": "str", "identity": "str"}, + "extensions": [ + {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} + ], + "id": "str", + "imageRegistryCredentials": [ + { + "server": "str", + "identity": "str", + "identityUrl": "str", + "password": "str", + "passwordReference": "str", + "username": "str", + } + ], + "initContainers": [ + { + "name": "str", + "command": ["str"], + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + } + ], + "ipAddress": { + "ports": [{"port": 0, "protocol": "str"}], + "type": "str", + "autoGeneratedDomainNameLabelScope": "Unsecure", + "dnsNameLabel": "str", + "fqdn": "str", + "ip": "str", + }, + "location": "str", + "name": "str", + "osType": "str", + "priority": "str", + "registeredRevisions": [0], + "restartPolicy": "str", + "revision": 0, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "shutdownGracePeriod": "2020-02-20 00:00:00", + "sku": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "timeToLive": "2020-02-20 00:00:00", + "type": "str", + "useKrypton": bool, + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + "emptyDir": {}, + "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, + "secret": {"str": "str"}, + "secretReference": {"str": "str"}, + } + ], + "zones": ["str"], }, ) print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupProfileCreateOrUpdate_Extensions.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfileCreateOrUpdate_Extensions.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_get_by_revision_number.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_get_by_revision_number.py index c32a0dd2f7df..42a297be1b78 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_get_by_revision_number.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_get_by_revision_number.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -30,7 +31,7 @@ def main(): subscription_id="00000000-0000-0000-0000-000000000000", ) - response = client.container_group_profile.get_by_revision_number( + response = client.cg_profile.get_by_revision_number( resource_group_name="demo", container_group_profile_name="demo1", revision_number="1", @@ -38,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupProfileGetByRevisionNumber.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfileGetByRevisionNumber.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_list_all_revisions.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_list_all_revisions.py index af8ac8248b1e..74d0a42c69e4 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_list_all_revisions.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_list_all_revisions.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -30,7 +31,7 @@ def main(): subscription_id="00000000-0000-0000-0000-000000000000", ) - response = client.container_group_profile.list_all_revisions( + response = client.cg_profile.list_all_revisions( resource_group_name="demo", container_group_profile_name="demo1", ) @@ -38,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupProfileListAllRevisions.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfileListAllRevisions.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_create_or_update.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_create_or_update.py index 79a9668b4f80..2323e0c2e3a7 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_create_or_update.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_create_or_update.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -30,63 +31,220 @@ def main(): subscription_id="00000000-0000-0000-0000-000000000000", ) - response = client.container_group_profiles.create_or_update( + response = client.cg_profile.create_or_update( resource_group_name="demo", container_group_profile_name="demo1", container_group_profile={ - "location": "west us", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [{"port": 80}], - "resources": {"requests": {"cpu": 1, "gpu": {"count": 1, "sku": "K80"}, "memoryInGB": 1.5}}, - "volumeMounts": [ - {"mountPath": "/mnt/volume1", "name": "volume1", "readOnly": False}, - {"mountPath": "/mnt/volume2", "name": "volume2", "readOnly": False}, - {"mountPath": "/mnt/volume3", "name": "volume3", "readOnly": True}, - ], + "confidentialComputeProperties": {"ccePolicy": "str"}, + "containers": [ + { + "name": "str", + "command": ["str"], + "configMap": {"keyValuePairs": {"str": "str"}}, + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", }, - } - ], - "diagnostics": { - "logAnalytics": { - "logType": "ContainerInsights", - "metadata": {"pod-uuid": "test-metadata-value"}, - "workspaceId": "workspaceid", - "workspaceKey": "workspaceKey", - "workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/microsoft.operationalinsights/workspaces/workspace", - } - }, - "imageRegistryCredentials": [], - "ipAddress": {"ports": [{"port": 80, "protocol": "TCP"}], "type": "Public"}, - "osType": "Linux", - "volumes": [ - { - "azureFile": { - "shareName": "shareName", - "storageAccountKey": "accountKey", - "storageAccountName": "accountName", + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", }, - "name": "volume1", + "restartCount": 0, }, - {"emptyDir": {}, "name": "volume2"}, - { - "name": "volume3", - "secret": {"secretKey1": "SecretValue1InBase64", "secretKey2": "SecretValue2InBase64"}, + "livenessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "ports": [{"port": 0, "protocol": "str"}], + "readinessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "resources": { + "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, + "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, }, - ], + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + } + ], + "diagnostics": { + "logAnalytics": { + "workspaceId": "str", + "workspaceKey": "str", + "logType": "str", + "metadata": {"str": "str"}, + "workspaceResourceId": "str", + } }, - "zones": ["1"], + "encryptionProperties": {"keyName": "str", "keyVersion": "str", "vaultBaseUrl": "str", "identity": "str"}, + "extensions": [ + {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} + ], + "id": "str", + "imageRegistryCredentials": [ + { + "server": "str", + "identity": "str", + "identityUrl": "str", + "password": "str", + "passwordReference": "str", + "username": "str", + } + ], + "initContainers": [ + { + "name": "str", + "command": ["str"], + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + } + ], + "ipAddress": { + "ports": [{"port": 0, "protocol": "str"}], + "type": "str", + "autoGeneratedDomainNameLabelScope": "Unsecure", + "dnsNameLabel": "str", + "fqdn": "str", + "ip": "str", + }, + "location": "str", + "name": "str", + "osType": "str", + "priority": "str", + "registeredRevisions": [0], + "restartPolicy": "str", + "revision": 0, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "shutdownGracePeriod": "2020-02-20 00:00:00", + "sku": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "timeToLive": "2020-02-20 00:00:00", + "type": "str", + "useKrypton": bool, + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + "emptyDir": {}, + "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, + "secret": {"str": "str"}, + "secretReference": {"str": "str"}, + } + ], + "zones": ["str"], }, ) print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupProfilesCreateOrUpdate.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_delete.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_delete.py index 6d6b02fbfe75..6d8562499041 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_delete.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_delete.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -30,12 +31,12 @@ def main(): subscription_id="00000000-0000-0000-0000-000000000000", ) - client.container_group_profiles.delete( + client.cg_profile.delete( resource_group_name="demo", container_group_profile_name="demo1", ) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupProfilesDelete.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesDelete.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get.py index 32106f87ab66..bc1913110a13 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -30,13 +31,13 @@ def main(): subscription_id="00000000-0000-0000-0000-000000000000", ) - response = client.container_group_profiles.get( + response = client.cg_profile.get( resource_group_name="demo", container_group_profile_name="demo1", ) print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupProfilesGet.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesGet.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get_priority.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get_priority.py index 42cd14fffda8..40d0fa0ac995 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get_priority.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get_priority.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -30,13 +31,13 @@ def main(): subscription_id="00000000-0000-0000-0000-000000000000", ) - response = client.container_group_profiles.get( + response = client.cg_profile.get( resource_group_name="demo", container_group_profile_name="demo1", ) print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupProfilesGetPriority.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesGetPriority.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list.py index 4206aaef6772..937d5fa214ae 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -30,11 +31,11 @@ def main(): subscription_id="00000000-0000-0000-0000-000000000000", ) - response = client.container_group_profiles.list() + response = client.cg_profiles.list_by_subscription() for item in response: print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupProfilesList.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesList.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list_by_resource_group.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list_by_resource_group.py index 888588bd2c92..299a34cd8bae 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list_by_resource_group.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list_by_resource_group.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -30,13 +31,13 @@ def main(): subscription_id="00000000-0000-0000-0000-000000000000", ) - response = client.container_group_profiles.list_by_resource_group( + response = client.cg_profiles.list_by_resource_group( resource_group_name="demo", ) for item in response: print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupProfilesListByResourceGroup.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_patch.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_patch.py index ba009fb17d70..6f3ac2cf503d 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_patch.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_patch.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -30,7 +31,7 @@ def main(): subscription_id="00000000-0000-0000-0000-000000000000", ) - response = client.container_group_profiles.patch( + response = client.cg_profile.update( resource_group_name="demoResource", container_group_profile_name="demo1", properties={"tags": {"tag1key": "tag1Value", "tag2key": "tag2Value"}}, @@ -38,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupProfilesPatch.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesPatch.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_usage.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_usage.py index 9acf3f8bac12..384c5037897c 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_usage.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_usage.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -37,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupUsage.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupUsage.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update.py index 9f0f1547cc1c..186a4ab5f7a5 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -107,6 +108,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsCreateOrUpdate.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_secret_reference.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_secret_reference.py new file mode 100644 index 000000000000..49c5997b9bfd --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_secret_reference.py @@ -0,0 +1,142 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.containerinstance import ContainerInstanceManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-containerinstance +# USAGE + python container_groups_create_or_update_secret_reference.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerInstanceManagementClient( + credential=DefaultAzureCredential(), + subscription_id="00000000-0000-0000-0000-000000000000", + ) + + response = client.container_groups.begin_create_or_update( + resource_group_name="demo", + container_group_name="demo1", + container_group={ + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name": {} + }, + }, + "location": "west us", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [{"name": "envSecret", "secureValueReference": "envSecretRef"}], + "image": "privateRegistryImage", + "ports": [{"port": 80}], + "resources": {"requests": {"cpu": 1, "gpu": {"count": 1, "sku": "K80"}, "memoryInGB": 1.5}}, + "volumeMounts": [ + {"mountPath": "/mnt/volume1", "name": "volume1", "readOnly": False}, + {"mountPath": "/mnt/volume2", "name": "volume2", "readOnly": False}, + {"mountPath": "/mnt/volume3", "name": "volume3", "readOnly": True}, + ], + }, + } + ], + "diagnostics": { + "logAnalytics": { + "logType": "ContainerInsights", + "metadata": {"test-key": "test-metadata-value"}, + "workspaceId": "workspaceid", + "workspaceKey": "workspaceKey", + "workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/microsoft.operationalinsights/workspaces/workspace", + } + }, + "dnsConfig": { + "nameServers": ["1.1.1.1"], + "options": "ndots:2", + "searchDomains": "cluster.local svc.cluster.local", + }, + "imageRegistryCredentials": [ + { + "passwordReference": "privateRegistryKeyRef", + "server": "demoregistry.azurecr.io", + "username": "registryUserName", + } + ], + "ipAddress": { + "autoGeneratedDomainNameLabelScope": "Unsecure", + "dnsNameLabel": "dnsnamelabel1", + "ports": [{"port": 80, "protocol": "TCP"}], + "type": "Public", + }, + "osType": "Linux", + "secretReferences": [ + { + "identity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name", + "name": "envSecretRef", + "secretReferenceUri": "https://keyvaultname.vault.azure.net/secrets/envSecret", + }, + { + "identity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name", + "name": "accountKeyRef", + "secretReferenceUri": "https://keyvaultname.vault.azure.net/secrets/accountKey", + }, + { + "identity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name", + "name": "volumeSecretRef", + "secretReferenceUri": "https://keyvaultname.vault.azure.net/secrets/volumeSecret", + }, + { + "identity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name", + "name": "privateRegistryKeyRef", + "secretReferenceUri": "https://keyvaultname.vault.azure.net/secrets/privateRegistryKey", + }, + ], + "subnetIds": [ + { + "id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnetName'))]" + } + ], + "volumes": [ + { + "azureFile": { + "shareName": "shareName", + "storageAccountKeyReference": "accountKeyRef", + "storageAccountName": "accountName", + }, + "name": "volume1", + }, + {"emptyDir": {}, "name": "volume2"}, + { + "name": "volume3", + "secret": {"secretKey1": "SecretValue1InBase64"}, + "secretReference": {"secretKey2": "volumeSecretRef"}, + }, + ], + }, + }, + ).result() + print(response) + + +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsCreateOrUpdateSecretReference.json +if __name__ == "__main__": + main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_priority.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_priority.py index 7afd66c684c9..cf5826d967ae 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_priority.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_priority.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -56,6 +57,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsCreatePriority.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsCreatePriority.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_delete.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_delete.py index 15f8c832302c..b72a70b70db5 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_delete.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_delete.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -37,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsDelete.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsDelete.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_failed.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_failed.py index 56c75cb1046c..bae371d7793b 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_failed.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_failed.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -37,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsGet_Failed.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsGet_Failed.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_priority.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_priority.py index 7bbcc1a466bc..f2504593a8de 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_priority.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_priority.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -37,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsGetPriority.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsGetPriority.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_succeeded.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_succeeded.py index b534f3bb1227..bbc6ac5f6d30 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_succeeded.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_succeeded.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -37,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsGet_Succeeded.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsGet_Succeeded.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list.py index 546844ad6e15..d9918545f56c 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -35,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsList.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsList.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list_by_resource_group.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list_by_resource_group.py index ef1b0431b9d7..8d575dea1af4 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list_by_resource_group.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list_by_resource_group.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -37,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsListByResourceGroup.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_restart.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_restart.py index 978ab25144b5..822b412833b9 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_restart.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_restart.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -36,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsRestart.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsRestart.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_start.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_start.py index d40773c08b2b..db667744c8be 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_start.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_start.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -36,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsStart.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsStart.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_stop.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_stop.py index 5b5969ca0aac..0bb6cb063636 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_stop.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_stop.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -36,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsStop.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsStop.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_profile_create_or_update_create_priority.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_update.py similarity index 57% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_profile_create_or_update_create_priority.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_update.py index d913940cd4a1..21163140792d 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_profile_create_or_update_create_priority.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_update.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -15,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-containerinstance # USAGE - python container_groups_profile_create_or_update_create_priority.py + python container_groups_update.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -30,32 +31,21 @@ def main(): subscription_id="00000000-0000-0000-0000-000000000000", ) - response = client.container_group_profiles.create_or_update( - resource_group_name="demo", - container_group_profile_name="demo1", - container_group_profile={ - "location": "eastus", - "properties": { - "containers": [ - { - "name": "test-container-001", - "properties": { - "command": ["/bin/sh", "-c", "sleep 10"], - "image": "alpine:latest", - "resources": {"requests": {"cpu": 1, "memoryInGB": 1}}, - }, - } - ], - "osType": "Linux", - "priority": "Spot", - "restartPolicy": "Never", - "sku": "Standard", - }, + response = client.container_groups.update( + resource_group_name="demoResource", + container_group_name="demo1", + resource={ + "id": "str", + "location": "str", + "name": "str", + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], }, ) print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsProfileCreateOrUpdate_CreatePriority.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsUpdate.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_list_logs.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_list_logs.py index 855578377701..34c661b7e256 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_list_logs.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_list_logs.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -38,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerListLogs.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerListLogs.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py index a02cb7e8094c..173c618cb50f 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -35,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/OperationsList.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/OperationsList.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/subnet_service_association_link_delete.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/subnet_service_association_link_delete.py index 3f588b61c869..bec82be24dca 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/subnet_service_association_link_delete.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/subnet_service_association_link_delete.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -37,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/SubnetServiceAssociationLinkDelete.json +# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/SubnetServiceAssociationLinkDelete.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/conftest.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/conftest.py index e965bd77cfd7..5ea11ac61dff 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/conftest.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/conftest.py @@ -18,7 +18,7 @@ load_dotenv() -# aovid record sensitive identity information in recordings +# For security, please avoid record sensitive identity information in recordings @pytest.fixture(scope="session", autouse=True) def add_sanitizers(test_proxy): containerinstancemanagement_subscription_id = os.environ.get( diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations.py new file mode 100644 index 000000000000..3ec731ee874c --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations.py @@ -0,0 +1,305 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.containerinstance import ContainerInstanceManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerInstanceManagementCGProfileOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerInstanceManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profile_create_or_update(self, resource_group): + response = self.client.cg_profile.create_or_update( + resource_group_name=resource_group.name, + container_group_profile_name="str", + container_group_profile={ + "confidentialComputeProperties": {"ccePolicy": "str"}, + "containers": [ + { + "name": "str", + "command": ["str"], + "configMap": {"keyValuePairs": {"str": "str"}}, + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "livenessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "ports": [{"port": 0, "protocol": "str"}], + "readinessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "resources": { + "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, + "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + } + ], + "diagnostics": { + "logAnalytics": { + "workspaceId": "str", + "workspaceKey": "str", + "logType": "str", + "metadata": {"str": "str"}, + "workspaceResourceId": "str", + } + }, + "encryptionProperties": { + "keyName": "str", + "keyVersion": "str", + "vaultBaseUrl": "str", + "identity": "str", + }, + "extensions": [ + {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} + ], + "id": "str", + "imageRegistryCredentials": [ + { + "server": "str", + "identity": "str", + "identityUrl": "str", + "password": "str", + "passwordReference": "str", + "username": "str", + } + ], + "initContainers": [ + { + "name": "str", + "command": ["str"], + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + } + ], + "ipAddress": { + "ports": [{"port": 0, "protocol": "str"}], + "type": "str", + "autoGeneratedDomainNameLabelScope": "Unsecure", + "dnsNameLabel": "str", + "fqdn": "str", + "ip": "str", + }, + "location": "str", + "name": "str", + "osType": "str", + "priority": "str", + "registeredRevisions": [0], + "restartPolicy": "str", + "revision": 0, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "shutdownGracePeriod": "2020-02-20 00:00:00", + "sku": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "timeToLive": "2020-02-20 00:00:00", + "type": "str", + "useKrypton": bool, + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + "emptyDir": {}, + "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, + "secret": {"str": "str"}, + "secretReference": {"str": "str"}, + } + ], + "zones": ["str"], + }, + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profile_update(self, resource_group): + response = self.client.cg_profile.update( + resource_group_name=resource_group.name, + container_group_profile_name="str", + properties={"tags": {"str": "str"}}, + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profile_get(self, resource_group): + response = self.client.cg_profile.get( + resource_group_name=resource_group.name, + container_group_profile_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profile_delete(self, resource_group): + response = self.client.cg_profile.delete( + resource_group_name=resource_group.name, + container_group_profile_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profile_list_all_revisions(self, resource_group): + response = self.client.cg_profile.list_all_revisions( + resource_group_name=resource_group.name, + container_group_profile_name="str", + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profile_get_by_revision_number(self, resource_group): + response = self.client.cg_profile.get_by_revision_number( + resource_group_name=resource_group.name, + container_group_profile_name="str", + revision_number="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations_async.py new file mode 100644 index 000000000000..df325d2a3e3d --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations_async.py @@ -0,0 +1,306 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerInstanceManagementCGProfileOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profile_create_or_update(self, resource_group): + response = await self.client.cg_profile.create_or_update( + resource_group_name=resource_group.name, + container_group_profile_name="str", + container_group_profile={ + "confidentialComputeProperties": {"ccePolicy": "str"}, + "containers": [ + { + "name": "str", + "command": ["str"], + "configMap": {"keyValuePairs": {"str": "str"}}, + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "livenessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "ports": [{"port": 0, "protocol": "str"}], + "readinessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "resources": { + "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, + "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + } + ], + "diagnostics": { + "logAnalytics": { + "workspaceId": "str", + "workspaceKey": "str", + "logType": "str", + "metadata": {"str": "str"}, + "workspaceResourceId": "str", + } + }, + "encryptionProperties": { + "keyName": "str", + "keyVersion": "str", + "vaultBaseUrl": "str", + "identity": "str", + }, + "extensions": [ + {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} + ], + "id": "str", + "imageRegistryCredentials": [ + { + "server": "str", + "identity": "str", + "identityUrl": "str", + "password": "str", + "passwordReference": "str", + "username": "str", + } + ], + "initContainers": [ + { + "name": "str", + "command": ["str"], + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + } + ], + "ipAddress": { + "ports": [{"port": 0, "protocol": "str"}], + "type": "str", + "autoGeneratedDomainNameLabelScope": "Unsecure", + "dnsNameLabel": "str", + "fqdn": "str", + "ip": "str", + }, + "location": "str", + "name": "str", + "osType": "str", + "priority": "str", + "registeredRevisions": [0], + "restartPolicy": "str", + "revision": 0, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "shutdownGracePeriod": "2020-02-20 00:00:00", + "sku": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "timeToLive": "2020-02-20 00:00:00", + "type": "str", + "useKrypton": bool, + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + "emptyDir": {}, + "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, + "secret": {"str": "str"}, + "secretReference": {"str": "str"}, + } + ], + "zones": ["str"], + }, + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profile_update(self, resource_group): + response = await self.client.cg_profile.update( + resource_group_name=resource_group.name, + container_group_profile_name="str", + properties={"tags": {"str": "str"}}, + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profile_get(self, resource_group): + response = await self.client.cg_profile.get( + resource_group_name=resource_group.name, + container_group_profile_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profile_delete(self, resource_group): + response = await self.client.cg_profile.delete( + resource_group_name=resource_group.name, + container_group_profile_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profile_list_all_revisions(self, resource_group): + response = self.client.cg_profile.list_all_revisions( + resource_group_name=resource_group.name, + container_group_profile_name="str", + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profile_get_by_revision_number(self, resource_group): + response = await self.client.cg_profile.get_by_revision_number( + resource_group_name=resource_group.name, + container_group_profile_name="str", + revision_number="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations.py new file mode 100644 index 000000000000..15f0cd971f0a --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.containerinstance import ContainerInstanceManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerInstanceManagementCGProfilesOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerInstanceManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profiles_list_by_subscription(self, resource_group): + response = self.client.cg_profiles.list_by_subscription( + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profiles_list_by_resource_group(self, resource_group): + response = self.client.cg_profiles.list_by_resource_group( + resource_group_name=resource_group.name, + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations_async.py new file mode 100644 index 000000000000..b92a71d7053b --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations_async.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerInstanceManagementCGProfilesOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profiles_list_by_subscription(self, resource_group): + response = self.client.cg_profiles.list_by_subscription( + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profiles_list_by_resource_group(self, resource_group): + response = self.client.cg_profiles.list_by_resource_group( + resource_group_name=resource_group.name, + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations.py index 5aa36a394fc9..25990b350ada 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations.py @@ -20,9 +20,9 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_list(self, resource_group): + def test_container_groups_list(self, resource_group): response = self.client.container_groups.list( - api_version="2024-05-01-preview", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -30,10 +30,10 @@ def test_list(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_list_by_resource_group(self, resource_group): + def test_container_groups_list_by_resource_group(self, resource_group): response = self.client.container_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2024-05-01-preview", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -41,11 +41,11 @@ def test_list_by_resource_group(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_get(self, resource_group): + def test_container_groups_get(self, resource_group): response = self.client.container_groups.get( resource_group_name=resource_group.name, container_group_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ def test_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_begin_create_or_update(self, resource_group): + def test_container_groups_begin_create_or_update(self, resource_group): response = self.client.container_groups.begin_create_or_update( resource_group_name=resource_group.name, container_group_name="str", @@ -63,7 +63,9 @@ def test_begin_create_or_update(self, resource_group): "name": "str", "command": ["str"], "configMap": {"keyValuePairs": {"str": "str"}}, - "environmentVariables": [{"name": "str", "secureValue": "str", "value": "str"}], + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], "image": "str", "instanceView": { "currentState": { @@ -164,14 +166,24 @@ def test_begin_create_or_update(self, resource_group): "type": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, + "identityAcls": {"acls": [{"access": "str", "identity": "str"}], "defaultAccess": "str"}, "imageRegistryCredentials": [ - {"server": "str", "identity": "str", "identityUrl": "str", "password": "str", "username": "str"} + { + "server": "str", + "identity": "str", + "identityUrl": "str", + "password": "str", + "passwordReference": "str", + "username": "str", + } ], "initContainers": [ { "name": "str", "command": ["str"], - "environmentVariables": [{"name": "str", "secureValue": "str", "value": "str"}], + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], "image": "str", "instanceView": { "currentState": { @@ -239,6 +251,7 @@ def test_begin_create_or_update(self, resource_group): "priority": "str", "provisioningState": "str", "restartPolicy": "str", + "secretReferences": [{"identity": "str", "name": "str", "secretReferenceUri": "str"}], "sku": "str", "standbyPoolProfile": {"failContainerGroupCreateOnReuseFailure": bool, "id": "str"}, "subnetIds": [{"id": "str", "name": "str"}], @@ -252,15 +265,17 @@ def test_begin_create_or_update(self, resource_group): "storageAccountName": "str", "readOnly": bool, "storageAccountKey": "str", + "storageAccountKeyReference": "str", }, "emptyDir": {}, "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, "secret": {"str": "str"}, + "secretReference": {"str": "str"}, } ], "zones": ["str"], }, - api_version="2024-05-01-preview", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -268,7 +283,7 @@ def test_begin_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_update(self, resource_group): + def test_container_groups_update(self, resource_group): response = self.client.container_groups.update( resource_group_name=resource_group.name, container_group_name="str", @@ -280,7 +295,7 @@ def test_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -288,11 +303,11 @@ def test_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_begin_delete(self, resource_group): + def test_container_groups_begin_delete(self, resource_group): response = self.client.container_groups.begin_delete( resource_group_name=resource_group.name, container_group_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -300,11 +315,11 @@ def test_begin_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_begin_restart(self, resource_group): + def test_container_groups_begin_restart(self, resource_group): response = self.client.container_groups.begin_restart( resource_group_name=resource_group.name, container_group_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -312,11 +327,11 @@ def test_begin_restart(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_stop(self, resource_group): + def test_container_groups_stop(self, resource_group): response = self.client.container_groups.stop( resource_group_name=resource_group.name, container_group_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -324,11 +339,11 @@ def test_stop(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_begin_start(self, resource_group): + def test_container_groups_begin_start(self, resource_group): response = self.client.container_groups.begin_start( resource_group_name=resource_group.name, container_group_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -336,11 +351,11 @@ def test_begin_start(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_get_outbound_network_dependencies_endpoints(self, resource_group): + def test_container_groups_get_outbound_network_dependencies_endpoints(self, resource_group): response = self.client.container_groups.get_outbound_network_dependencies_endpoints( resource_group_name=resource_group.name, container_group_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations_async.py index 483ef447d8b1..5e146947c67c 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations_async.py @@ -21,9 +21,9 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_list(self, resource_group): + async def test_container_groups_list(self, resource_group): response = self.client.container_groups.list( - api_version="2024-05-01-preview", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -31,10 +31,10 @@ async def test_list(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_list_by_resource_group(self, resource_group): + async def test_container_groups_list_by_resource_group(self, resource_group): response = self.client.container_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2024-05-01-preview", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -42,11 +42,11 @@ async def test_list_by_resource_group(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_get(self, resource_group): + async def test_container_groups_get(self, resource_group): response = await self.client.container_groups.get( resource_group_name=resource_group.name, container_group_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -54,7 +54,7 @@ async def test_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_begin_create_or_update(self, resource_group): + async def test_container_groups_begin_create_or_update(self, resource_group): response = await ( await self.client.container_groups.begin_create_or_update( resource_group_name=resource_group.name, @@ -65,7 +65,9 @@ async def test_begin_create_or_update(self, resource_group): "name": "str", "command": ["str"], "configMap": {"keyValuePairs": {"str": "str"}}, - "environmentVariables": [{"name": "str", "secureValue": "str", "value": "str"}], + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], "image": "str", "instanceView": { "currentState": { @@ -172,14 +174,24 @@ async def test_begin_create_or_update(self, resource_group): "type": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, + "identityAcls": {"acls": [{"access": "str", "identity": "str"}], "defaultAccess": "str"}, "imageRegistryCredentials": [ - {"server": "str", "identity": "str", "identityUrl": "str", "password": "str", "username": "str"} + { + "server": "str", + "identity": "str", + "identityUrl": "str", + "password": "str", + "passwordReference": "str", + "username": "str", + } ], "initContainers": [ { "name": "str", "command": ["str"], - "environmentVariables": [{"name": "str", "secureValue": "str", "value": "str"}], + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], "image": "str", "instanceView": { "currentState": { @@ -247,6 +259,7 @@ async def test_begin_create_or_update(self, resource_group): "priority": "str", "provisioningState": "str", "restartPolicy": "str", + "secretReferences": [{"identity": "str", "name": "str", "secretReferenceUri": "str"}], "sku": "str", "standbyPoolProfile": {"failContainerGroupCreateOnReuseFailure": bool, "id": "str"}, "subnetIds": [{"id": "str", "name": "str"}], @@ -260,15 +273,17 @@ async def test_begin_create_or_update(self, resource_group): "storageAccountName": "str", "readOnly": bool, "storageAccountKey": "str", + "storageAccountKeyReference": "str", }, "emptyDir": {}, "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, "secret": {"str": "str"}, + "secretReference": {"str": "str"}, } ], "zones": ["str"], }, - api_version="2024-05-01-preview", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -277,7 +292,7 @@ async def test_begin_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_update(self, resource_group): + async def test_container_groups_update(self, resource_group): response = await self.client.container_groups.update( resource_group_name=resource_group.name, container_group_name="str", @@ -289,7 +304,7 @@ async def test_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -297,12 +312,12 @@ async def test_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_begin_delete(self, resource_group): + async def test_container_groups_begin_delete(self, resource_group): response = await ( await self.client.container_groups.begin_delete( resource_group_name=resource_group.name, container_group_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -311,12 +326,12 @@ async def test_begin_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_begin_restart(self, resource_group): + async def test_container_groups_begin_restart(self, resource_group): response = await ( await self.client.container_groups.begin_restart( resource_group_name=resource_group.name, container_group_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -325,11 +340,11 @@ async def test_begin_restart(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_stop(self, resource_group): + async def test_container_groups_stop(self, resource_group): response = await self.client.container_groups.stop( resource_group_name=resource_group.name, container_group_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -337,12 +352,12 @@ async def test_stop(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_begin_start(self, resource_group): + async def test_container_groups_begin_start(self, resource_group): response = await ( await self.client.container_groups.begin_start( resource_group_name=resource_group.name, container_group_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -351,11 +366,11 @@ async def test_begin_start(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_get_outbound_network_dependencies_endpoints(self, resource_group): + async def test_container_groups_get_outbound_network_dependencies_endpoints(self, resource_group): response = await self.client.container_groups.get_outbound_network_dependencies_endpoints( resource_group_name=resource_group.name, container_group_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations.py index 7d98e5b3708d..a9ae7dd6c800 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations.py @@ -20,12 +20,12 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_list_logs(self, resource_group): + def test_containers_list_logs(self, resource_group): response = self.client.containers.list_logs( resource_group_name=resource_group.name, container_group_name="str", container_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -33,13 +33,13 @@ def test_list_logs(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_execute_command(self, resource_group): + def test_containers_execute_command(self, resource_group): response = self.client.containers.execute_command( resource_group_name=resource_group.name, container_group_name="str", container_name="str", container_exec_request={"command": "str", "terminalSize": {"cols": 0, "rows": 0}}, - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -47,12 +47,12 @@ def test_execute_command(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_attach(self, resource_group): + def test_containers_attach(self, resource_group): response = self.client.containers.attach( resource_group_name=resource_group.name, container_group_name="str", container_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations_async.py index 7953336c2ad3..a349d1178672 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations_async.py @@ -21,12 +21,12 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_list_logs(self, resource_group): + async def test_containers_list_logs(self, resource_group): response = await self.client.containers.list_logs( resource_group_name=resource_group.name, container_group_name="str", container_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -34,13 +34,13 @@ async def test_list_logs(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_execute_command(self, resource_group): + async def test_containers_execute_command(self, resource_group): response = await self.client.containers.execute_command( resource_group_name=resource_group.name, container_group_name="str", container_name="str", container_exec_request={"command": "str", "terminalSize": {"cols": 0, "rows": 0}}, - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -48,12 +48,12 @@ async def test_execute_command(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_attach(self, resource_group): + async def test_containers_attach(self, resource_group): response = await self.client.containers.attach( resource_group_name=resource_group.name, container_group_name="str", container_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations.py index 67413abe1b7e..e63c05f6e40d 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations.py @@ -20,10 +20,10 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_list_usage(self, resource_group): + def test_location_list_usage(self, resource_group): response = self.client.location.list_usage( location="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -31,10 +31,10 @@ def test_list_usage(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_list_cached_images(self, resource_group): + def test_location_list_cached_images(self, resource_group): response = self.client.location.list_cached_images( location="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -42,10 +42,10 @@ def test_list_cached_images(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_list_capabilities(self, resource_group): + def test_location_list_capabilities(self, resource_group): response = self.client.location.list_capabilities( location="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations_async.py index ab4c08275d34..44be006a062e 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations_async.py @@ -21,10 +21,10 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_list_usage(self, resource_group): + async def test_location_list_usage(self, resource_group): response = self.client.location.list_usage( location="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -32,10 +32,10 @@ async def test_list_usage(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_list_cached_images(self, resource_group): + async def test_location_list_cached_images(self, resource_group): response = self.client.location.list_cached_images( location="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -43,10 +43,10 @@ async def test_list_cached_images(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_list_capabilities(self, resource_group): + async def test_location_list_capabilities(self, resource_group): response = self.client.location.list_capabilities( location="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations.py new file mode 100644 index 000000000000..546218a97cd4 --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations.py @@ -0,0 +1,282 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.containerinstance import ContainerInstanceManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerInstanceManagementNGroupsOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerInstanceManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_ngroups_get(self, resource_group): + response = self.client.ngroups.get( + resource_group_name=resource_group.name, + ngroups_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_ngroups_begin_create_or_update(self, resource_group): + response = self.client.ngroups.begin_create_or_update( + resource_group_name=resource_group.name, + ngroups_name="str", + n_group={ + "containerGroupProfiles": [ + { + "containerGroupProperties": { + "containers": [ + { + "name": "str", + "properties": { + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}] + }, + } + ], + "subnetIds": [{"id": "str", "name": "str"}], + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + } + ], + }, + "networkProfile": { + "applicationGateway": {"backendAddressPools": [{"resource": "str"}], "resource": "str"}, + "loadBalancer": {"backendAddressPools": [{"resource": "str"}]}, + }, + "resource": {"id": "str"}, + "revision": 0, + "storageProfile": { + "fileShares": [ + { + "name": "str", + "properties": {"shareAccessTier": "TransactionOptimized", "shareAccessType": "str"}, + "resourceGroupName": "str", + "storageAccountName": "str", + } + ] + }, + } + ], + "elasticProfile": { + "containerGroupNamingPolicy": {"guidNamingPolicy": {"prefix": "str"}}, + "desiredCount": 0, + "maintainDesiredCount": bool, + }, + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "location": "str", + "name": "str", + "placementProfile": {"faultDomainCount": 0}, + "provisioningState": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + "updateProfile": { + "rollingUpdateProfile": { + "inPlaceUpdate": bool, + "maxBatchPercent": 0, + "maxUnhealthyPercent": 0, + "pauseTimeBetweenBatches": "str", + }, + "updateMode": "str", + }, + "zones": ["str"], + }, + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_ngroups_begin_update(self, resource_group): + response = self.client.ngroups.begin_update( + resource_group_name=resource_group.name, + ngroups_name="str", + n_group={ + "containerGroupProfiles": [ + { + "containerGroupProperties": { + "containers": [ + { + "name": "str", + "properties": { + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}] + }, + } + ], + "subnetIds": [{"id": "str", "name": "str"}], + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + } + ], + }, + "networkProfile": { + "applicationGateway": {"backendAddressPools": [{"resource": "str"}], "resource": "str"}, + "loadBalancer": {"backendAddressPools": [{"resource": "str"}]}, + }, + "resource": {"id": "str"}, + "revision": 0, + "storageProfile": { + "fileShares": [ + { + "name": "str", + "properties": {"shareAccessTier": "TransactionOptimized", "shareAccessType": "str"}, + "resourceGroupName": "str", + "storageAccountName": "str", + } + ] + }, + } + ], + "elasticProfile": { + "containerGroupNamingPolicy": {"guidNamingPolicy": {"prefix": "str"}}, + "desiredCount": 0, + "maintainDesiredCount": bool, + }, + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "placementProfile": {"faultDomainCount": 0}, + "provisioningState": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "updateProfile": { + "rollingUpdateProfile": { + "inPlaceUpdate": bool, + "maxBatchPercent": 0, + "maxUnhealthyPercent": 0, + "pauseTimeBetweenBatches": "str", + }, + "updateMode": "str", + }, + "zones": ["str"], + }, + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_ngroups_begin_delete(self, resource_group): + response = self.client.ngroups.begin_delete( + resource_group_name=resource_group.name, + ngroups_name="str", + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_ngroups_begin_start(self, resource_group): + response = self.client.ngroups.begin_start( + resource_group_name=resource_group.name, + ngroups_name="str", + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_ngroups_stop(self, resource_group): + response = self.client.ngroups.stop( + resource_group_name=resource_group.name, + ngroups_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_ngroups_begin_restart(self, resource_group): + response = self.client.ngroups.begin_restart( + resource_group_name=resource_group.name, + ngroups_name="str", + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_ngroups_list_by_resource_group(self, resource_group): + response = self.client.ngroups.list_by_resource_group( + resource_group_name=resource_group.name, + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_ngroups_list(self, resource_group): + response = self.client.ngroups.list( + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations_async.py new file mode 100644 index 000000000000..897c296a6ac5 --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations_async.py @@ -0,0 +1,299 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerInstanceManagementNGroupsOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_get(self, resource_group): + response = await self.client.ngroups.get( + resource_group_name=resource_group.name, + ngroups_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_begin_create_or_update(self, resource_group): + response = await ( + await self.client.ngroups.begin_create_or_update( + resource_group_name=resource_group.name, + ngroups_name="str", + n_group={ + "containerGroupProfiles": [ + { + "containerGroupProperties": { + "containers": [ + { + "name": "str", + "properties": { + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}] + }, + } + ], + "subnetIds": [{"id": "str", "name": "str"}], + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + } + ], + }, + "networkProfile": { + "applicationGateway": {"backendAddressPools": [{"resource": "str"}], "resource": "str"}, + "loadBalancer": {"backendAddressPools": [{"resource": "str"}]}, + }, + "resource": {"id": "str"}, + "revision": 0, + "storageProfile": { + "fileShares": [ + { + "name": "str", + "properties": { + "shareAccessTier": "TransactionOptimized", + "shareAccessType": "str", + }, + "resourceGroupName": "str", + "storageAccountName": "str", + } + ] + }, + } + ], + "elasticProfile": { + "containerGroupNamingPolicy": {"guidNamingPolicy": {"prefix": "str"}}, + "desiredCount": 0, + "maintainDesiredCount": bool, + }, + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "location": "str", + "name": "str", + "placementProfile": {"faultDomainCount": 0}, + "provisioningState": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + "updateProfile": { + "rollingUpdateProfile": { + "inPlaceUpdate": bool, + "maxBatchPercent": 0, + "maxUnhealthyPercent": 0, + "pauseTimeBetweenBatches": "str", + }, + "updateMode": "str", + }, + "zones": ["str"], + }, + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_begin_update(self, resource_group): + response = await ( + await self.client.ngroups.begin_update( + resource_group_name=resource_group.name, + ngroups_name="str", + n_group={ + "containerGroupProfiles": [ + { + "containerGroupProperties": { + "containers": [ + { + "name": "str", + "properties": { + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}] + }, + } + ], + "subnetIds": [{"id": "str", "name": "str"}], + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + } + ], + }, + "networkProfile": { + "applicationGateway": {"backendAddressPools": [{"resource": "str"}], "resource": "str"}, + "loadBalancer": {"backendAddressPools": [{"resource": "str"}]}, + }, + "resource": {"id": "str"}, + "revision": 0, + "storageProfile": { + "fileShares": [ + { + "name": "str", + "properties": { + "shareAccessTier": "TransactionOptimized", + "shareAccessType": "str", + }, + "resourceGroupName": "str", + "storageAccountName": "str", + } + ] + }, + } + ], + "elasticProfile": { + "containerGroupNamingPolicy": {"guidNamingPolicy": {"prefix": "str"}}, + "desiredCount": 0, + "maintainDesiredCount": bool, + }, + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "placementProfile": {"faultDomainCount": 0}, + "provisioningState": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "updateProfile": { + "rollingUpdateProfile": { + "inPlaceUpdate": bool, + "maxBatchPercent": 0, + "maxUnhealthyPercent": 0, + "pauseTimeBetweenBatches": "str", + }, + "updateMode": "str", + }, + "zones": ["str"], + }, + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_begin_delete(self, resource_group): + response = await ( + await self.client.ngroups.begin_delete( + resource_group_name=resource_group.name, + ngroups_name="str", + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_begin_start(self, resource_group): + response = await ( + await self.client.ngroups.begin_start( + resource_group_name=resource_group.name, + ngroups_name="str", + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_stop(self, resource_group): + response = await self.client.ngroups.stop( + resource_group_name=resource_group.name, + ngroups_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_begin_restart(self, resource_group): + response = await ( + await self.client.ngroups.begin_restart( + resource_group_name=resource_group.name, + ngroups_name="str", + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_list_by_resource_group(self, resource_group): + response = self.client.ngroups.list_by_resource_group( + resource_group_name=resource_group.name, + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_list(self, resource_group): + response = self.client.ngroups.list( + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations.py index cf615891fc51..5bbd1403c7d3 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations.py @@ -20,9 +20,9 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_list(self, resource_group): + def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2024-05-01-preview", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations_async.py index 07bc78bc7caa..ceb9e8eb1cb2 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations_async.py @@ -21,9 +21,9 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_list(self, resource_group): + async def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2024-05-01-preview", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations.py index 1a5d0c197c99..1e4b047423c6 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations.py @@ -20,12 +20,12 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_begin_delete(self, resource_group): + def test_subnet_service_association_link_begin_delete(self, resource_group): response = self.client.subnet_service_association_link.begin_delete( resource_group_name=resource_group.name, virtual_network_name="str", subnet_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations_async.py index 6f689761a71c..20b47a614e06 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations_async.py @@ -21,13 +21,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_begin_delete(self, resource_group): + async def test_subnet_service_association_link_begin_delete(self, resource_group): response = await ( await self.client.subnet_service_association_link.begin_delete( resource_group_name=resource_group.name, virtual_network_name="str", subnet_name="str", - api_version="2024-05-01-preview", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/pyproject.toml b/sdk/containerinstance/azure-mgmt-containerinstance/pyproject.toml index 540da07d41af..f9393415ef12 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/pyproject.toml +++ b/sdk/containerinstance/azure-mgmt-containerinstance/pyproject.toml @@ -1,6 +1,88 @@ +[build-system] +requires = [ + "setuptools>=77.0.3", + "wheel", +] +build-backend = "setuptools.build_meta" + +[project] +name = "azure-mgmt-containerinstance" +authors = [ + { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, +] +description = "Microsoft Azure Containerinstance Management Client Library for Python" +license = "MIT" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", +] +requires-python = ">=3.9" +keywords = [ + "azure", + "azure sdk", +] +dependencies = [ + "isodate>=0.6.1", + "azure-mgmt-core>=1.6.0", + "typing-extensions>=4.6.0", +] +dynamic = [ + "version", + "readme", +] + +[project.urls] +repository = "https://github.com/Azure/azure-sdk-for-python" + +[tool.setuptools.dynamic.version] +attr = "azure.mgmt.containerinstance._version.VERSION" + +[tool.setuptools.dynamic.readme] +file = [ + "README.md", + "CHANGELOG.md", +] +content-type = "text/markdown" + +[tool.setuptools.packages.find] +exclude = [ + "tests*", + "generated_tests*", + "samples*", + "generated_samples*", + "doc*", + "azure", + "azure.mgmt", +] + +[tool.setuptools.package-data] +pytyped = [ + "py.typed", +] + [tool.azure-sdk-build] breaking = false mypy = false pyright = false type_check_samples = false verifytypes = false + +[packaging] +package_name = "azure-mgmt-containerinstance" +package_pprint_name = "Container Instance" +package_doc_id = "containerinstance" +is_stable = true +sample_link = "" +title = "ContainerInstanceManagementClient" +package_nspkg = "azure-mgmt-nspkg" +is_arm = true +need_msrestazure = false +need_azuremgmtcore = true +exclude_folders = "" diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/sdk_packaging.toml b/sdk/containerinstance/azure-mgmt-containerinstance/sdk_packaging.toml deleted file mode 100644 index 316d0207a8f6..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/sdk_packaging.toml +++ /dev/null @@ -1,7 +0,0 @@ -[packaging] -package_name = "azure-mgmt-containerinstance" -package_pprint_name = "Container Instance" -package_doc_id = "containerinstance" -is_stable = false -sample_link = "" -title = "ContainerInstanceManagementClient" diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/setup.py b/sdk/containerinstance/azure-mgmt-containerinstance/setup.py deleted file mode 100644 index f403bc870a66..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -#!/usr/bin/env python - -# ------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- - -import re -import os.path -from io import open -from setuptools import find_packages, setup - -# Change the PACKAGE_NAME only to change folder and different name -PACKAGE_NAME = "azure-mgmt-containerinstance" -PACKAGE_PPRINT_NAME = "Container Instance" - -# a-b-c => a/b/c -package_folder_path = PACKAGE_NAME.replace("-", "/") -# a-b-c => a.b.c -namespace_name = PACKAGE_NAME.replace("-", ".") - -# Version extraction inspired from 'requests' -with open( - os.path.join(package_folder_path, "version.py") - if os.path.exists(os.path.join(package_folder_path, "version.py")) - else os.path.join(package_folder_path, "_version.py"), - "r", -) as fd: - version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) - -if not version: - raise RuntimeError("Cannot find version information") - -with open("README.md", encoding="utf-8") as f: - readme = f.read() -with open("CHANGELOG.md", encoding="utf-8") as f: - changelog = f.read() - -setup( - name=PACKAGE_NAME, - version=version, - description="Microsoft Azure {} Client Library for Python".format(PACKAGE_PPRINT_NAME), - long_description=readme + "\n\n" + changelog, - long_description_content_type="text/markdown", - license="MIT License", - author="Microsoft Corporation", - author_email="azpysdkhelp@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python", - keywords="azure, azure sdk", # update with search keywords relevant to the azure service / product - classifiers=[ - "Development Status :: 4 - Beta", - "Programming Language :: Python", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "License :: OSI Approved :: MIT License", - ], - zip_safe=False, - packages=find_packages( - exclude=[ - "tests", - # Exclude packages that will be covered by PEP420 or nspkg - "azure", - "azure.mgmt", - ] - ), - include_package_data=True, - package_data={ - "pytyped": ["py.typed"], - }, - install_requires=[ - "isodate>=0.6.1", - "typing-extensions>=4.6.0", - "azure-common>=1.1", - "azure-mgmt-core>=1.3.2", - ], - python_requires=">=3.8", -) From 70b2d695363b25c8f5d0f1f5cb70e55b7768bbde Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Wed, 25 Mar 2026 16:10:49 +0800 Subject: [PATCH 2/7] generated from typespec:87fd8965461f54b715bb5762be007bb1d10f6f82 --- .../azure-mgmt-containerinstance/CHANGELOG.md | 4 + .../_metadata.json | 15 +- .../apiview-properties.json | 375 +- .../azure/mgmt/containerinstance/__init__.py | 6 +- ...stance_management_client.py => _client.py} | 69 +- .../mgmt/containerinstance/_configuration.py | 17 +- .../azure/mgmt/containerinstance/_patch.py | 39 +- .../mgmt/containerinstance/_utils/__init__.py | 2 +- .../containerinstance/_utils/model_base.py | 1350 ++ .../containerinstance/_utils/serialization.py | 2 +- .../azure/mgmt/containerinstance/_version.py | 4 +- .../mgmt/containerinstance/aio/__init__.py | 6 +- ...stance_management_client.py => _client.py} | 69 +- .../containerinstance/aio/_configuration.py | 17 +- .../mgmt/containerinstance/aio/_patch.py | 39 +- .../aio/operations/__init__.py | 26 +- .../aio/operations/_cg_profile_operations.py | 629 - .../aio/operations/_cg_profiles_operations.py | 222 - .../_container_groups_operations.py | 1079 - .../aio/operations/_containers_operations.py | 350 - .../aio/operations/_location_operations.py | 298 - .../aio/operations/_ngroups_operations.py | 1115 - .../aio/operations/_operations.py | 4286 +++- .../aio/operations/_patch.py | 13 +- ...net_service_association_link_operations.py | 171 - .../mgmt/containerinstance/models/__init__.py | 52 +- ...e_management_client_enums.py => _enums.py} | 86 +- .../mgmt/containerinstance/models/_models.py | 4572 +++++ .../containerinstance/models/_models_py3.py | 5016 ----- .../mgmt/containerinstance/models/_patch.py | 13 +- .../containerinstance/operations/__init__.py | 26 +- .../operations/_cg_profile_operations.py | 877 - .../operations/_cg_profiles_operations.py | 278 - .../_container_groups_operations.py | 1387 -- .../operations/_containers_operations.py | 465 - .../operations/_location_operations.py | 378 - .../operations/_ngroups_operations.py | 1431 -- .../operations/_operations.py | 5180 ++++- .../containerinstance/operations/_patch.py | 13 +- ...net_service_association_link_operations.py | 208 - .../code_report_typespec.json | 17009 ++++++++++++++++ .../generated_samples/cached_images_list.py | 11 +- .../generated_samples/capabilities_list.py | 11 +- .../generated_samples/container_attach.py | 11 +- .../generated_samples/container_exec.py | 11 +- .../container_group_create_confidential.py | 10 +- ...ner_group_create_or_update_standby_pool.py | 10 +- .../container_group_encryption_properties.py | 10 +- .../container_group_extensions.py | 10 +- ...le_create_or_update_create_confidential.py | 235 +- ..._create_or_update_encryption_properties.py | 236 +- ...oup_profile_create_or_update_extensions.py | 240 +- ...er_group_profile_get_by_revision_number.py | 11 +- ...tainer_group_profile_list_all_revisions.py | 11 +- ...ntainer_group_profiles_create_or_update.py | 253 +- .../container_group_profiles_delete.py | 11 +- .../container_group_profiles_get.py | 11 +- .../container_group_profiles_get_priority.py | 11 +- .../container_group_profiles_list.py | 11 +- ...r_group_profiles_list_by_resource_group.py | 11 +- .../container_group_profiles_patch.py | 11 +- .../container_group_usage.py | 11 +- .../container_groups_create_or_update.py | 10 +- ...roups_create_or_update_secret_reference.py | 10 +- .../container_groups_create_priority.py | 11 +- .../container_groups_delete.py | 11 +- .../container_groups_get_failed.py | 11 +- .../container_groups_get_priority.py | 11 +- .../container_groups_get_succeeded.py | 11 +- .../container_groups_list.py | 11 +- ...container_groups_list_by_resource_group.py | 11 +- .../container_groups_restart.py | 11 +- .../container_groups_start.py | 11 +- .../container_groups_stop.py | 11 +- .../container_groups_update.py | 20 +- .../generated_samples/container_list_logs.py | 11 +- .../generated_samples/operations_list.py | 9 +- .../subnet_service_association_link_delete.py | 11 +- .../generated_tests/conftest.py | 30 +- ...ontainer_instance_cg_profile_operations.py | 313 + ...er_instance_cg_profile_operations_async.py | 314 + ...tainer_instance_cg_profiles_operations.py} | 13 +- ..._instance_cg_profiles_operations_async.py} | 13 +- ...er_instance_container_groups_operations.py | 373 + ...tance_container_groups_operations_async.py | 392 + ...ntainer_instance_containers_operations.py} | 11 +- ...r_instance_containers_operations_async.py} | 11 +- ...container_instance_location_operations.py} | 11 +- ...ner_instance_location_operations_async.py} | 11 +- ...stance_management_cg_profile_operations.py | 305 - ..._management_cg_profile_operations_async.py | 306 - ...ment_container_group_profile_operations.py | 44 - ...ontainer_group_profile_operations_async.py | 45 - ...ent_container_group_profiles_operations.py | 268 - ...ntainer_group_profiles_operations_async.py | 269 - ..._management_container_groups_operations.py | 362 - ...ement_container_groups_operations_async.py | 377 - ..._instance_management_ngroups_operations.py | 282 - ..._container_instance_ngroups_operations.py} | 211 +- ...ainer_instance_ngroups_operations_async.py | 293 + ... => test_container_instance_operations.py} | 12 +- ...st_container_instance_operations_async.py} | 12 +- ...et_service_association_link_operations.py} | 9 +- ...vice_association_link_operations_async.py} | 9 +- .../pyproject.toml | 4 +- ...disable_test_cli_mgmt_containerinstance.py | 345 +- .../disable_test_mgmt_containerinstance.py | 95 +- ..._container_groups_operations_async_test.py | 1 - ...gement_container_groups_operations_test.py | 1 - ...stance_management_operations_async_test.py | 1 - ...ner_instance_management_operations_test.py | 1 - .../tsp-location.yaml | 4 + 112 files changed, 35152 insertions(+), 18118 deletions(-) rename sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/{_container_instance_management_client.py => _client.py} (84%) create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/model_base.py rename sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/{_container_instance_management_client.py => _client.py} (85%) delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profile_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profiles_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_groups_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_containers_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_location_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_ngroups_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_subnet_service_association_link_operations.py rename sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/{_container_instance_management_client_enums.py => _enums.py} (75%) create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models_py3.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profile_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profiles_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_groups_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_containers_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_location_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_ngroups_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_subnet_service_association_link_operations.py create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/code_report_typespec.json create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations.py create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations_async.py rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_management_cg_profiles_operations.py => test_container_instance_cg_profiles_operations.py} (78%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_management_cg_profiles_operations_async.py => test_container_instance_cg_profiles_operations_async.py} (78%) create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations.py create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations_async.py rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_management_containers_operations.py => test_container_instance_containers_operations.py} (82%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_management_containers_operations_async.py => test_container_instance_containers_operations_async.py} (82%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_management_location_operations.py => test_container_instance_location_operations.py} (80%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_management_location_operations_async.py => test_container_instance_location_operations_async.py} (80%) delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations_async.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profile_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profile_operations_async.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profiles_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profiles_operations_async.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations_async.py delete mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations.py rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_management_ngroups_operations_async.py => test_container_instance_ngroups_operations.py} (63%) create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_ngroups_operations_async.py rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_management_operations.py => test_container_instance_operations.py} (70%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_management_operations_async.py => test_container_instance_operations_async.py} (70%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_management_subnet_service_association_link_operations.py => test_container_instance_subnet_service_association_link_operations.py} (77%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_management_subnet_service_association_link_operations_async.py => test_container_instance_subnet_service_association_link_operations_async.py} (77%) create mode 100644 sdk/containerinstance/azure-mgmt-containerinstance/tsp-location.yaml diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md index 32d706a27164..b7f9a54b9bf9 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md +++ b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 10.2.0b2 (2026-03-25) + +skip changelog generation + ## 10.2.0 (2026-03-25) skip changelog generation diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json b/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json index 68e7b35f2f57..5858712cb66f 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json +++ b/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json @@ -1,11 +1,10 @@ { - "commit": "de8103ff8e94ea51c56bb22094ded5d2dfc45a6a", + "apiVersion": "2025-09-01", + "apiVersions": { + "Microsoft.ContainerInstance": "2025-09-01" + }, + "commit": "87fd8965461f54b715bb5762be007bb1d10f6f82", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest": "3.10.2", - "use": [ - "@autorest/python@6.50.0", - "@autorest/modelerfour@4.27.0" - ], - "autorest_command": "autorest specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/home/v-chenjiang/worktrees/sdk-azure-mgmt-containerinstance/sdk --use=@autorest/python@6.50.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", - "readme": "specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/readme.md" + "typespec_src": "specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance", + "emitterVersion": "0.61.0" } \ No newline at end of file diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json b/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json index 7ecd82d17de6..bff929d8a954 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json +++ b/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json @@ -1,192 +1,191 @@ { - "CrossLanguagePackageId": null, + "CrossLanguagePackageId": "Microsoft.ContainerInstance", "CrossLanguageDefinitionId": { - "azure.mgmt.containerinstance.models.ApiEntityReference": null, - "azure.mgmt.containerinstance.models.ApplicationGateway": null, - "azure.mgmt.containerinstance.models.ApplicationGatewayBackendAddressPool": null, - "azure.mgmt.containerinstance.models.AzureFileVolume": null, - "azure.mgmt.containerinstance.models.CachedImages": null, - "azure.mgmt.containerinstance.models.CachedImagesListResult": null, - "azure.mgmt.containerinstance.models.Capabilities": null, - "azure.mgmt.containerinstance.models.CapabilitiesCapabilities": null, - "azure.mgmt.containerinstance.models.CapabilitiesListResult": null, - "azure.mgmt.containerinstance.models.CloudErrorBody": null, - "azure.mgmt.containerinstance.models.ConfidentialComputeProperties": null, - "azure.mgmt.containerinstance.models.ConfigMap": null, - "azure.mgmt.containerinstance.models.Container": null, - "azure.mgmt.containerinstance.models.ContainerAttachResponse": null, - "azure.mgmt.containerinstance.models.ContainerExec": null, - "azure.mgmt.containerinstance.models.ContainerExecRequest": null, - "azure.mgmt.containerinstance.models.ContainerExecRequestTerminalSize": null, - "azure.mgmt.containerinstance.models.ContainerExecResponse": null, - "azure.mgmt.containerinstance.models.ContainerGroupProperties": null, - "azure.mgmt.containerinstance.models.Resource": null, - "azure.mgmt.containerinstance.models.ContainerGroup": null, - "azure.mgmt.containerinstance.models.ContainerGroupDiagnostics": null, - "azure.mgmt.containerinstance.models.ContainerGroupIdentity": null, - "azure.mgmt.containerinstance.models.ContainerGroupListResult": null, - "azure.mgmt.containerinstance.models.ContainerGroupProfile": null, - "azure.mgmt.containerinstance.models.ContainerGroupProfileListResult": null, - "azure.mgmt.containerinstance.models.ContainerGroupProfilePatch": null, - "azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition": null, - "azure.mgmt.containerinstance.models.ContainerGroupProfileStub": null, - "azure.mgmt.containerinstance.models.ContainerGroupPropertiesInstanceView": null, - "azure.mgmt.containerinstance.models.ContainerGroupSubnetId": null, - "azure.mgmt.containerinstance.models.ContainerHttpGet": null, - "azure.mgmt.containerinstance.models.ContainerPort": null, - "azure.mgmt.containerinstance.models.ContainerProbe": null, - "azure.mgmt.containerinstance.models.ContainerPropertiesInstanceView": null, - "azure.mgmt.containerinstance.models.ContainerState": null, - "azure.mgmt.containerinstance.models.DeploymentExtensionSpec": null, - "azure.mgmt.containerinstance.models.DnsConfiguration": null, - "azure.mgmt.containerinstance.models.ElasticProfile": null, - "azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicy": null, - "azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy": null, - "azure.mgmt.containerinstance.models.EncryptionProperties": null, - "azure.mgmt.containerinstance.models.EnvironmentVariable": null, - "azure.mgmt.containerinstance.models.ErrorAdditionalInfo": null, - "azure.mgmt.containerinstance.models.ErrorDetail": null, - "azure.mgmt.containerinstance.models.ErrorResponse": null, - "azure.mgmt.containerinstance.models.Event": null, - "azure.mgmt.containerinstance.models.FileShare": null, - "azure.mgmt.containerinstance.models.FileShareProperties": null, - "azure.mgmt.containerinstance.models.GitRepoVolume": null, - "azure.mgmt.containerinstance.models.GpuResource": null, - "azure.mgmt.containerinstance.models.HttpHeader": null, - "azure.mgmt.containerinstance.models.IdentityAccessControl": null, - "azure.mgmt.containerinstance.models.IdentityAcls": null, - "azure.mgmt.containerinstance.models.ImageRegistryCredential": null, - "azure.mgmt.containerinstance.models.InitContainerDefinition": null, - "azure.mgmt.containerinstance.models.InitContainerPropertiesDefinitionInstanceView": null, - "azure.mgmt.containerinstance.models.IpAddress": null, - "azure.mgmt.containerinstance.models.ListResultContainerGroupProperties": null, - "azure.mgmt.containerinstance.models.ListResultContainerGroup": null, - "azure.mgmt.containerinstance.models.LoadBalancer": null, - "azure.mgmt.containerinstance.models.LoadBalancerBackendAddressPool": null, - "azure.mgmt.containerinstance.models.LogAnalytics": null, - "azure.mgmt.containerinstance.models.Logs": null, - "azure.mgmt.containerinstance.models.NetworkProfile": null, - "azure.mgmt.containerinstance.models.NGroup": null, - "azure.mgmt.containerinstance.models.NGroupCGPropertyContainer": null, - "azure.mgmt.containerinstance.models.NGroupCGPropertyContainerProperties": null, - "azure.mgmt.containerinstance.models.NGroupCGPropertyVolume": null, - "azure.mgmt.containerinstance.models.NGroupContainerGroupProperties": null, - "azure.mgmt.containerinstance.models.NGroupIdentity": null, - "azure.mgmt.containerinstance.models.NGroupPatch": null, - "azure.mgmt.containerinstance.models.NGroupSkus": null, - "azure.mgmt.containerinstance.models.NGroupsListResult": null, - "azure.mgmt.containerinstance.models.NGroupsSkusList": null, - "azure.mgmt.containerinstance.models.Operation": null, - "azure.mgmt.containerinstance.models.OperationDisplay": null, - "azure.mgmt.containerinstance.models.OperationListResult": null, - "azure.mgmt.containerinstance.models.PlacementProfile": null, - "azure.mgmt.containerinstance.models.Port": null, - "azure.mgmt.containerinstance.models.ResourceLimits": null, - "azure.mgmt.containerinstance.models.ResourceRequests": null, - "azure.mgmt.containerinstance.models.ResourceRequirements": null, - "azure.mgmt.containerinstance.models.SecretReference": null, - "azure.mgmt.containerinstance.models.SecurityContextCapabilitiesDefinition": null, - "azure.mgmt.containerinstance.models.SecurityContextDefinition": null, - "azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition": null, - "azure.mgmt.containerinstance.models.StorageProfile": null, - "azure.mgmt.containerinstance.models.SystemData": null, - "azure.mgmt.containerinstance.models.UpdateProfile": null, - "azure.mgmt.containerinstance.models.UpdateProfileRollingUpdateProfile": null, - "azure.mgmt.containerinstance.models.Usage": null, - "azure.mgmt.containerinstance.models.UsageListResult": null, - "azure.mgmt.containerinstance.models.UsageName": null, - "azure.mgmt.containerinstance.models.UserAssignedIdentities": null, - "azure.mgmt.containerinstance.models.Volume": null, - "azure.mgmt.containerinstance.models.VolumeMount": null, - "azure.mgmt.containerinstance.models.ContainerNetworkProtocol": null, - "azure.mgmt.containerinstance.models.GpuSku": null, - "azure.mgmt.containerinstance.models.Scheme": null, - "azure.mgmt.containerinstance.models.ContainerGroupNetworkProtocol": null, - "azure.mgmt.containerinstance.models.IdentityAccessLevel": null, - "azure.mgmt.containerinstance.models.ResourceIdentityType": null, - "azure.mgmt.containerinstance.models.ContainerGroupProvisioningState": null, - "azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy": null, - "azure.mgmt.containerinstance.models.ContainerGroupIpAddressType": null, - "azure.mgmt.containerinstance.models.DnsNameLabelReusePolicy": null, - "azure.mgmt.containerinstance.models.OperatingSystemTypes": null, - "azure.mgmt.containerinstance.models.LogAnalyticsLogType": null, - "azure.mgmt.containerinstance.models.ContainerGroupSku": null, - "azure.mgmt.containerinstance.models.ContainerGroupPriority": null, - "azure.mgmt.containerinstance.models.ContainerInstanceOperationsOrigin": null, - "azure.mgmt.containerinstance.models.AzureFileShareAccessType": null, - "azure.mgmt.containerinstance.models.AzureFileShareAccessTier": null, - "azure.mgmt.containerinstance.models.CreatedByType": null, - "azure.mgmt.containerinstance.models.NGroupProvisioningState": null, - "azure.mgmt.containerinstance.models.NGroupUpdateMode": null, - "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.list": null, - "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.list": null, - "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.list_by_resource_group": null, - "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.list_by_resource_group": null, - "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.get": null, - "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.get": null, - "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.begin_create_or_update": null, - "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.begin_create_or_update": null, - "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.update": null, - "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.update": null, - "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.begin_delete": null, - "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.begin_delete": null, - "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.begin_restart": null, - "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.begin_restart": null, - "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.stop": null, - "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.stop": null, - "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.begin_start": null, - "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.begin_start": null, - "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.get_outbound_network_dependencies_endpoints": null, - "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.get_outbound_network_dependencies_endpoints": null, - "azure.mgmt.containerinstance.operations.Operations.list": null, - "azure.mgmt.containerinstance.aio.operations.Operations.list": null, - "azure.mgmt.containerinstance.operations.LocationOperations.list_usage": null, - "azure.mgmt.containerinstance.aio.operations.LocationOperations.list_usage": null, - "azure.mgmt.containerinstance.operations.LocationOperations.list_cached_images": null, - "azure.mgmt.containerinstance.aio.operations.LocationOperations.list_cached_images": null, - "azure.mgmt.containerinstance.operations.LocationOperations.list_capabilities": null, - "azure.mgmt.containerinstance.aio.operations.LocationOperations.list_capabilities": null, - "azure.mgmt.containerinstance.operations.ContainersOperations.list_logs": null, - "azure.mgmt.containerinstance.aio.operations.ContainersOperations.list_logs": null, - "azure.mgmt.containerinstance.operations.ContainersOperations.execute_command": null, - "azure.mgmt.containerinstance.aio.operations.ContainersOperations.execute_command": null, - "azure.mgmt.containerinstance.operations.ContainersOperations.attach": null, - "azure.mgmt.containerinstance.aio.operations.ContainersOperations.attach": null, - "azure.mgmt.containerinstance.operations.SubnetServiceAssociationLinkOperations.begin_delete": null, - "azure.mgmt.containerinstance.aio.operations.SubnetServiceAssociationLinkOperations.begin_delete": null, - "azure.mgmt.containerinstance.operations.NGroupsOperations.get": null, - "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.get": null, - "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_create_or_update": null, - "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_create_or_update": null, - "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_update": null, - "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_update": null, - "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_delete": null, - "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_delete": null, - "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_start": null, - "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_start": null, - "azure.mgmt.containerinstance.operations.NGroupsOperations.stop": null, - "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.stop": null, - "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_restart": null, - "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_restart": null, - "azure.mgmt.containerinstance.operations.NGroupsOperations.list_by_resource_group": null, - "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.list_by_resource_group": null, - "azure.mgmt.containerinstance.operations.NGroupsOperations.list": null, - "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.list": null, - "azure.mgmt.containerinstance.operations.CGProfilesOperations.list_by_subscription": null, - "azure.mgmt.containerinstance.aio.operations.CGProfilesOperations.list_by_subscription": null, - "azure.mgmt.containerinstance.operations.CGProfilesOperations.list_by_resource_group": null, - "azure.mgmt.containerinstance.aio.operations.CGProfilesOperations.list_by_resource_group": null, - "azure.mgmt.containerinstance.operations.CGProfileOperations.create_or_update": null, - "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.create_or_update": null, - "azure.mgmt.containerinstance.operations.CGProfileOperations.update": null, - "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.update": null, - "azure.mgmt.containerinstance.operations.CGProfileOperations.get": null, - "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.get": null, - "azure.mgmt.containerinstance.operations.CGProfileOperations.delete": null, - "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.delete": null, - "azure.mgmt.containerinstance.operations.CGProfileOperations.list_all_revisions": null, - "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.list_all_revisions": null, - "azure.mgmt.containerinstance.operations.CGProfileOperations.get_by_revision_number": null, - "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.get_by_revision_number": null + "azure.mgmt.containerinstance.models.ApiEntityReference": "Microsoft.ContainerInstance.ApiEntityReference", + "azure.mgmt.containerinstance.models.ApplicationGateway": "Microsoft.ContainerInstance.ApplicationGateway", + "azure.mgmt.containerinstance.models.ApplicationGatewayBackendAddressPool": "Microsoft.ContainerInstance.ApplicationGatewayBackendAddressPool", + "azure.mgmt.containerinstance.models.ArmResource": "Azure.ResourceManager.CommonTypes.Resource", + "azure.mgmt.containerinstance.models.AzureFileVolume": "Microsoft.ContainerInstance.AzureFileVolume", + "azure.mgmt.containerinstance.models.CachedImages": "Microsoft.ContainerInstance.CachedImages", + "azure.mgmt.containerinstance.models.Capabilities": "Microsoft.ContainerInstance.Capabilities", + "azure.mgmt.containerinstance.models.CapabilitiesCapabilities": "Microsoft.ContainerInstance.CapabilitiesCapabilities", + "azure.mgmt.containerinstance.models.CloudError": "Microsoft.ContainerInstance.CloudError", + "azure.mgmt.containerinstance.models.CloudErrorBody": "Microsoft.ContainerInstance.CloudErrorBody", + "azure.mgmt.containerinstance.models.ConfidentialComputeProperties": "Microsoft.ContainerInstance.ConfidentialComputeProperties", + "azure.mgmt.containerinstance.models.ConfigMap": "Microsoft.ContainerInstance.ConfigMap", + "azure.mgmt.containerinstance.models.Container": "Microsoft.ContainerInstance.Container", + "azure.mgmt.containerinstance.models.ContainerAttachResponse": "Microsoft.ContainerInstance.ContainerAttachResponse", + "azure.mgmt.containerinstance.models.ContainerExec": "Microsoft.ContainerInstance.ContainerExec", + "azure.mgmt.containerinstance.models.ContainerExecRequest": "Microsoft.ContainerInstance.ContainerExecRequest", + "azure.mgmt.containerinstance.models.ContainerExecRequestTerminalSize": "Microsoft.ContainerInstance.ContainerExecRequestTerminalSize", + "azure.mgmt.containerinstance.models.ContainerExecResponse": "Microsoft.ContainerInstance.ContainerExecResponse", + "azure.mgmt.containerinstance.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource", + "azure.mgmt.containerinstance.models.ContainerGroup": "Microsoft.ContainerInstance.ContainerGroup", + "azure.mgmt.containerinstance.models.ContainerGroupDiagnostics": "Microsoft.ContainerInstance.ContainerGroupDiagnostics", + "azure.mgmt.containerinstance.models.ContainerGroupIdentity": "Microsoft.ContainerInstance.ContainerGroupIdentity", + "azure.mgmt.containerinstance.models.ContainerGroupProfile": "Microsoft.ContainerInstance.ContainerGroupProfile", + "azure.mgmt.containerinstance.models.ContainerGroupProfilePatch": "Microsoft.ContainerInstance.ContainerGroupProfilePatch", + "azure.mgmt.containerinstance.models.ContainerGroupProfileProperties": "Microsoft.ContainerInstance.ContainerGroupProfileProperties", + "azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition": "Microsoft.ContainerInstance.ContainerGroupProfileReferenceDefinition", + "azure.mgmt.containerinstance.models.ContainerGroupProfileStub": "Microsoft.ContainerInstance.ContainerGroupProfileStub", + "azure.mgmt.containerinstance.models.ContainerGroupPropertiesProperties": "Microsoft.ContainerInstance.ContainerGroupPropertiesProperties", + "azure.mgmt.containerinstance.models.ContainerGroupPropertiesPropertiesInstanceView": "Microsoft.ContainerInstance.ContainerGroupPropertiesPropertiesInstanceView", + "azure.mgmt.containerinstance.models.ContainerGroupSubnetId": "Microsoft.ContainerInstance.ContainerGroupSubnetId", + "azure.mgmt.containerinstance.models.ContainerHttpGet": "Microsoft.ContainerInstance.ContainerHttpGet", + "azure.mgmt.containerinstance.models.ContainerPort": "Microsoft.ContainerInstance.ContainerPort", + "azure.mgmt.containerinstance.models.ContainerProbe": "Microsoft.ContainerInstance.ContainerProbe", + "azure.mgmt.containerinstance.models.ContainerProperties": "Microsoft.ContainerInstance.ContainerProperties", + "azure.mgmt.containerinstance.models.ContainerPropertiesInstanceView": "Microsoft.ContainerInstance.ContainerPropertiesInstanceView", + "azure.mgmt.containerinstance.models.ContainerState": "Microsoft.ContainerInstance.ContainerState", + "azure.mgmt.containerinstance.models.DeploymentExtensionSpec": "Microsoft.ContainerInstance.DeploymentExtensionSpec", + "azure.mgmt.containerinstance.models.DeploymentExtensionSpecProperties": "Microsoft.ContainerInstance.DeploymentExtensionSpecProperties", + "azure.mgmt.containerinstance.models.DnsConfiguration": "Microsoft.ContainerInstance.DnsConfiguration", + "azure.mgmt.containerinstance.models.ElasticProfile": "Microsoft.ContainerInstance.ElasticProfile", + "azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicy": "Microsoft.ContainerInstance.ElasticProfileContainerGroupNamingPolicy", + "azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy": "Microsoft.ContainerInstance.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy", + "azure.mgmt.containerinstance.models.EncryptionProperties": "Microsoft.ContainerInstance.EncryptionProperties", + "azure.mgmt.containerinstance.models.EnvironmentVariable": "Microsoft.ContainerInstance.EnvironmentVariable", + "azure.mgmt.containerinstance.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo", + "azure.mgmt.containerinstance.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail", + "azure.mgmt.containerinstance.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse", + "azure.mgmt.containerinstance.models.Event": "Microsoft.ContainerInstance.Event", + "azure.mgmt.containerinstance.models.FileShare": "Microsoft.ContainerInstance.FileShare", + "azure.mgmt.containerinstance.models.FileShareProperties": "Microsoft.ContainerInstance.FileShareProperties", + "azure.mgmt.containerinstance.models.GitRepoVolume": "Microsoft.ContainerInstance.GitRepoVolume", + "azure.mgmt.containerinstance.models.GpuResource": "Microsoft.ContainerInstance.GpuResource", + "azure.mgmt.containerinstance.models.HttpHeader": "Microsoft.ContainerInstance.HttpHeader", + "azure.mgmt.containerinstance.models.IdentityAccessControl": "Microsoft.ContainerInstance.IdentityAccessControl", + "azure.mgmt.containerinstance.models.IdentityAcls": "Microsoft.ContainerInstance.IdentityAcls", + "azure.mgmt.containerinstance.models.ImageRegistryCredential": "Microsoft.ContainerInstance.ImageRegistryCredential", + "azure.mgmt.containerinstance.models.InitContainerDefinition": "Microsoft.ContainerInstance.InitContainerDefinition", + "azure.mgmt.containerinstance.models.InitContainerPropertiesDefinition": "Microsoft.ContainerInstance.InitContainerPropertiesDefinition", + "azure.mgmt.containerinstance.models.InitContainerPropertiesDefinitionInstanceView": "Microsoft.ContainerInstance.InitContainerPropertiesDefinitionInstanceView", + "azure.mgmt.containerinstance.models.IpAddress": "Microsoft.ContainerInstance.IpAddress", + "azure.mgmt.containerinstance.models.ListResultContainerGroup": "Microsoft.ContainerInstance.ListResultContainerGroup", + "azure.mgmt.containerinstance.models.ListResultContainerGroupPropertiesProperties": "Microsoft.ContainerInstance.ListResultContainerGroupPropertiesProperties", + "azure.mgmt.containerinstance.models.LoadBalancer": "Microsoft.ContainerInstance.LoadBalancer", + "azure.mgmt.containerinstance.models.LoadBalancerBackendAddressPool": "Microsoft.ContainerInstance.LoadBalancerBackendAddressPool", + "azure.mgmt.containerinstance.models.LogAnalytics": "Microsoft.ContainerInstance.LogAnalytics", + "azure.mgmt.containerinstance.models.Logs": "Microsoft.ContainerInstance.Logs", + "azure.mgmt.containerinstance.models.NetworkProfile": "Microsoft.ContainerInstance.NetworkProfile", + "azure.mgmt.containerinstance.models.NGroup": "Microsoft.ContainerInstance.NGroup", + "azure.mgmt.containerinstance.models.NGroupCGPropertyContainer": "Microsoft.ContainerInstance.NGroupCGPropertyContainer", + "azure.mgmt.containerinstance.models.NGroupCGPropertyContainerProperties": "Microsoft.ContainerInstance.NGroupCGPropertyContainerProperties", + "azure.mgmt.containerinstance.models.NGroupCGPropertyVolume": "Microsoft.ContainerInstance.NGroupCGPropertyVolume", + "azure.mgmt.containerinstance.models.NGroupContainerGroupProperties": "Microsoft.ContainerInstance.NGroupContainerGroupProperties", + "azure.mgmt.containerinstance.models.NGroupIdentity": "Microsoft.ContainerInstance.NGroupIdentity", + "azure.mgmt.containerinstance.models.NGroupPatch": "Microsoft.ContainerInstance.NGroupPatch", + "azure.mgmt.containerinstance.models.NGroupProperties": "Microsoft.ContainerInstance.NGroupProperties", + "azure.mgmt.containerinstance.models.Operation": "Microsoft.ContainerInstance.Operation", + "azure.mgmt.containerinstance.models.OperationDisplay": "Microsoft.ContainerInstance.OperationDisplay", + "azure.mgmt.containerinstance.models.PlacementProfile": "Microsoft.ContainerInstance.PlacementProfile", + "azure.mgmt.containerinstance.models.Port": "Microsoft.ContainerInstance.Port", + "azure.mgmt.containerinstance.models.Resource": "Microsoft.ContainerInstance.Resource", + "azure.mgmt.containerinstance.models.ResourceLimits": "Microsoft.ContainerInstance.ResourceLimits", + "azure.mgmt.containerinstance.models.ResourceRequests": "Microsoft.ContainerInstance.ResourceRequests", + "azure.mgmt.containerinstance.models.ResourceRequirements": "Microsoft.ContainerInstance.ResourceRequirements", + "azure.mgmt.containerinstance.models.SecretReference": "Microsoft.ContainerInstance.SecretReference", + "azure.mgmt.containerinstance.models.SecurityContextCapabilitiesDefinition": "Microsoft.ContainerInstance.SecurityContextCapabilitiesDefinition", + "azure.mgmt.containerinstance.models.SecurityContextDefinition": "Microsoft.ContainerInstance.SecurityContextDefinition", + "azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition": "Microsoft.ContainerInstance.StandbyPoolProfileDefinition", + "azure.mgmt.containerinstance.models.StorageProfile": "Microsoft.ContainerInstance.StorageProfile", + "azure.mgmt.containerinstance.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData", + "azure.mgmt.containerinstance.models.UpdateProfile": "Microsoft.ContainerInstance.UpdateProfile", + "azure.mgmt.containerinstance.models.UpdateProfileRollingUpdateProfile": "Microsoft.ContainerInstance.UpdateProfileRollingUpdateProfile", + "azure.mgmt.containerinstance.models.Usage": "Microsoft.ContainerInstance.Usage", + "azure.mgmt.containerinstance.models.UsageName": "Microsoft.ContainerInstance.UsageName", + "azure.mgmt.containerinstance.models.UserAssignedIdentities": "Microsoft.ContainerInstance.UserAssignedIdentities", + "azure.mgmt.containerinstance.models.Volume": "Microsoft.ContainerInstance.Volume", + "azure.mgmt.containerinstance.models.VolumeMount": "Microsoft.ContainerInstance.VolumeMount", + "azure.mgmt.containerinstance.models.ContainerInstanceOperationsOrigin": "Microsoft.ContainerInstance.ContainerInstanceOperationsOrigin", + "azure.mgmt.containerinstance.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType", + "azure.mgmt.containerinstance.models.ResourceIdentityType": "Microsoft.ContainerInstance.ResourceIdentityType", + "azure.mgmt.containerinstance.models.ContainerNetworkProtocol": "Microsoft.ContainerInstance.ContainerNetworkProtocol", + "azure.mgmt.containerinstance.models.GpuSku": "Microsoft.ContainerInstance.GpuSku", + "azure.mgmt.containerinstance.models.Scheme": "Microsoft.ContainerInstance.Scheme", + "azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy": "Microsoft.ContainerInstance.ContainerGroupRestartPolicy", + "azure.mgmt.containerinstance.models.ContainerGroupNetworkProtocol": "Microsoft.ContainerInstance.ContainerGroupNetworkProtocol", + "azure.mgmt.containerinstance.models.ContainerGroupIpAddressType": "Microsoft.ContainerInstance.ContainerGroupIpAddressType", + "azure.mgmt.containerinstance.models.DnsNameLabelReusePolicy": "Microsoft.ContainerInstance.DnsNameLabelReusePolicy", + "azure.mgmt.containerinstance.models.OperatingSystemTypes": "Microsoft.ContainerInstance.OperatingSystemTypes", + "azure.mgmt.containerinstance.models.LogAnalyticsLogType": "Microsoft.ContainerInstance.LogAnalyticsLogType", + "azure.mgmt.containerinstance.models.ContainerGroupSku": "Microsoft.ContainerInstance.ContainerGroupSku", + "azure.mgmt.containerinstance.models.ContainerGroupPriority": "Microsoft.ContainerInstance.ContainerGroupPriority", + "azure.mgmt.containerinstance.models.IdentityAccessLevel": "Microsoft.ContainerInstance.IdentityAccessLevel", + "azure.mgmt.containerinstance.models.ContainerGroupProvisioningState": "Microsoft.ContainerInstance.ContainerGroupProvisioningState", + "azure.mgmt.containerinstance.models.AzureFileShareAccessType": "Microsoft.ContainerInstance.AzureFileShareAccessType", + "azure.mgmt.containerinstance.models.AzureFileShareAccessTier": "Microsoft.ContainerInstance.AzureFileShareAccessTier", + "azure.mgmt.containerinstance.models.NGroupProvisioningState": "Microsoft.ContainerInstance.NGroupProvisioningState", + "azure.mgmt.containerinstance.models.NGroupUpdateMode": "Microsoft.ContainerInstance.NGroupUpdateMode", + "azure.mgmt.containerinstance.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list", + "azure.mgmt.containerinstance.aio.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list", + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.get": "Microsoft.ContainerInstance.ContainerGroups.get", + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.get": "Microsoft.ContainerInstance.ContainerGroups.get", + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.begin_create_or_update": "Microsoft.ContainerInstance.ContainerGroups.createOrUpdate", + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.begin_create_or_update": "Microsoft.ContainerInstance.ContainerGroups.createOrUpdate", + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.update": "Microsoft.ContainerInstance.ContainerGroups.update", + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.update": "Microsoft.ContainerInstance.ContainerGroups.update", + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.begin_delete": "Microsoft.ContainerInstance.ContainerGroups.delete", + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.begin_delete": "Microsoft.ContainerInstance.ContainerGroups.delete", + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.begin_restart": "Microsoft.ContainerInstance.ContainerGroups.restart", + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.begin_restart": "Microsoft.ContainerInstance.ContainerGroups.restart", + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.stop": "Microsoft.ContainerInstance.ContainerGroups.stop", + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.stop": "Microsoft.ContainerInstance.ContainerGroups.stop", + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.begin_start": "Microsoft.ContainerInstance.ContainerGroups.start", + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.begin_start": "Microsoft.ContainerInstance.ContainerGroups.start", + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.get_outbound_network_dependencies_endpoints": "Microsoft.ContainerInstance.ContainerGroups.getOutboundNetworkDependenciesEndpoints", + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.get_outbound_network_dependencies_endpoints": "Microsoft.ContainerInstance.ContainerGroups.getOutboundNetworkDependenciesEndpoints", + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.list": "Microsoft.ContainerInstance.ContainerGroupsOperationGroup.list", + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.list": "Microsoft.ContainerInstance.ContainerGroupsOperationGroup.list", + "azure.mgmt.containerinstance.operations.ContainerGroupsOperations.list_by_resource_group": "Microsoft.ContainerInstance.ContainerGroupsOperationGroup.listByResourceGroup", + "azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations.list_by_resource_group": "Microsoft.ContainerInstance.ContainerGroupsOperationGroup.listByResourceGroup", + "azure.mgmt.containerinstance.operations.NGroupsOperations.get": "Microsoft.ContainerInstance.NGroups.get", + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.get": "Microsoft.ContainerInstance.NGroups.get", + "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_create_or_update": "Microsoft.ContainerInstance.NGroups.createOrUpdate", + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_create_or_update": "Microsoft.ContainerInstance.NGroups.createOrUpdate", + "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_update": "Microsoft.ContainerInstance.NGroups.update", + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_update": "Microsoft.ContainerInstance.NGroups.update", + "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_delete": "Microsoft.ContainerInstance.NGroups.delete", + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_delete": "Microsoft.ContainerInstance.NGroups.delete", + "azure.mgmt.containerinstance.operations.NGroupsOperations.list_by_resource_group": "Microsoft.ContainerInstance.NGroups.listByResourceGroup", + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.list_by_resource_group": "Microsoft.ContainerInstance.NGroups.listByResourceGroup", + "azure.mgmt.containerinstance.operations.NGroupsOperations.list": "Microsoft.ContainerInstance.NGroups.list", + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.list": "Microsoft.ContainerInstance.NGroups.list", + "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_start": "Microsoft.ContainerInstance.NGroups.start", + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_start": "Microsoft.ContainerInstance.NGroups.start", + "azure.mgmt.containerinstance.operations.NGroupsOperations.stop": "Microsoft.ContainerInstance.NGroups.stop", + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.stop": "Microsoft.ContainerInstance.NGroups.stop", + "azure.mgmt.containerinstance.operations.NGroupsOperations.begin_restart": "Microsoft.ContainerInstance.NGroups.restart", + "azure.mgmt.containerinstance.aio.operations.NGroupsOperations.begin_restart": "Microsoft.ContainerInstance.NGroups.restart", + "azure.mgmt.containerinstance.operations.CGProfileOperations.get_by_revision_number": "Microsoft.ContainerInstance.CGProfile.getByRevisionNumber", + "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.get_by_revision_number": "Microsoft.ContainerInstance.CGProfile.getByRevisionNumber", + "azure.mgmt.containerinstance.operations.CGProfileOperations.list_all_revisions": "Microsoft.ContainerInstance.CGProfile.listAllRevisions", + "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.list_all_revisions": "Microsoft.ContainerInstance.CGProfile.listAllRevisions", + "azure.mgmt.containerinstance.operations.CGProfileOperations.get": "Microsoft.ContainerInstance.ContainerGroupProfiles.get", + "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.get": "Microsoft.ContainerInstance.ContainerGroupProfiles.get", + "azure.mgmt.containerinstance.operations.CGProfileOperations.create_or_update": "Microsoft.ContainerInstance.ContainerGroupProfiles.createOrUpdate", + "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.create_or_update": "Microsoft.ContainerInstance.ContainerGroupProfiles.createOrUpdate", + "azure.mgmt.containerinstance.operations.CGProfileOperations.update": "Microsoft.ContainerInstance.ContainerGroupProfiles.update", + "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.update": "Microsoft.ContainerInstance.ContainerGroupProfiles.update", + "azure.mgmt.containerinstance.operations.CGProfileOperations.delete": "Microsoft.ContainerInstance.ContainerGroupProfiles.delete", + "azure.mgmt.containerinstance.aio.operations.CGProfileOperations.delete": "Microsoft.ContainerInstance.ContainerGroupProfiles.delete", + "azure.mgmt.containerinstance.operations.ContainersOperations.list_logs": "Microsoft.ContainerInstance.ContainerGroups.listLogs", + "azure.mgmt.containerinstance.aio.operations.ContainersOperations.list_logs": "Microsoft.ContainerInstance.ContainerGroups.listLogs", + "azure.mgmt.containerinstance.operations.ContainersOperations.execute_command": "Microsoft.ContainerInstance.ContainerGroups.executeCommand", + "azure.mgmt.containerinstance.aio.operations.ContainersOperations.execute_command": "Microsoft.ContainerInstance.ContainerGroups.executeCommand", + "azure.mgmt.containerinstance.operations.ContainersOperations.attach": "Microsoft.ContainerInstance.ContainerGroups.attach", + "azure.mgmt.containerinstance.aio.operations.ContainersOperations.attach": "Microsoft.ContainerInstance.ContainerGroups.attach", + "azure.mgmt.containerinstance.operations.CGProfilesOperations.list_by_subscription": "Microsoft.ContainerInstance.ContainerGroupProfiles.listBySubscription", + "azure.mgmt.containerinstance.aio.operations.CGProfilesOperations.list_by_subscription": "Microsoft.ContainerInstance.ContainerGroupProfiles.listBySubscription", + "azure.mgmt.containerinstance.operations.CGProfilesOperations.list_by_resource_group": "Microsoft.ContainerInstance.ContainerGroupProfiles.listByResourceGroup", + "azure.mgmt.containerinstance.aio.operations.CGProfilesOperations.list_by_resource_group": "Microsoft.ContainerInstance.ContainerGroupProfiles.listByResourceGroup", + "azure.mgmt.containerinstance.operations.LocationOperations.list_usage": "Microsoft.ContainerInstance.LocationOperationGroup.listUsage", + "azure.mgmt.containerinstance.aio.operations.LocationOperations.list_usage": "Microsoft.ContainerInstance.LocationOperationGroup.listUsage", + "azure.mgmt.containerinstance.operations.LocationOperations.list_cached_images": "Microsoft.ContainerInstance.LocationOperationGroup.listCachedImages", + "azure.mgmt.containerinstance.aio.operations.LocationOperations.list_cached_images": "Microsoft.ContainerInstance.LocationOperationGroup.listCachedImages", + "azure.mgmt.containerinstance.operations.LocationOperations.list_capabilities": "Microsoft.ContainerInstance.LocationOperationGroup.listCapabilities", + "azure.mgmt.containerinstance.aio.operations.LocationOperations.list_capabilities": "Microsoft.ContainerInstance.LocationOperationGroup.listCapabilities", + "azure.mgmt.containerinstance.operations.SubnetServiceAssociationLinkOperations.begin_delete": "Microsoft.ContainerInstance.SubnetServiceAssociationLinkOperationGroup.delete", + "azure.mgmt.containerinstance.aio.operations.SubnetServiceAssociationLinkOperations.begin_delete": "Microsoft.ContainerInstance.SubnetServiceAssociationLinkOperationGroup.delete" } } \ No newline at end of file diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/__init__.py index 754b06db49f1..535cdfaa3cc0 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._container_instance_management_client import ContainerInstanceManagementClient # type: ignore +from ._client import ContainerInstanceClient # type: ignore from ._version import VERSION __version__ = VERSION @@ -25,7 +25,7 @@ from ._patch import patch_sdk as _patch_sdk __all__ = [ - "ContainerInstanceManagementClient", + "ContainerInstanceClient", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_container_instance_management_client.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_client.py similarity index 84% rename from sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_container_instance_management_client.py rename to sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_client.py index fa31ccc44627..6024554bc5f8 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_container_instance_management_client.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_client.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -17,8 +17,7 @@ from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy from azure.mgmt.core.tools import get_arm_endpoints -from . import models as _models -from ._configuration import ContainerInstanceManagementClientConfiguration +from ._configuration import ContainerInstanceClientConfiguration from ._utils.serialization import Deserializer, Serializer from .operations import ( CGProfileOperations, @@ -36,37 +35,38 @@ from azure.core.credentials import TokenCredential -class ContainerInstanceManagementClient: # pylint: disable=too-many-instance-attributes - """ContainerInstanceManagementClient. +class ContainerInstanceClient: # pylint: disable=too-many-instance-attributes + """// (missing-service-description) Add service description. - :ivar container_groups: ContainerGroupsOperations operations - :vartype container_groups: azure.mgmt.containerinstance.operations.ContainerGroupsOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.containerinstance.operations.Operations - :ivar location: LocationOperations operations - :vartype location: azure.mgmt.containerinstance.operations.LocationOperations + :ivar container_groups: ContainerGroupsOperations operations + :vartype container_groups: azure.mgmt.containerinstance.operations.ContainerGroupsOperations + :ivar ngroups: NGroupsOperations operations + :vartype ngroups: azure.mgmt.containerinstance.operations.NGroupsOperations + :ivar cg_profile: CGProfileOperations operations + :vartype cg_profile: azure.mgmt.containerinstance.operations.CGProfileOperations :ivar containers: ContainersOperations operations :vartype containers: azure.mgmt.containerinstance.operations.ContainersOperations + :ivar cg_profiles: CGProfilesOperations operations + :vartype cg_profiles: azure.mgmt.containerinstance.operations.CGProfilesOperations + :ivar location: LocationOperations operations + :vartype location: azure.mgmt.containerinstance.operations.LocationOperations :ivar subnet_service_association_link: SubnetServiceAssociationLinkOperations operations :vartype subnet_service_association_link: azure.mgmt.containerinstance.operations.SubnetServiceAssociationLinkOperations - :ivar ngroups: NGroupsOperations operations - :vartype ngroups: azure.mgmt.containerinstance.operations.NGroupsOperations - :ivar cg_profiles: CGProfilesOperations operations - :vartype cg_profiles: azure.mgmt.containerinstance.operations.CGProfilesOperations - :ivar cg_profile: CGProfileOperations operations - :vartype cg_profile: azure.mgmt.containerinstance.operations.CGProfileOperations - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :param base_url: Service URL. Default value is None. + :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2025-09-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are "2025-09-01" + and None. Default value is "2025-09-01". Note that overriding this default value may result in + unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -81,14 +81,16 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: + _endpoint = "{endpoint}" _cloud = cloud_setting or settings.current.azure_cloud # type: ignore _endpoints = get_arm_endpoints(_cloud) if not base_url: base_url = _endpoints["resource_manager"] credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"]) - self._config = ContainerInstanceManagementClientConfiguration( + self._config = ContainerInstanceClientConfiguration( credential=credential, subscription_id=subscription_id, + base_url=cast(str, base_url), cloud_setting=cloud_setting, credential_scopes=credential_scopes, **kwargs @@ -112,32 +114,31 @@ def __init__( policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, self._config.http_logging_policy, ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs) + self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, _endpoint), policies=_policies, **kwargs) - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) + self._serialize = Serializer() + self._deserialize = Deserializer() self._serialize.client_side_validation = False + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) self.container_groups = ContainerGroupsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) - self.location = LocationOperations(self._client, self._config, self._serialize, self._deserialize) + self.ngroups = NGroupsOperations(self._client, self._config, self._serialize, self._deserialize) + self.cg_profile = CGProfileOperations(self._client, self._config, self._serialize, self._deserialize) self.containers = ContainersOperations(self._client, self._config, self._serialize, self._deserialize) + self.cg_profiles = CGProfilesOperations(self._client, self._config, self._serialize, self._deserialize) + self.location = LocationOperations(self._client, self._config, self._serialize, self._deserialize) self.subnet_service_association_link = SubnetServiceAssociationLinkOperations( self._client, self._config, self._serialize, self._deserialize ) - self.ngroups = NGroupsOperations(self._client, self._config, self._serialize, self._deserialize) - self.cg_profiles = CGProfilesOperations(self._client, self._config, self._serialize, self._deserialize) - self.cg_profile = CGProfileOperations(self._client, self._config, self._serialize, self._deserialize) - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: + def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: """Runs the network request through the client's chained policies. >>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") - >>> response = client._send_request(request) + >>> response = client.send_request(request) For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request @@ -150,7 +151,11 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: """ request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore def close(self) -> None: diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py index a961d26f028b..b99db49fb1ea 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -18,21 +18,24 @@ from azure.core.credentials import TokenCredential -class ContainerInstanceManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for ContainerInstanceManagementClient. +class ContainerInstanceClientConfiguration: # pylint: disable=too-many-instance-attributes + """Configuration for ContainerInstanceClient. Note that all parameters used to create this instance are saved as instance attributes. - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str + :param base_url: Service host. Default value is "https://management.azure.com". + :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2025-09-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are "2025-09-01" + and None. Default value is "2025-09-01". Note that overriding this default value may result in + unsupported behavior. :paramtype api_version: str """ @@ -40,6 +43,7 @@ def __init__( self, credential: "TokenCredential", subscription_id: str, + base_url: str = "https://management.azure.com", cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: @@ -52,6 +56,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id + self.base_url = base_url self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_patch.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_patch.py index 17dbc073e01b..87676c65a8f0 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_patch.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_patch.py @@ -1,32 +1,21 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# # Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------- +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" + + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/__init__.py index 0af9b28f6607..8026245c2abc 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/__init__.py @@ -1,6 +1,6 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/model_base.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/model_base.py new file mode 100644 index 000000000000..7b7f8ba67b53 --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/model_base.py @@ -0,0 +1,1350 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +# pylint: disable=protected-access, broad-except + +import copy +import calendar +import decimal +import functools +import sys +import logging +import base64 +import re +import typing +import enum +import email.utils +from datetime import datetime, date, time, timedelta, timezone +from json import JSONEncoder +import xml.etree.ElementTree as ET +from collections.abc import MutableMapping +from typing_extensions import Self +import isodate +from azure.core.exceptions import DeserializationError +from azure.core import CaseInsensitiveEnumMeta +from azure.core.pipeline import PipelineResponse +from azure.core.serialization import _Null +from azure.core.rest import HttpResponse + +_LOGGER = logging.getLogger(__name__) + +__all__ = ["SdkJSONEncoder", "Model", "rest_field", "rest_discriminator"] + +TZ_UTC = timezone.utc +_T = typing.TypeVar("_T") +_NONE_TYPE = type(None) + + +def _timedelta_as_isostr(td: timedelta) -> str: + """Converts a datetime.timedelta object into an ISO 8601 formatted string, e.g. 'P4DT12H30M05S' + + Function adapted from the Tin Can Python project: https://github.com/RusticiSoftware/TinCanPython + + :param timedelta td: The timedelta to convert + :rtype: str + :return: ISO8601 version of this timedelta + """ + + # Split seconds to larger units + seconds = td.total_seconds() + minutes, seconds = divmod(seconds, 60) + hours, minutes = divmod(minutes, 60) + days, hours = divmod(hours, 24) + + days, hours, minutes = list(map(int, (days, hours, minutes))) + seconds = round(seconds, 6) + + # Build date + date_str = "" + if days: + date_str = "%sD" % days + + if hours or minutes or seconds: + # Build time + time_str = "T" + + # Hours + bigger_exists = date_str or hours + if bigger_exists: + time_str += "{:02}H".format(hours) + + # Minutes + bigger_exists = bigger_exists or minutes + if bigger_exists: + time_str += "{:02}M".format(minutes) + + # Seconds + try: + if seconds.is_integer(): + seconds_string = "{:02}".format(int(seconds)) + else: + # 9 chars long w/ leading 0, 6 digits after decimal + seconds_string = "%09.6f" % seconds + # Remove trailing zeros + seconds_string = seconds_string.rstrip("0") + except AttributeError: # int.is_integer() raises + seconds_string = "{:02}".format(seconds) + + time_str += "{}S".format(seconds_string) + else: + time_str = "" + + return "P" + date_str + time_str + + +def _serialize_bytes(o, format: typing.Optional[str] = None) -> str: + encoded = base64.b64encode(o).decode() + if format == "base64url": + return encoded.strip("=").replace("+", "-").replace("/", "_") + return encoded + + +def _serialize_datetime(o, format: typing.Optional[str] = None): + if hasattr(o, "year") and hasattr(o, "hour"): + if format == "rfc7231": + return email.utils.format_datetime(o, usegmt=True) + if format == "unix-timestamp": + return int(calendar.timegm(o.utctimetuple())) + + # astimezone() fails for naive times in Python 2.7, so make make sure o is aware (tzinfo is set) + if not o.tzinfo: + iso_formatted = o.replace(tzinfo=TZ_UTC).isoformat() + else: + iso_formatted = o.astimezone(TZ_UTC).isoformat() + # Replace the trailing "+00:00" UTC offset with "Z" (RFC 3339: https://www.ietf.org/rfc/rfc3339.txt) + return iso_formatted.replace("+00:00", "Z") + # Next try datetime.date or datetime.time + return o.isoformat() + + +def _is_readonly(p): + try: + return p._visibility == ["read"] + except AttributeError: + return False + + +class SdkJSONEncoder(JSONEncoder): + """A JSON encoder that's capable of serializing datetime objects and bytes.""" + + def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): + super().__init__(*args, **kwargs) + self.exclude_readonly = exclude_readonly + self.format = format + + def default(self, o): # pylint: disable=too-many-return-statements + if _is_model(o): + if self.exclude_readonly: + readonly_props = [p._rest_name for p in o._attr_to_rest_field.values() if _is_readonly(p)] + return {k: v for k, v in o.items() if k not in readonly_props} + return dict(o.items()) + try: + return super(SdkJSONEncoder, self).default(o) + except TypeError: + if isinstance(o, _Null): + return None + if isinstance(o, decimal.Decimal): + return float(o) + if isinstance(o, (bytes, bytearray)): + return _serialize_bytes(o, self.format) + try: + # First try datetime.datetime + return _serialize_datetime(o, self.format) + except AttributeError: + pass + # Last, try datetime.timedelta + try: + return _timedelta_as_isostr(o) + except AttributeError: + # This will be raised when it hits value.total_seconds in the method above + pass + return super(SdkJSONEncoder, self).default(o) + + +_VALID_DATE = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" + r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") +_VALID_RFC7231 = re.compile( + r"(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s\d{2}\s" + r"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s\d{4}\s\d{2}:\d{2}:\d{2}\sGMT" +) + +_ARRAY_ENCODE_MAPPING = { + "pipeDelimited": "|", + "spaceDelimited": " ", + "commaDelimited": ",", + "newlineDelimited": "\n", +} + + +def _deserialize_array_encoded(delimit: str, attr): + if isinstance(attr, str): + if attr == "": + return [] + return attr.split(delimit) + return attr + + +def _deserialize_datetime(attr: typing.Union[str, datetime]) -> datetime: + """Deserialize ISO-8601 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + attr = attr.upper() + match = _VALID_DATE.match(attr) + if not match: + raise ValueError("Invalid datetime string: " + attr) + + check_decimal = attr.split(".") + if len(check_decimal) > 1: + decimal_str = "" + for digit in check_decimal[1]: + if digit.isdigit(): + decimal_str += digit + else: + break + if len(decimal_str) > 6: + attr = attr.replace(decimal_str, decimal_str[0:6]) + + date_obj = isodate.parse_datetime(attr) + test_utc = date_obj.utctimetuple() + if test_utc.tm_year > 9999 or test_utc.tm_year < 1: + raise OverflowError("Hit max or min date") + return date_obj # type: ignore[no-any-return] + + +def _deserialize_datetime_rfc7231(attr: typing.Union[str, datetime]) -> datetime: + """Deserialize RFC7231 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + match = _VALID_RFC7231.match(attr) + if not match: + raise ValueError("Invalid datetime string: " + attr) + + return email.utils.parsedate_to_datetime(attr) + + +def _deserialize_datetime_unix_timestamp(attr: typing.Union[float, datetime]) -> datetime: + """Deserialize unix timestamp into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + return datetime.fromtimestamp(attr, TZ_UTC) + + +def _deserialize_date(attr: typing.Union[str, date]) -> date: + """Deserialize ISO-8601 formatted string into Date object. + :param str attr: response string to be deserialized. + :rtype: date + :returns: The date object from that input + """ + # This must NOT use defaultmonth/defaultday. Using None ensure this raises an exception. + if isinstance(attr, date): + return attr + return isodate.parse_date(attr, defaultmonth=None, defaultday=None) # type: ignore + + +def _deserialize_time(attr: typing.Union[str, time]) -> time: + """Deserialize ISO-8601 formatted string into time object. + + :param str attr: response string to be deserialized. + :rtype: datetime.time + :returns: The time object from that input + """ + if isinstance(attr, time): + return attr + return isodate.parse_time(attr) # type: ignore[no-any-return] + + +def _deserialize_bytes(attr): + if isinstance(attr, (bytes, bytearray)): + return attr + return bytes(base64.b64decode(attr)) + + +def _deserialize_bytes_base64(attr): + if isinstance(attr, (bytes, bytearray)): + return attr + padding = "=" * (3 - (len(attr) + 3) % 4) # type: ignore + attr = attr + padding # type: ignore + encoded = attr.replace("-", "+").replace("_", "/") + return bytes(base64.b64decode(encoded)) + + +def _deserialize_duration(attr): + if isinstance(attr, timedelta): + return attr + return isodate.parse_duration(attr) + + +def _deserialize_decimal(attr): + if isinstance(attr, decimal.Decimal): + return attr + return decimal.Decimal(str(attr)) + + +def _deserialize_int_as_str(attr): + if isinstance(attr, int): + return attr + return int(attr) + + +_DESERIALIZE_MAPPING = { + datetime: _deserialize_datetime, + date: _deserialize_date, + time: _deserialize_time, + bytes: _deserialize_bytes, + bytearray: _deserialize_bytes, + timedelta: _deserialize_duration, + typing.Any: lambda x: x, + decimal.Decimal: _deserialize_decimal, +} + +_DESERIALIZE_MAPPING_WITHFORMAT = { + "rfc3339": _deserialize_datetime, + "rfc7231": _deserialize_datetime_rfc7231, + "unix-timestamp": _deserialize_datetime_unix_timestamp, + "base64": _deserialize_bytes, + "base64url": _deserialize_bytes_base64, +} + + +def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): + if annotation is int and rf and rf._format == "str": + return _deserialize_int_as_str + if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING: + return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format]) + if rf and rf._format: + return _DESERIALIZE_MAPPING_WITHFORMAT.get(rf._format) + return _DESERIALIZE_MAPPING.get(annotation) # pyright: ignore + + +def _get_type_alias_type(module_name: str, alias_name: str): + types = { + k: v + for k, v in sys.modules[module_name].__dict__.items() + if isinstance(v, typing._GenericAlias) # type: ignore + } + if alias_name not in types: + return alias_name + return types[alias_name] + + +def _get_model(module_name: str, model_name: str): + models = {k: v for k, v in sys.modules[module_name].__dict__.items() if isinstance(v, type)} + module_end = module_name.rsplit(".", 1)[0] + models.update({k: v for k, v in sys.modules[module_end].__dict__.items() if isinstance(v, type)}) + if isinstance(model_name, str): + model_name = model_name.split(".")[-1] + if model_name not in models: + return model_name + return models[model_name] + + +_UNSET = object() + + +class _MyMutableMapping(MutableMapping[str, typing.Any]): + def __init__(self, data: dict[str, typing.Any]) -> None: + self._data = data + + def __contains__(self, key: typing.Any) -> bool: + return key in self._data + + def __getitem__(self, key: str) -> typing.Any: + # If this key has been deserialized (for mutable types), we need to handle serialization + if hasattr(self, "_attr_to_rest_field"): + cache_attr = f"_deserialized_{key}" + if hasattr(self, cache_attr): + rf = _get_rest_field(getattr(self, "_attr_to_rest_field"), key) + if rf: + value = self._data.get(key) + if isinstance(value, (dict, list, set)): + # For mutable types, serialize and return + # But also update _data with serialized form and clear flag + # so mutations via this returned value affect _data + serialized = _serialize(value, rf._format) + # If serialized form is same type (no transformation needed), + # return _data directly so mutations work + if isinstance(serialized, type(value)) and serialized == value: + return self._data.get(key) + # Otherwise return serialized copy and clear flag + try: + object.__delattr__(self, cache_attr) + except AttributeError: + pass + # Store serialized form back + self._data[key] = serialized + return serialized + return self._data.__getitem__(key) + + def __setitem__(self, key: str, value: typing.Any) -> None: + # Clear any cached deserialized value when setting through dictionary access + cache_attr = f"_deserialized_{key}" + try: + object.__delattr__(self, cache_attr) + except AttributeError: + pass + self._data.__setitem__(key, value) + + def __delitem__(self, key: str) -> None: + self._data.__delitem__(key) + + def __iter__(self) -> typing.Iterator[typing.Any]: + return self._data.__iter__() + + def __len__(self) -> int: + return self._data.__len__() + + def __ne__(self, other: typing.Any) -> bool: + return not self.__eq__(other) + + def keys(self) -> typing.KeysView[str]: + """ + :returns: a set-like object providing a view on D's keys + :rtype: ~typing.KeysView + """ + return self._data.keys() + + def values(self) -> typing.ValuesView[typing.Any]: + """ + :returns: an object providing a view on D's values + :rtype: ~typing.ValuesView + """ + return self._data.values() + + def items(self) -> typing.ItemsView[str, typing.Any]: + """ + :returns: set-like object providing a view on D's items + :rtype: ~typing.ItemsView + """ + return self._data.items() + + def get(self, key: str, default: typing.Any = None) -> typing.Any: + """ + Get the value for key if key is in the dictionary, else default. + :param str key: The key to look up. + :param any default: The value to return if key is not in the dictionary. Defaults to None + :returns: D[k] if k in D, else d. + :rtype: any + """ + try: + return self[key] + except KeyError: + return default + + @typing.overload + def pop(self, key: str) -> typing.Any: ... # pylint: disable=arguments-differ + + @typing.overload + def pop(self, key: str, default: _T) -> _T: ... # pylint: disable=signature-differs + + @typing.overload + def pop(self, key: str, default: typing.Any) -> typing.Any: ... # pylint: disable=signature-differs + + def pop(self, key: str, default: typing.Any = _UNSET) -> typing.Any: + """ + Removes specified key and return the corresponding value. + :param str key: The key to pop. + :param any default: The value to return if key is not in the dictionary + :returns: The value corresponding to the key. + :rtype: any + :raises KeyError: If key is not found and default is not given. + """ + if default is _UNSET: + return self._data.pop(key) + return self._data.pop(key, default) + + def popitem(self) -> tuple[str, typing.Any]: + """ + Removes and returns some (key, value) pair + :returns: The (key, value) pair. + :rtype: tuple + :raises KeyError: if D is empty. + """ + return self._data.popitem() + + def clear(self) -> None: + """ + Remove all items from D. + """ + self._data.clear() + + def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ + """ + Updates D from mapping/iterable E and F. + :param any args: Either a mapping object or an iterable of key-value pairs. + """ + self._data.update(*args, **kwargs) + + @typing.overload + def setdefault(self, key: str, default: None = None) -> None: ... + + @typing.overload + def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint: disable=signature-differs + + def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any: + """ + Same as calling D.get(k, d), and setting D[k]=d if k not found + :param str key: The key to look up. + :param any default: The value to set if key is not in the dictionary + :returns: D[k] if k in D, else d. + :rtype: any + """ + if default is _UNSET: + return self._data.setdefault(key) + return self._data.setdefault(key, default) + + def __eq__(self, other: typing.Any) -> bool: + if isinstance(other, _MyMutableMapping): + return self._data == other._data + try: + other_model = self.__class__(other) + except Exception: + return False + return self._data == other_model._data + + def __repr__(self) -> str: + return str(self._data) + + +def _is_model(obj: typing.Any) -> bool: + return getattr(obj, "_is_model", False) + + +def _serialize(o, format: typing.Optional[str] = None): # pylint: disable=too-many-return-statements + if isinstance(o, list): + if format in _ARRAY_ENCODE_MAPPING and all(isinstance(x, str) for x in o): + return _ARRAY_ENCODE_MAPPING[format].join(o) + return [_serialize(x, format) for x in o] + if isinstance(o, dict): + return {k: _serialize(v, format) for k, v in o.items()} + if isinstance(o, set): + return {_serialize(x, format) for x in o} + if isinstance(o, tuple): + return tuple(_serialize(x, format) for x in o) + if isinstance(o, (bytes, bytearray)): + return _serialize_bytes(o, format) + if isinstance(o, decimal.Decimal): + return float(o) + if isinstance(o, enum.Enum): + return o.value + if isinstance(o, int): + if format == "str": + return str(o) + return o + try: + # First try datetime.datetime + return _serialize_datetime(o, format) + except AttributeError: + pass + # Last, try datetime.timedelta + try: + return _timedelta_as_isostr(o) + except AttributeError: + # This will be raised when it hits value.total_seconds in the method above + pass + return o + + +def _get_rest_field(attr_to_rest_field: dict[str, "_RestField"], rest_name: str) -> typing.Optional["_RestField"]: + try: + return next(rf for rf in attr_to_rest_field.values() if rf._rest_name == rest_name) + except StopIteration: + return None + + +def _create_value(rf: typing.Optional["_RestField"], value: typing.Any) -> typing.Any: + if not rf: + return _serialize(value, None) + if rf._is_multipart_file_input: + return value + if rf._is_model: + return _deserialize(rf._type, value) + if isinstance(value, ET.Element): + value = _deserialize(rf._type, value) + return _serialize(value, rf._format) + + +class Model(_MyMutableMapping): + _is_model = True + # label whether current class's _attr_to_rest_field has been calculated + # could not see _attr_to_rest_field directly because subclass inherits it from parent class + _calculated: set[str] = set() + + def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None: + class_name = self.__class__.__name__ + if len(args) > 1: + raise TypeError(f"{class_name}.__init__() takes 2 positional arguments but {len(args) + 1} were given") + dict_to_pass = { + rest_field._rest_name: rest_field._default + for rest_field in self._attr_to_rest_field.values() + if rest_field._default is not _UNSET + } + if args: # pylint: disable=too-many-nested-blocks + if isinstance(args[0], ET.Element): + existed_attr_keys = [] + model_meta = getattr(self, "_xml", {}) + + for rf in self._attr_to_rest_field.values(): + prop_meta = getattr(rf, "_xml", {}) + xml_name = prop_meta.get("name", rf._rest_name) + xml_ns = prop_meta.get("ns", model_meta.get("ns", None)) + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + + # attribute + if prop_meta.get("attribute", False) and args[0].get(xml_name) is not None: + existed_attr_keys.append(xml_name) + dict_to_pass[rf._rest_name] = _deserialize(rf._type, args[0].get(xml_name)) + continue + + # unwrapped element is array + if prop_meta.get("unwrapped", False): + # unwrapped array could either use prop items meta/prop meta + if prop_meta.get("itemsName"): + xml_name = prop_meta.get("itemsName") + xml_ns = prop_meta.get("itemNs") + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + items = args[0].findall(xml_name) # pyright: ignore + if len(items) > 0: + existed_attr_keys.append(xml_name) + dict_to_pass[rf._rest_name] = _deserialize(rf._type, items) + elif not rf._is_optional: + existed_attr_keys.append(xml_name) + dict_to_pass[rf._rest_name] = [] + continue + + # text element is primitive type + if prop_meta.get("text", False): + if args[0].text is not None: + dict_to_pass[rf._rest_name] = _deserialize(rf._type, args[0].text) + continue + + # wrapped element could be normal property or array, it should only have one element + item = args[0].find(xml_name) + if item is not None: + existed_attr_keys.append(xml_name) + dict_to_pass[rf._rest_name] = _deserialize(rf._type, item) + + # rest thing is additional properties + for e in args[0]: + if e.tag not in existed_attr_keys: + dict_to_pass[e.tag] = _convert_element(e) + else: + dict_to_pass.update( + {k: _create_value(_get_rest_field(self._attr_to_rest_field, k), v) for k, v in args[0].items()} + ) + else: + non_attr_kwargs = [k for k in kwargs if k not in self._attr_to_rest_field] + if non_attr_kwargs: + # actual type errors only throw the first wrong keyword arg they see, so following that. + raise TypeError(f"{class_name}.__init__() got an unexpected keyword argument '{non_attr_kwargs[0]}'") + dict_to_pass.update( + { + self._attr_to_rest_field[k]._rest_name: _create_value(self._attr_to_rest_field[k], v) + for k, v in kwargs.items() + if v is not None + } + ) + super().__init__(dict_to_pass) + + def copy(self) -> "Model": + return Model(self.__dict__) + + def __new__(cls, *args: typing.Any, **kwargs: typing.Any) -> Self: + if f"{cls.__module__}.{cls.__qualname__}" not in cls._calculated: + # we know the last nine classes in mro are going to be 'Model', '_MyMutableMapping', 'MutableMapping', + # 'Mapping', 'Collection', 'Sized', 'Iterable', 'Container' and 'object' + mros = cls.__mro__[:-9][::-1] # ignore parents, and reverse the mro order + attr_to_rest_field: dict[str, _RestField] = { # map attribute name to rest_field property + k: v for mro_class in mros for k, v in mro_class.__dict__.items() if k[0] != "_" and hasattr(v, "_type") + } + annotations = { + k: v + for mro_class in mros + if hasattr(mro_class, "__annotations__") + for k, v in mro_class.__annotations__.items() + } + for attr, rf in attr_to_rest_field.items(): + rf._module = cls.__module__ + if not rf._type: + rf._type = rf._get_deserialize_callable_from_annotation(annotations.get(attr, None)) + if not rf._rest_name_input: + rf._rest_name_input = attr + cls._attr_to_rest_field: dict[str, _RestField] = dict(attr_to_rest_field.items()) + cls._calculated.add(f"{cls.__module__}.{cls.__qualname__}") + + return super().__new__(cls) + + def __init_subclass__(cls, discriminator: typing.Optional[str] = None) -> None: + for base in cls.__bases__: + if hasattr(base, "__mapping__"): + base.__mapping__[discriminator or cls.__name__] = cls # type: ignore + + @classmethod + def _get_discriminator(cls, exist_discriminators) -> typing.Optional["_RestField"]: + for v in cls.__dict__.values(): + if isinstance(v, _RestField) and v._is_discriminator and v._rest_name not in exist_discriminators: + return v + return None + + @classmethod + def _deserialize(cls, data, exist_discriminators): + if not hasattr(cls, "__mapping__"): + return cls(data) + discriminator = cls._get_discriminator(exist_discriminators) + if discriminator is None: + return cls(data) + exist_discriminators.append(discriminator._rest_name) + if isinstance(data, ET.Element): + model_meta = getattr(cls, "_xml", {}) + prop_meta = getattr(discriminator, "_xml", {}) + xml_name = prop_meta.get("name", discriminator._rest_name) + xml_ns = prop_meta.get("ns", model_meta.get("ns", None)) + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + + if data.get(xml_name) is not None: + discriminator_value = data.get(xml_name) + else: + discriminator_value = data.find(xml_name).text # pyright: ignore + else: + discriminator_value = data.get(discriminator._rest_name) + mapped_cls = cls.__mapping__.get(discriminator_value, cls) # pyright: ignore # pylint: disable=no-member + return mapped_cls._deserialize(data, exist_discriminators) + + def as_dict(self, *, exclude_readonly: bool = False) -> dict[str, typing.Any]: + """Return a dict that can be turned into json using json.dump. + + :keyword bool exclude_readonly: Whether to remove the readonly properties. + :returns: A dict JSON compatible object + :rtype: dict + """ + + result = {} + readonly_props = [] + if exclude_readonly: + readonly_props = [p._rest_name for p in self._attr_to_rest_field.values() if _is_readonly(p)] + for k, v in self.items(): + if exclude_readonly and k in readonly_props: # pyright: ignore + continue + is_multipart_file_input = False + try: + is_multipart_file_input = next( + rf for rf in self._attr_to_rest_field.values() if rf._rest_name == k + )._is_multipart_file_input + except StopIteration: + pass + result[k] = v if is_multipart_file_input else Model._as_dict_value(v, exclude_readonly=exclude_readonly) + return result + + @staticmethod + def _as_dict_value(v: typing.Any, exclude_readonly: bool = False) -> typing.Any: + if v is None or isinstance(v, _Null): + return None + if isinstance(v, (list, tuple, set)): + return type(v)(Model._as_dict_value(x, exclude_readonly=exclude_readonly) for x in v) + if isinstance(v, dict): + return {dk: Model._as_dict_value(dv, exclude_readonly=exclude_readonly) for dk, dv in v.items()} + return v.as_dict(exclude_readonly=exclude_readonly) if hasattr(v, "as_dict") else v + + +def _deserialize_model(model_deserializer: typing.Optional[typing.Callable], obj): + if _is_model(obj): + return obj + return _deserialize(model_deserializer, obj) + + +def _deserialize_with_optional(if_obj_deserializer: typing.Optional[typing.Callable], obj): + if obj is None: + return obj + return _deserialize_with_callable(if_obj_deserializer, obj) + + +def _deserialize_with_union(deserializers, obj): + for deserializer in deserializers: + try: + return _deserialize(deserializer, obj) + except DeserializationError: + pass + raise DeserializationError() + + +def _deserialize_dict( + value_deserializer: typing.Optional[typing.Callable], + module: typing.Optional[str], + obj: dict[typing.Any, typing.Any], +): + if obj is None: + return obj + if isinstance(obj, ET.Element): + obj = {child.tag: child for child in obj} + return {k: _deserialize(value_deserializer, v, module) for k, v in obj.items()} + + +def _deserialize_multiple_sequence( + entry_deserializers: list[typing.Optional[typing.Callable]], + module: typing.Optional[str], + obj, +): + if obj is None: + return obj + return type(obj)(_deserialize(deserializer, entry, module) for entry, deserializer in zip(obj, entry_deserializers)) + + +def _is_array_encoded_deserializer(deserializer: functools.partial) -> bool: + return ( + isinstance(deserializer, functools.partial) + and isinstance(deserializer.args[0], functools.partial) + and deserializer.args[0].func == _deserialize_array_encoded # pylint: disable=comparison-with-callable + ) + + +def _deserialize_sequence( + deserializer: typing.Optional[typing.Callable], + module: typing.Optional[str], + obj, +): + if obj is None: + return obj + if isinstance(obj, ET.Element): + obj = list(obj) + + # encoded string may be deserialized to sequence + if isinstance(obj, str) and isinstance(deserializer, functools.partial): + # for list[str] + if _is_array_encoded_deserializer(deserializer): + return deserializer(obj) + + # for list[Union[...]] + if isinstance(deserializer.args[0], list): + for sub_deserializer in deserializer.args[0]: + if _is_array_encoded_deserializer(sub_deserializer): + return sub_deserializer(obj) + + return type(obj)(_deserialize(deserializer, entry, module) for entry in obj) + + +def _sorted_annotations(types: list[typing.Any]) -> list[typing.Any]: + return sorted( + types, + key=lambda x: hasattr(x, "__name__") and x.__name__.lower() in ("str", "float", "int", "bool"), + ) + + +def _get_deserialize_callable_from_annotation( # pylint: disable=too-many-return-statements, too-many-statements, too-many-branches + annotation: typing.Any, + module: typing.Optional[str], + rf: typing.Optional["_RestField"] = None, +) -> typing.Optional[typing.Callable[[typing.Any], typing.Any]]: + if not annotation: + return None + + # is it a type alias? + if isinstance(annotation, str): + if module is not None: + annotation = _get_type_alias_type(module, annotation) + + # is it a forward ref / in quotes? + if isinstance(annotation, (str, typing.ForwardRef)): + try: + model_name = annotation.__forward_arg__ # type: ignore + except AttributeError: + model_name = annotation + if module is not None: + annotation = _get_model(module, model_name) # type: ignore + + try: + if module and _is_model(annotation): + if rf: + rf._is_model = True + + return functools.partial(_deserialize_model, annotation) # pyright: ignore + except Exception: + pass + + # is it a literal? + try: + if annotation.__origin__ is typing.Literal: # pyright: ignore + return None + except AttributeError: + pass + + # is it optional? + try: + if any(a is _NONE_TYPE for a in annotation.__args__): # pyright: ignore + if rf: + rf._is_optional = True + if len(annotation.__args__) <= 2: # pyright: ignore + if_obj_deserializer = _get_deserialize_callable_from_annotation( + next(a for a in annotation.__args__ if a is not _NONE_TYPE), module, rf # pyright: ignore + ) + + return functools.partial(_deserialize_with_optional, if_obj_deserializer) + # the type is Optional[Union[...]], we need to remove the None type from the Union + annotation_copy = copy.copy(annotation) + annotation_copy.__args__ = [a for a in annotation_copy.__args__ if a is not _NONE_TYPE] # pyright: ignore + return _get_deserialize_callable_from_annotation(annotation_copy, module, rf) + except AttributeError: + pass + + # is it union? + if getattr(annotation, "__origin__", None) is typing.Union: + # initial ordering is we make `string` the last deserialization option, because it is often them most generic + deserializers = [ + _get_deserialize_callable_from_annotation(arg, module, rf) + for arg in _sorted_annotations(annotation.__args__) # pyright: ignore + ] + + return functools.partial(_deserialize_with_union, deserializers) + + try: + annotation_name = ( + annotation.__name__ if hasattr(annotation, "__name__") else annotation._name # pyright: ignore + ) + if annotation_name.lower() == "dict": + value_deserializer = _get_deserialize_callable_from_annotation( + annotation.__args__[1], module, rf # pyright: ignore + ) + + return functools.partial( + _deserialize_dict, + value_deserializer, + module, + ) + except (AttributeError, IndexError): + pass + try: + annotation_name = ( + annotation.__name__ if hasattr(annotation, "__name__") else annotation._name # pyright: ignore + ) + if annotation_name.lower() in ["list", "set", "tuple", "sequence"]: + if len(annotation.__args__) > 1: # pyright: ignore + entry_deserializers = [ + _get_deserialize_callable_from_annotation(dt, module, rf) + for dt in annotation.__args__ # pyright: ignore + ] + return functools.partial(_deserialize_multiple_sequence, entry_deserializers, module) + deserializer = _get_deserialize_callable_from_annotation( + annotation.__args__[0], module, rf # pyright: ignore + ) + + return functools.partial(_deserialize_sequence, deserializer, module) + except (TypeError, IndexError, AttributeError, SyntaxError): + pass + + def _deserialize_default( + deserializer, + obj, + ): + if obj is None: + return obj + try: + return _deserialize_with_callable(deserializer, obj) + except Exception: + pass + return obj + + if get_deserializer(annotation, rf): + return functools.partial(_deserialize_default, get_deserializer(annotation, rf)) + + return functools.partial(_deserialize_default, annotation) + + +def _deserialize_with_callable( + deserializer: typing.Optional[typing.Callable[[typing.Any], typing.Any]], + value: typing.Any, +): # pylint: disable=too-many-return-statements + try: + if value is None or isinstance(value, _Null): + return None + if isinstance(value, ET.Element): + if deserializer is str: + return value.text or "" + if deserializer is int: + return int(value.text) if value.text else None + if deserializer is float: + return float(value.text) if value.text else None + if deserializer is bool: + return value.text == "true" if value.text else None + if deserializer and deserializer in _DESERIALIZE_MAPPING.values(): + return deserializer(value.text) if value.text else None + if deserializer and deserializer in _DESERIALIZE_MAPPING_WITHFORMAT.values(): + return deserializer(value.text) if value.text else None + if deserializer is None: + return value + if deserializer in [int, float, bool]: + return deserializer(value) + if isinstance(deserializer, CaseInsensitiveEnumMeta): + try: + return deserializer(value.text if isinstance(value, ET.Element) else value) + except ValueError: + # for unknown value, return raw value + return value.text if isinstance(value, ET.Element) else value + if isinstance(deserializer, type) and issubclass(deserializer, Model): + return deserializer._deserialize(value, []) + return typing.cast(typing.Callable[[typing.Any], typing.Any], deserializer)(value) + except Exception as e: + raise DeserializationError() from e + + +def _deserialize( + deserializer: typing.Any, + value: typing.Any, + module: typing.Optional[str] = None, + rf: typing.Optional["_RestField"] = None, + format: typing.Optional[str] = None, +) -> typing.Any: + if isinstance(value, PipelineResponse): + value = value.http_response.json() + if rf is None and format: + rf = _RestField(format=format) + if not isinstance(deserializer, functools.partial): + deserializer = _get_deserialize_callable_from_annotation(deserializer, module, rf) + return _deserialize_with_callable(deserializer, value) + + +def _failsafe_deserialize( + deserializer: typing.Any, + response: HttpResponse, + module: typing.Optional[str] = None, + rf: typing.Optional["_RestField"] = None, + format: typing.Optional[str] = None, +) -> typing.Any: + try: + return _deserialize(deserializer, response.json(), module, rf, format) + except Exception: # pylint: disable=broad-except + _LOGGER.warning( + "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True + ) + return None + + +def _failsafe_deserialize_xml( + deserializer: typing.Any, + response: HttpResponse, +) -> typing.Any: + try: + return _deserialize_xml(deserializer, response.text()) + except Exception: # pylint: disable=broad-except + _LOGGER.warning( + "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True + ) + return None + + +# pylint: disable=too-many-instance-attributes +class _RestField: + def __init__( + self, + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + is_discriminator: bool = False, + visibility: typing.Optional[list[str]] = None, + default: typing.Any = _UNSET, + format: typing.Optional[str] = None, + is_multipart_file_input: bool = False, + xml: typing.Optional[dict[str, typing.Any]] = None, + ): + self._type = type + self._rest_name_input = name + self._module: typing.Optional[str] = None + self._is_discriminator = is_discriminator + self._visibility = visibility + self._is_model = False + self._is_optional = False + self._default = default + self._format = format + self._is_multipart_file_input = is_multipart_file_input + self._xml = xml if xml is not None else {} + + @property + def _class_type(self) -> typing.Any: + result = getattr(self._type, "args", [None])[0] + # type may be wrapped by nested functools.partial so we need to check for that + if isinstance(result, functools.partial): + return getattr(result, "args", [None])[0] + return result + + @property + def _rest_name(self) -> str: + if self._rest_name_input is None: + raise ValueError("Rest name was never set") + return self._rest_name_input + + def __get__(self, obj: Model, type=None): # pylint: disable=redefined-builtin + # by this point, type and rest_name will have a value bc we default + # them in __new__ of the Model class + # Use _data.get() directly to avoid triggering __getitem__ which clears the cache + item = obj._data.get(self._rest_name) + if item is None: + return item + if self._is_model: + return item + + # For mutable types, we want mutations to directly affect _data + # Check if we've already deserialized this value + cache_attr = f"_deserialized_{self._rest_name}" + if hasattr(obj, cache_attr): + # Return the value from _data directly (it's been deserialized in place) + return obj._data.get(self._rest_name) + + deserialized = _deserialize(self._type, _serialize(item, self._format), rf=self) + + # For mutable types, store the deserialized value back in _data + # so mutations directly affect _data + if isinstance(deserialized, (dict, list, set)): + obj._data[self._rest_name] = deserialized + object.__setattr__(obj, cache_attr, True) # Mark as deserialized + return deserialized + + return deserialized + + def __set__(self, obj: Model, value) -> None: + # Clear the cached deserialized object when setting a new value + cache_attr = f"_deserialized_{self._rest_name}" + if hasattr(obj, cache_attr): + object.__delattr__(obj, cache_attr) + + if value is None: + # we want to wipe out entries if users set attr to None + try: + obj.__delitem__(self._rest_name) + except KeyError: + pass + return + if self._is_model: + if not _is_model(value): + value = _deserialize(self._type, value) + obj.__setitem__(self._rest_name, value) + return + obj.__setitem__(self._rest_name, _serialize(value, self._format)) + + def _get_deserialize_callable_from_annotation( + self, annotation: typing.Any + ) -> typing.Optional[typing.Callable[[typing.Any], typing.Any]]: + return _get_deserialize_callable_from_annotation(annotation, self._module, self) + + +def rest_field( + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + visibility: typing.Optional[list[str]] = None, + default: typing.Any = _UNSET, + format: typing.Optional[str] = None, + is_multipart_file_input: bool = False, + xml: typing.Optional[dict[str, typing.Any]] = None, +) -> typing.Any: + return _RestField( + name=name, + type=type, + visibility=visibility, + default=default, + format=format, + is_multipart_file_input=is_multipart_file_input, + xml=xml, + ) + + +def rest_discriminator( + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + visibility: typing.Optional[list[str]] = None, + xml: typing.Optional[dict[str, typing.Any]] = None, +) -> typing.Any: + return _RestField(name=name, type=type, is_discriminator=True, visibility=visibility, xml=xml) + + +def serialize_xml(model: Model, exclude_readonly: bool = False) -> str: + """Serialize a model to XML. + + :param Model model: The model to serialize. + :param bool exclude_readonly: Whether to exclude readonly properties. + :returns: The XML representation of the model. + :rtype: str + """ + return ET.tostring(_get_element(model, exclude_readonly), encoding="unicode") # type: ignore + + +def _get_element( + o: typing.Any, + exclude_readonly: bool = False, + parent_meta: typing.Optional[dict[str, typing.Any]] = None, + wrapped_element: typing.Optional[ET.Element] = None, +) -> typing.Union[ET.Element, list[ET.Element]]: + if _is_model(o): + model_meta = getattr(o, "_xml", {}) + + # if prop is a model, then use the prop element directly, else generate a wrapper of model + if wrapped_element is None: + wrapped_element = _create_xml_element( + model_meta.get("name", o.__class__.__name__), + model_meta.get("prefix"), + model_meta.get("ns"), + ) + + readonly_props = [] + if exclude_readonly: + readonly_props = [p._rest_name for p in o._attr_to_rest_field.values() if _is_readonly(p)] + + for k, v in o.items(): + # do not serialize readonly properties + if exclude_readonly and k in readonly_props: + continue + + prop_rest_field = _get_rest_field(o._attr_to_rest_field, k) + if prop_rest_field: + prop_meta = getattr(prop_rest_field, "_xml").copy() + # use the wire name as xml name if no specific name is set + if prop_meta.get("name") is None: + prop_meta["name"] = k + else: + # additional properties will not have rest field, use the wire name as xml name + prop_meta = {"name": k} + + # if no ns for prop, use model's + if prop_meta.get("ns") is None and model_meta.get("ns"): + prop_meta["ns"] = model_meta.get("ns") + prop_meta["prefix"] = model_meta.get("prefix") + + if prop_meta.get("unwrapped", False): + # unwrapped could only set on array + wrapped_element.extend(_get_element(v, exclude_readonly, prop_meta)) + elif prop_meta.get("text", False): + # text could only set on primitive type + wrapped_element.text = _get_primitive_type_value(v) + elif prop_meta.get("attribute", False): + xml_name = prop_meta.get("name", k) + if prop_meta.get("ns"): + ET.register_namespace(prop_meta.get("prefix"), prop_meta.get("ns")) # pyright: ignore + xml_name = "{" + prop_meta.get("ns") + "}" + xml_name # pyright: ignore + # attribute should be primitive type + wrapped_element.set(xml_name, _get_primitive_type_value(v)) + else: + # other wrapped prop element + wrapped_element.append(_get_wrapped_element(v, exclude_readonly, prop_meta)) + return wrapped_element + if isinstance(o, list): + return [_get_element(x, exclude_readonly, parent_meta) for x in o] # type: ignore + if isinstance(o, dict): + result = [] + for k, v in o.items(): + result.append( + _get_wrapped_element( + v, + exclude_readonly, + { + "name": k, + "ns": parent_meta.get("ns") if parent_meta else None, + "prefix": parent_meta.get("prefix") if parent_meta else None, + }, + ) + ) + return result + + # primitive case need to create element based on parent_meta + if parent_meta: + return _get_wrapped_element( + o, + exclude_readonly, + { + "name": parent_meta.get("itemsName", parent_meta.get("name")), + "prefix": parent_meta.get("itemsPrefix", parent_meta.get("prefix")), + "ns": parent_meta.get("itemsNs", parent_meta.get("ns")), + }, + ) + + raise ValueError("Could not serialize value into xml: " + o) + + +def _get_wrapped_element( + v: typing.Any, + exclude_readonly: bool, + meta: typing.Optional[dict[str, typing.Any]], +) -> ET.Element: + wrapped_element = _create_xml_element( + meta.get("name") if meta else None, meta.get("prefix") if meta else None, meta.get("ns") if meta else None + ) + if isinstance(v, (dict, list)): + wrapped_element.extend(_get_element(v, exclude_readonly, meta)) + elif _is_model(v): + _get_element(v, exclude_readonly, meta, wrapped_element) + else: + wrapped_element.text = _get_primitive_type_value(v) + return wrapped_element # type: ignore[no-any-return] + + +def _get_primitive_type_value(v) -> str: + if v is True: + return "true" + if v is False: + return "false" + if isinstance(v, _Null): + return "" + return str(v) + + +def _create_xml_element( + tag: typing.Any, prefix: typing.Optional[str] = None, ns: typing.Optional[str] = None +) -> ET.Element: + if prefix and ns: + ET.register_namespace(prefix, ns) + if ns: + return ET.Element("{" + ns + "}" + tag) + return ET.Element(tag) + + +def _deserialize_xml( + deserializer: typing.Any, + value: str, +) -> typing.Any: + element = ET.fromstring(value) # nosec + return _deserialize(deserializer, element) + + +def _convert_element(e: ET.Element): + # dict case + if len(e.attrib) > 0 or len({child.tag for child in e}) > 1: + dict_result: dict[str, typing.Any] = {} + for child in e: + if dict_result.get(child.tag) is not None: + if isinstance(dict_result[child.tag], list): + dict_result[child.tag].append(_convert_element(child)) + else: + dict_result[child.tag] = [dict_result[child.tag], _convert_element(child)] + else: + dict_result[child.tag] = _convert_element(child) + dict_result.update(e.attrib) + return dict_result + # array case + if len(e) > 0: + array_result: list[typing.Any] = [] + for child in e: + array_result.append(_convert_element(child)) + return array_result + # primitive case + return e.text diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/serialization.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/serialization.py index 6da830e0cf4a..81ec1de5922b 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/serialization.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_utils/serialization.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_version.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_version.py index dca644af5794..f20d865d221c 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_version.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_version.py @@ -2,8 +2,8 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "10.2.0" +VERSION = "10.2.0b2" diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/__init__.py index bcb1c4cb2f6a..e39bdc5cf069 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._container_instance_management_client import ContainerInstanceManagementClient # type: ignore +from ._client import ContainerInstanceClient # type: ignore try: from ._patch import __all__ as _patch_all @@ -22,7 +22,7 @@ from ._patch import patch_sdk as _patch_sdk __all__ = [ - "ContainerInstanceManagementClient", + "ContainerInstanceClient", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_container_instance_management_client.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_client.py similarity index 85% rename from sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_container_instance_management_client.py rename to sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_client.py index 817a8e3bfa50..617e31bc1c60 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_container_instance_management_client.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_client.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -17,9 +17,8 @@ from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy from azure.mgmt.core.tools import get_arm_endpoints -from .. import models as _models from .._utils.serialization import Deserializer, Serializer -from ._configuration import ContainerInstanceManagementClientConfiguration +from ._configuration import ContainerInstanceClientConfiguration from .operations import ( CGProfileOperations, CGProfilesOperations, @@ -36,38 +35,39 @@ from azure.core.credentials_async import AsyncTokenCredential -class ContainerInstanceManagementClient: # pylint: disable=too-many-instance-attributes - """ContainerInstanceManagementClient. +class ContainerInstanceClient: # pylint: disable=too-many-instance-attributes + """// (missing-service-description) Add service description. + :ivar operations: Operations operations + :vartype operations: azure.mgmt.containerinstance.aio.operations.Operations :ivar container_groups: ContainerGroupsOperations operations :vartype container_groups: azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.containerinstance.aio.operations.Operations - :ivar location: LocationOperations operations - :vartype location: azure.mgmt.containerinstance.aio.operations.LocationOperations + :ivar ngroups: NGroupsOperations operations + :vartype ngroups: azure.mgmt.containerinstance.aio.operations.NGroupsOperations + :ivar cg_profile: CGProfileOperations operations + :vartype cg_profile: azure.mgmt.containerinstance.aio.operations.CGProfileOperations :ivar containers: ContainersOperations operations :vartype containers: azure.mgmt.containerinstance.aio.operations.ContainersOperations + :ivar cg_profiles: CGProfilesOperations operations + :vartype cg_profiles: azure.mgmt.containerinstance.aio.operations.CGProfilesOperations + :ivar location: LocationOperations operations + :vartype location: azure.mgmt.containerinstance.aio.operations.LocationOperations :ivar subnet_service_association_link: SubnetServiceAssociationLinkOperations operations :vartype subnet_service_association_link: azure.mgmt.containerinstance.aio.operations.SubnetServiceAssociationLinkOperations - :ivar ngroups: NGroupsOperations operations - :vartype ngroups: azure.mgmt.containerinstance.aio.operations.NGroupsOperations - :ivar cg_profiles: CGProfilesOperations operations - :vartype cg_profiles: azure.mgmt.containerinstance.aio.operations.CGProfilesOperations - :ivar cg_profile: CGProfileOperations operations - :vartype cg_profile: azure.mgmt.containerinstance.aio.operations.CGProfileOperations - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :param base_url: Service URL. Default value is None. + :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2025-09-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are "2025-09-01" + and None. Default value is "2025-09-01". Note that overriding this default value may result in + unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -82,14 +82,16 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: + _endpoint = "{endpoint}" _cloud = cloud_setting or settings.current.azure_cloud # type: ignore _endpoints = get_arm_endpoints(_cloud) if not base_url: base_url = _endpoints["resource_manager"] credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"]) - self._config = ContainerInstanceManagementClientConfiguration( + self._config = ContainerInstanceClientConfiguration( credential=credential, subscription_id=subscription_id, + base_url=cast(str, base_url), cloud_setting=cloud_setting, credential_scopes=credential_scopes, **kwargs @@ -114,27 +116,26 @@ def __init__( self._config.http_logging_policy, ] self._client: AsyncARMPipelineClient = AsyncARMPipelineClient( - base_url=cast(str, base_url), policies=_policies, **kwargs + base_url=cast(str, _endpoint), policies=_policies, **kwargs ) - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) + self._serialize = Serializer() + self._deserialize = Deserializer() self._serialize.client_side_validation = False + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) self.container_groups = ContainerGroupsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) - self.location = LocationOperations(self._client, self._config, self._serialize, self._deserialize) + self.ngroups = NGroupsOperations(self._client, self._config, self._serialize, self._deserialize) + self.cg_profile = CGProfileOperations(self._client, self._config, self._serialize, self._deserialize) self.containers = ContainersOperations(self._client, self._config, self._serialize, self._deserialize) + self.cg_profiles = CGProfilesOperations(self._client, self._config, self._serialize, self._deserialize) + self.location = LocationOperations(self._client, self._config, self._serialize, self._deserialize) self.subnet_service_association_link = SubnetServiceAssociationLinkOperations( self._client, self._config, self._serialize, self._deserialize ) - self.ngroups = NGroupsOperations(self._client, self._config, self._serialize, self._deserialize) - self.cg_profiles = CGProfilesOperations(self._client, self._config, self._serialize, self._deserialize) - self.cg_profile = CGProfileOperations(self._client, self._config, self._serialize, self._deserialize) - def _send_request( + def send_request( self, request: HttpRequest, *, stream: bool = False, **kwargs: Any ) -> Awaitable[AsyncHttpResponse]: """Runs the network request through the client's chained policies. @@ -142,7 +143,7 @@ def _send_request( >>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") - >>> response = await client._send_request(request) + >>> response = await client.send_request(request) For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request @@ -155,7 +156,11 @@ def _send_request( """ request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore async def close(self) -> None: diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_configuration.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_configuration.py index 3be049097ef9..78c221df0aa6 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_configuration.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_configuration.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -18,21 +18,24 @@ from azure.core.credentials_async import AsyncTokenCredential -class ContainerInstanceManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for ContainerInstanceManagementClient. +class ContainerInstanceClientConfiguration: # pylint: disable=too-many-instance-attributes + """Configuration for ContainerInstanceClient. Note that all parameters used to create this instance are saved as instance attributes. - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str + :param base_url: Service host. Default value is "https://management.azure.com". + :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2025-09-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are "2025-09-01" + and None. Default value is "2025-09-01". Note that overriding this default value may result in + unsupported behavior. :paramtype api_version: str """ @@ -40,6 +43,7 @@ def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, + base_url: str = "https://management.azure.com", cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: @@ -52,6 +56,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id + self.base_url = base_url self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_patch.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_patch.py index 17dbc073e01b..87676c65a8f0 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_patch.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_patch.py @@ -1,32 +1,21 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# # Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------- +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" + + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/__init__.py index 88d90a09aa65..4530e3413347 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,28 +12,28 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._container_groups_operations import ContainerGroupsOperations # type: ignore from ._operations import Operations # type: ignore -from ._location_operations import LocationOperations # type: ignore -from ._containers_operations import ContainersOperations # type: ignore -from ._subnet_service_association_link_operations import SubnetServiceAssociationLinkOperations # type: ignore -from ._ngroups_operations import NGroupsOperations # type: ignore -from ._cg_profiles_operations import CGProfilesOperations # type: ignore -from ._cg_profile_operations import CGProfileOperations # type: ignore +from ._operations import ContainerGroupsOperations # type: ignore +from ._operations import NGroupsOperations # type: ignore +from ._operations import CGProfileOperations # type: ignore +from ._operations import ContainersOperations # type: ignore +from ._operations import CGProfilesOperations # type: ignore +from ._operations import LocationOperations # type: ignore +from ._operations import SubnetServiceAssociationLinkOperations # type: ignore from ._patch import __all__ as _patch_all from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ - "ContainerGroupsOperations", "Operations", - "LocationOperations", - "ContainersOperations", - "SubnetServiceAssociationLinkOperations", + "ContainerGroupsOperations", "NGroupsOperations", - "CGProfilesOperations", "CGProfileOperations", + "ContainersOperations", + "CGProfilesOperations", + "LocationOperations", + "SubnetServiceAssociationLinkOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profile_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profile_operations.py deleted file mode 100644 index e8d7c3355273..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profile_operations.py +++ /dev/null @@ -1,629 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._cg_profile_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_by_revision_number_request, - build_get_request, - build_list_all_revisions_request, - build_update_request, -) -from .._configuration import ContainerInstanceManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class CGProfileOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s - :attr:`cg_profile` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - async def create_or_update( - self, - resource_group_name: str, - container_group_profile_name: str, - container_group_profile: _models.ContainerGroupProfile, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Create or Update a ContainerGroupProfile. - - Create a CGProfile if it doesn't exist or update an existing CGProfile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param container_group_profile: The ContainerGroupProfile object. Required. - :type container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - container_group_profile_name: str, - container_group_profile: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Create or Update a ContainerGroupProfile. - - Create a CGProfile if it doesn't exist or update an existing CGProfile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param container_group_profile: The ContainerGroupProfile object. Required. - :type container_group_profile: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - container_group_profile_name: str, - container_group_profile: Union[_models.ContainerGroupProfile, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Create or Update a ContainerGroupProfile. - - Create a CGProfile if it doesn't exist or update an existing CGProfile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param container_group_profile: The ContainerGroupProfile object. Is either a - ContainerGroupProfile type or a IO[bytes] type. Required. - :type container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfile or - IO[bytes] - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_group_profile, (IOBase, bytes)): - _content = container_group_profile - else: - _json = self._serialize.body(container_group_profile, "ContainerGroupProfile") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["x-ms-correlation-request-id"] = self._deserialize( - "str", response.headers.get("x-ms-correlation-request-id") - ) - - deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def update( - self, - resource_group_name: str, - container_group_profile_name: str, - properties: _models.ContainerGroupProfilePatch, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Container group profile PATCH REST API. - - Update a specified container group profile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param properties: The container group profile properties that need to be updated. Required. - :type properties: ~azure.mgmt.containerinstance.models.ContainerGroupProfilePatch - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - resource_group_name: str, - container_group_profile_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Container group profile PATCH REST API. - - Update a specified container group profile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param properties: The container group profile properties that need to be updated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - resource_group_name: str, - container_group_profile_name: str, - properties: Union[_models.ContainerGroupProfilePatch, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Container group profile PATCH REST API. - - Update a specified container group profile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param properties: The container group profile properties that need to be updated. Is either a - ContainerGroupProfilePatch type or a IO[bytes] type. Required. - :type properties: ~azure.mgmt.containerinstance.models.ContainerGroupProfilePatch or IO[bytes] - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "ContainerGroupProfilePatch") - - _request = build_update_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["x-ms-correlation-request-id"] = self._deserialize( - "str", response.headers.get("x-ms-correlation-request-id") - ) - - deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Display information about a specified ContainerGroupProfile. - - Get the properties of the specified container group profile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete(self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any) -> None: - """Container group profile DELETE REST API. - - Deletes a container group profile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def list_all_revisions( - self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ContainerGroupProfile"]: - """Get a list of all the revisions of the specified container group profile in the given - subscription and resource 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :return: An iterator like instance of either ContainerGroupProfile or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_all_revisions_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_by_revision_number( - self, resource_group_name: str, container_group_profile_name: str, revision_number: str, **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Get the properties of the specified revision of the container group profile. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param revision_number: The revision number of the container group profile. Required. - :type revision_number: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) - - _request = build_get_by_revision_number_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - revision_number=revision_number, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profiles_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profiles_operations.py deleted file mode 100644 index 462278bc8ad6..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_cg_profiles_operations.py +++ /dev/null @@ -1,222 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._cg_profiles_operations import ( - build_list_by_resource_group_request, - build_list_by_subscription_request, -) -from .._configuration import ContainerInstanceManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class CGProfilesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s - :attr:`cg_profiles` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.ContainerGroupProfile"]: - """List container group profiles in a subscription. - - Gets a list of all container group profiles under a subscription. - - :return: An iterator like instance of either ContainerGroupProfile or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ContainerGroupProfile"]: - """List container group profiles in a resource group. - - Gets a list of all container group profiles under a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either ContainerGroupProfile or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_groups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_groups_operations.py deleted file mode 100644 index 9a22d5273185..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_groups_operations.py +++ /dev/null @@ -1,1079 +0,0 @@ -# pylint: disable=too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._container_groups_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_outbound_network_dependencies_endpoints_request, - build_get_request, - build_list_by_resource_group_request, - build_list_request, - build_restart_request, - build_start_request, - build_stop_request, - build_update_request, -) -from .._configuration import ContainerInstanceManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ContainerGroupsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s - :attr:`container_groups` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.ListResultContainerGroup"]: - """Get a list of container groups in the specified subscription. - - 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. - - :return: An iterator like instance of either ListResultContainerGroup or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ListResultContainerGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ListResultContainerGroup"]: - """Get a list of container groups in the specified subscription and resource group. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either ListResultContainerGroup or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ListResultContainerGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> _models.ContainerGroup: - """Get the properties of the specified container group. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :return: ContainerGroup or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerGroup", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - container_group_name: str, - container_group: Union[_models.ContainerGroup, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_group, (IOBase, bytes)): - _content = container_group - else: - _json = self._serialize.body(container_group, "ContainerGroup") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - container_group_name: str, - container_group: _models.ContainerGroup, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerGroup]: - """Create or update container groups. - - Create or update container groups with specified configurations. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_group: The properties of the container group to be created or updated. - Required. - :type container_group: ~azure.mgmt.containerinstance.models.ContainerGroup - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerGroup or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - container_group_name: str, - container_group: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerGroup]: - """Create or update container groups. - - Create or update container groups with specified configurations. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_group: The properties of the container group to be created or updated. - Required. - :type container_group: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerGroup or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - container_group_name: str, - container_group: Union[_models.ContainerGroup, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerGroup]: - """Create or update container groups. - - Create or update container groups with specified configurations. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_group: The properties of the container group to be created or updated. Is - either a ContainerGroup type or a IO[bytes] type. Required. - :type container_group: ~azure.mgmt.containerinstance.models.ContainerGroup or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerGroup or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - container_group=container_group, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerGroup", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerGroup].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerGroup]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def update( - self, - resource_group_name: str, - container_group_name: str, - resource: _models.Resource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerGroup: - """Update container groups. - - Updates container group tags with specified values. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param resource: The container group resource with just the tags to be updated. Required. - :type resource: ~azure.mgmt.containerinstance.models.Resource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerGroup or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - resource_group_name: str, - container_group_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerGroup: - """Update container groups. - - Updates container group tags with specified values. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param resource: The container group resource with just the tags to be updated. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerGroup or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - resource_group_name: str, - container_group_name: str, - resource: Union[_models.Resource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerGroup: - """Update container groups. - - Updates container group tags with specified values. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param resource: The container group resource with just the tags to be updated. Is either a - Resource type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.containerinstance.models.Resource or IO[bytes] - :return: ContainerGroup or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "Resource") - - _request = build_update_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerGroup", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _delete_initial( - self, resource_group_name: str, container_group_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, container_group_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerGroup]: - """Delete the specified container group. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :return: An instance of AsyncLROPoller that returns either ContainerGroup or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerGroup", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerGroup].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerGroup]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _restart_initial( - self, resource_group_name: str, container_group_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, container_group_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restarts all containers in a container group. - - Restarts all containers in a container group in place. If container image has updates, new - image will be downloaded. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def stop(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> None: - """Stops all containers in a container group. - - Stops all containers in a container group. Compute resources will be deallocated and billing - will stop. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - async def _start_initial( - self, resource_group_name: str, container_group_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, container_group_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Starts all containers in a container group. - - Starts all containers in a container group. Compute resources will be allocated and billing - will start. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def get_outbound_network_dependencies_endpoints( # pylint: disable=name-too-long - self, resource_group_name: str, container_group_name: str, **kwargs: Any - ) -> List[str]: - """Get all network dependencies for container group. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :return: list of str or the result of cls(response) - :rtype: list[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[List[str]] = kwargs.pop("cls", None) - - _request = build_get_outbound_network_dependencies_endpoints_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_containers_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_containers_operations.py deleted file mode 100644 index 42ab1ad09507..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_containers_operations.py +++ /dev/null @@ -1,350 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._containers_operations import ( - build_attach_request, - build_execute_command_request, - build_list_logs_request, -) -from .._configuration import ContainerInstanceManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ContainersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s - :attr:`containers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def list_logs( - self, - resource_group_name: str, - container_group_name: str, - container_name: str, - tail: Optional[int] = None, - timestamps: Optional[bool] = None, - **kwargs: Any - ) -> _models.Logs: - """Get the logs for a specified container instance. - - Get the logs for a specified container instance in a specified resource group and container - group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_name: The name of the container instance. Required. - :type container_name: str - :param tail: 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. Default value is None. - :type tail: int - :param timestamps: If true, adds a timestamp at the beginning of every line of log output. If - not provided, defaults to false. Default value is None. - :type timestamps: bool - :return: Logs or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.Logs - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Logs] = kwargs.pop("cls", None) - - _request = build_list_logs_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - container_name=container_name, - subscription_id=self._config.subscription_id, - tail=tail, - timestamps=timestamps, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Logs", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def execute_command( - self, - resource_group_name: str, - container_group_name: str, - container_name: str, - container_exec_request: _models.ContainerExecRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerExecResponse: - """Executes a command in a specific container instance. - - Executes a command for a specific container instance in a specified resource group and - container group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_name: The name of the container instance. Required. - :type container_name: str - :param container_exec_request: The request for the exec command. Required. - :type container_exec_request: ~azure.mgmt.containerinstance.models.ContainerExecRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerExecResponse or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def execute_command( - self, - resource_group_name: str, - container_group_name: str, - container_name: str, - container_exec_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerExecResponse: - """Executes a command in a specific container instance. - - Executes a command for a specific container instance in a specified resource group and - container group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_name: The name of the container instance. Required. - :type container_name: str - :param container_exec_request: The request for the exec command. Required. - :type container_exec_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerExecResponse or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def execute_command( - self, - resource_group_name: str, - container_group_name: str, - container_name: str, - container_exec_request: Union[_models.ContainerExecRequest, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerExecResponse: - """Executes a command in a specific container instance. - - Executes a command for a specific container instance in a specified resource group and - container group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_name: The name of the container instance. Required. - :type container_name: str - :param container_exec_request: The request for the exec command. Is either a - ContainerExecRequest type or a IO[bytes] type. Required. - :type container_exec_request: ~azure.mgmt.containerinstance.models.ContainerExecRequest or - IO[bytes] - :return: ContainerExecResponse or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerExecResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_exec_request, (IOBase, bytes)): - _content = container_exec_request - else: - _json = self._serialize.body(container_exec_request, "ContainerExecRequest") - - _request = build_execute_command_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - container_name=container_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerExecResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def attach( - self, resource_group_name: str, container_group_name: str, container_name: str, **kwargs: Any - ) -> _models.ContainerAttachResponse: - """Attach to the output of a specific container instance. - - Attach to the output stream of a specific container instance in a specified resource group and - container group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_name: The name of the container instance. Required. - :type container_name: str - :return: ContainerAttachResponse or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerAttachResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerAttachResponse] = kwargs.pop("cls", None) - - _request = build_attach_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - container_name=container_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerAttachResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_location_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_location_operations.py deleted file mode 100644 index 23a1b81a3715..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_location_operations.py +++ /dev/null @@ -1,298 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._location_operations import ( - build_list_cached_images_request, - build_list_capabilities_request, - build_list_usage_request, -) -from .._configuration import ContainerInstanceManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class LocationOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s - :attr:`location` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_usage(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Usage"]: - """Get the usage for a subscription. - - :param location: The name of the Azure region. Required. - :type location: str - :return: An iterator like instance of either Usage or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.Usage] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.UsageListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_usage_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("UsageListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_cached_images(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.CachedImages"]: - """Get the list of cached images. - - Get the list of cached images on specific OS type for a subscription in a region. - - :param location: The name of the Azure region. Required. - :type location: str - :return: An iterator like instance of either CachedImages or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.CachedImages] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CachedImagesListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_cached_images_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CachedImagesListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_capabilities(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Capabilities"]: - """Get the list of capabilities of the location. - - Get the list of CPU/memory/GPU capabilities of a region. - - :param location: The name of the Azure region. Required. - :type location: str - :return: An iterator like instance of either Capabilities or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.Capabilities] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CapabilitiesListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_capabilities_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CapabilitiesListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_ngroups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_ngroups_operations.py deleted file mode 100644 index acbf893d5e0b..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_ngroups_operations.py +++ /dev/null @@ -1,1115 +0,0 @@ -# pylint: disable=too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._ngroups_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_resource_group_request, - build_list_request, - build_restart_request, - build_start_request, - build_stop_request, - build_update_request, -) -from .._configuration import ContainerInstanceManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class NGroupsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s - :attr:`ngroups` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> _models.NGroup: - """NGroups GET REST API. - - Get the properties of the specified NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :return: NGroup or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.NGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NGroup", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroup, IO[bytes]], **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(n_group, (IOBase, bytes)): - _content = n_group - else: - _json = self._serialize.body(n_group, "NGroup") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - ngroups_name: str, - n_group: _models.NGroup, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NGroup]: - """NGroup PUT REST API. - - Create or update a NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :param n_group: The NGroup object. Required. - :type n_group: ~azure.mgmt.containerinstance.models.NGroup - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either NGroup or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - ngroups_name: str, - n_group: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NGroup]: - """NGroup PUT REST API. - - Create or update a NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :param n_group: The NGroup object. Required. - :type n_group: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either NGroup or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroup, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.NGroup]: - """NGroup PUT REST API. - - Create or update a NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :param n_group: The NGroup object. Is either a NGroup type or a IO[bytes] type. Required. - :type n_group: ~azure.mgmt.containerinstance.models.NGroup or IO[bytes] - :return: An instance of AsyncLROPoller that returns either NGroup or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - n_group=n_group, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = self._deserialize("NGroup", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.NGroup].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.NGroup]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_initial( - self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroupPatch, IO[bytes]], **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(n_group, (IOBase, bytes)): - _content = n_group - else: - _json = self._serialize.body(n_group, "NGroupPatch") - - _request = build_update_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - if response.status_code == 202: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - ngroups_name: str, - n_group: _models.NGroupPatch, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NGroup]: - """NGroups PATCH REST API. - - Update a specified NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :param n_group: The NGroup object. Required. - :type n_group: ~azure.mgmt.containerinstance.models.NGroupPatch - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either NGroup or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - ngroups_name: str, - n_group: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NGroup]: - """NGroups PATCH REST API. - - Update a specified NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :param n_group: The NGroup object. Required. - :type n_group: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either NGroup or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroupPatch, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.NGroup]: - """NGroups PATCH REST API. - - Update a specified NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :param n_group: The NGroup object. Is either a NGroupPatch type or a IO[bytes] type. Required. - :type n_group: ~azure.mgmt.containerinstance.models.NGroupPatch or IO[bytes] - :return: An instance of AsyncLROPoller that returns either NGroup or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - n_group=n_group, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = self._deserialize("NGroup", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.NGroup].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.NGroup]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """NGroups Delete REST API. - - Deletes the NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Starts all container groups in the specified NGroups resource. - - Starts all container groups in the specified NGroups resource. Compute resources will be - allocated and billing will start. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def stop(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> None: - """Stops all container groups in the specified NGroups resource. - - Stops all container groups in the specified NGroups resource. Compute resources will be - deallocated and billing will stop. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - async def _restart_initial( - self, resource_group_name: str, ngroups_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_restart(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Restarts all container groups in the specified NGroups resource. - - Restarts all container groups in the specified NGroups resource in place. If container image - has updates, new image will be downloaded. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.NGroup"]: - """GET NGroups under a resource group REST API. - - Gets a list of all NGroups resources under a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either NGroup or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.NGroupsListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("NGroupsListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.NGroup"]: - """List NGroups in a subscription. - - Gets a list of all NGroups resources under a subscription. - - :return: An iterator like instance of either NGroup or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.NGroupsListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("NGroupsListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_operations.py index b5d868cf5f3b..3ec61200cf70 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_operations.py @@ -1,12 +1,15 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar +from io import IOBase +import json +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import AsyncPipelineClient @@ -17,21 +20,64 @@ ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, + StreamClosedError, + StreamConsumedError, map_error, ) from azure.core.pipeline import PipelineResponse +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models as _models +from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from ..._utils.serialization import Deserializer, Serializer -from ...operations._operations import build_list_request -from .._configuration import ContainerInstanceManagementClientConfiguration +from ...operations._operations import ( + build_cg_profile_create_or_update_request, + build_cg_profile_delete_request, + build_cg_profile_get_by_revision_number_request, + build_cg_profile_get_request, + build_cg_profile_list_all_revisions_request, + build_cg_profile_update_request, + build_cg_profiles_list_by_resource_group_request, + build_cg_profiles_list_by_subscription_request, + build_container_groups_create_or_update_request, + build_container_groups_delete_request, + build_container_groups_get_outbound_network_dependencies_endpoints_request, + build_container_groups_get_request, + build_container_groups_list_by_resource_group_request, + build_container_groups_list_request, + build_container_groups_restart_request, + build_container_groups_start_request, + build_container_groups_stop_request, + build_container_groups_update_request, + build_containers_attach_request, + build_containers_execute_command_request, + build_containers_list_logs_request, + build_location_list_cached_images_request, + build_location_list_capabilities_request, + build_location_list_usage_request, + build_ngroups_create_or_update_request, + build_ngroups_delete_request, + build_ngroups_get_request, + build_ngroups_list_by_resource_group_request, + build_ngroups_list_request, + build_ngroups_restart_request, + build_ngroups_start_request, + build_ngroups_stop_request, + build_ngroups_update_request, + build_operations_list_request, + build_subnet_service_association_link_delete_request, +) +from .._configuration import ContainerInstanceClientConfiguration T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +JSON = MutableMapping[str, Any] List = list @@ -41,34 +87,29 @@ class Operations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s :attr:`operations` attribute. """ - models = _models - def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Operation"]: - """List the operations for Azure Container Instance service. + """List the operations for the provider. - :return: An iterator like instance of either Operation or the result of cls(response) + :return: An iterator like instance of Operation :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.Operation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None) + cls: ClsType[List[_models.Operation]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -81,12 +122,17 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Operation"]: def prepare_request(next_link=None): if not next_link: - _request = build_list_request( - api_version=api_version, + _request = build_operations_list_request( + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) else: # make call to next link with the client's api-version @@ -101,16 +147,24 @@ def prepare_request(next_link=None): _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + return _request async def extract_data(pipeline_response): - deserialized = self._deserialize("OperationListResult", pipeline_response) - list_of_elem = deserialized.value + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Operation], + deserialized.get("value", []), + ) if cls: list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) @@ -123,8 +177,4192 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) + + +class ContainerGroupsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :attr:`container_groups` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> _models.ContainerGroup: + """Get the properties of the specified container group. + + 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :return: ContainerGroup. The ContainerGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) + + _request = build_container_groups_get_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerGroup, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + container_group_name: str, + container_group: Union[_models.ContainerGroup, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(container_group, (IOBase, bytes)): + _content = container_group + else: + _content = json.dumps(container_group, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_groups_create_or_update_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + container_group_name: str, + container_group: _models.ContainerGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerGroup]: + """Create or update container groups. + + Create or update container groups with specified configurations. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_group: The properties of the container group to be created or updated. + Required. + :type container_group: ~azure.mgmt.containerinstance.models.ContainerGroup + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ContainerGroup. The ContainerGroup is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + container_group_name: str, + container_group: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerGroup]: + """Create or update container groups. + + Create or update container groups with specified configurations. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_group: The properties of the container group to be created or updated. + Required. + :type container_group: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ContainerGroup. The ContainerGroup is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + container_group_name: str, + container_group: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerGroup]: + """Create or update container groups. + + Create or update container groups with specified configurations. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_group: The properties of the container group to be created or updated. + Required. + :type container_group: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ContainerGroup. The ContainerGroup is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + container_group_name: str, + container_group: Union[_models.ContainerGroup, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerGroup]: + """Create or update container groups. + + Create or update container groups with specified configurations. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_group: The properties of the container group to be created or updated. Is one + of the following types: ContainerGroup, JSON, IO[bytes] Required. + :type container_group: ~azure.mgmt.containerinstance.models.ContainerGroup or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns ContainerGroup. The ContainerGroup is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + container_group=container_group, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ContainerGroup, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ContainerGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ContainerGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @overload + async def update( + self, + resource_group_name: str, + container_group_name: str, + resource: _models.Resource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroup: + """Update container groups. + + Updates container group tags with specified values. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param resource: The container group resource with just the tags to be updated. Required. + :type resource: ~azure.mgmt.containerinstance.models.Resource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroup. The ContainerGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + container_group_name: str, + resource: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroup: + """Update container groups. + + Updates container group tags with specified values. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param resource: The container group resource with just the tags to be updated. Required. + :type resource: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroup. The ContainerGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + container_group_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroup: + """Update container groups. + + Updates container group tags with specified values. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param resource: The container group resource with just the tags to be updated. Required. + :type resource: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroup. The ContainerGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + resource_group_name: str, + container_group_name: str, + resource: Union[_models.Resource, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ContainerGroup: + """Update container groups. + + Updates container group tags with specified values. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param resource: The container group resource with just the tags to be updated. Is one of the + following types: Resource, JSON, IO[bytes] Required. + :type resource: ~azure.mgmt.containerinstance.models.Resource or JSON or IO[bytes] + :return: ContainerGroup. The ContainerGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(resource, (IOBase, bytes)): + _content = resource + else: + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_groups_update_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerGroup, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, resource_group_name: str, container_group_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_groups_delete_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, container_group_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerGroup]: + """Delete the specified container group. + + 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :return: An instance of AsyncLROPoller that returns ContainerGroup. The ContainerGroup is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ContainerGroup, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ContainerGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ContainerGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _restart_initial( + self, resource_group_name: str, container_group_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_groups_restart_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_restart( + self, resource_group_name: str, container_group_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Restarts all containers in a container group. + + Restarts all containers in a container group in place. If container image has updates, new + image will be downloaded. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._restart_initial( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace_async + async def stop(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> None: + """Stops all containers in a container group. + + Stops all containers in a container group. Compute resources will be deallocated and billing + will stop. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_container_groups_stop_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + async def _start_initial( + self, resource_group_name: str, container_group_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_groups_start_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_start( + self, resource_group_name: str, container_group_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Starts all containers in a container group. + + Starts all containers in a container group. Compute resources will be allocated and billing + will start. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._start_initial( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace_async + async def get_outbound_network_dependencies_endpoints( # pylint: disable=name-too-long + self, resource_group_name: str, container_group_name: str, **kwargs: Any + ) -> List[str]: + """Get all network dependencies for container group. + + 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :return: list of str + :rtype: list[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[str]] = kwargs.pop("cls", None) + + _request = build_container_groups_get_outbound_network_dependencies_endpoints_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(List[str], response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.ListResultContainerGroup"]: + """Get a list of container groups in the specified subscription. + + 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. + + :return: An iterator like instance of ListResultContainerGroup + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ListResultContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ListResultContainerGroup]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_groups_list_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ListResultContainerGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ListResultContainerGroup"]: + """Get a list of container groups in the specified subscription and resource group. + + 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of ListResultContainerGroup + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ListResultContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ListResultContainerGroup]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_groups_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ListResultContainerGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class NGroupsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :attr:`ngroups` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> _models.NGroup: + """NGroups GET REST API. + + Get the properties of the specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: NGroup. The NGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.NGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) + + _request = build_ngroups_get_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NGroup, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + ngroups_name: str, + n_group: Union[_models.NGroup, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(n_group, (IOBase, bytes)): + _content = n_group + else: + _content = json.dumps(n_group, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_ngroups_create_or_update_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 200: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: _models.NGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroup + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: Union[_models.NGroup, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Is one of the following types: NGroup, JSON, IO[bytes] + Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroup or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + n_group=n_group, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + deserialized = _deserialize(_models.NGroup, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.NGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.NGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, + resource_group_name: str, + ngroups_name: str, + n_group: Union[_models.NGroupPatch, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(n_group, (IOBase, bytes)): + _content = n_group + else: + _content = json.dumps(n_group, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_ngroups_update_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 200: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: _models.NGroupPatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroupPatch + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: Union[_models.NGroupPatch, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Is one of the following types: NGroupPatch, JSON, IO[bytes] + Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroupPatch or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + n_group=n_group, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + deserialized = _deserialize(_models.NGroup, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.NGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.NGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_ngroups_delete_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """NGroups Delete REST API. + + Deletes the NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.NGroup"]: + """GET NGroups under a resource group REST API. + + Gets a list of all NGroups resources under a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of NGroup + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.NGroup]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_ngroups_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.NGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.NGroup"]: + """List NGroups in a subscription. + + Gets a list of all NGroups resources under a subscription. + + :return: An iterator like instance of NGroup + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.NGroup]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_ngroups_list_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.NGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + async def _start_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_ngroups_start_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_start(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Starts all container groups in the specified NGroups resource. + + Starts all container groups in the specified NGroups resource. Compute resources will be + allocated and billing will start. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._start_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace_async + async def stop(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> None: + """Stops all container groups in the specified NGroups resource. + + Stops all container groups in the specified NGroups resource. Compute resources will be + deallocated and billing will stop. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_ngroups_stop_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + async def _restart_initial( + self, resource_group_name: str, ngroups_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_ngroups_restart_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_restart(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Restarts all container groups in the specified NGroups resource. + + Restarts all container groups in the specified NGroups resource in place. If container image + has updates, new image will be downloaded. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._restart_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class CGProfileOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :attr:`cg_profile` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get_by_revision_number( + self, resource_group_name: str, container_group_profile_name: str, revision_number: str, **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Get the properties of the specified revision of the container group profile. + + 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param revision_number: The revision number of the container group profile. Required. + :type revision_number: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) + + _request = build_cg_profile_get_by_revision_number_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + revision_number=revision_number, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerGroupProfile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_all_revisions( + self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ContainerGroupProfile"]: + """Get a list of all the revisions of the specified container group profile in the given + subscription and resource 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :return: An iterator like instance of ContainerGroupProfile + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerGroupProfile]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_cg_profile_list_all_revisions_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerGroupProfile], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def get( + self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Display information about a specified ContainerGroupProfile. + + Get the properties of the specified container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) + + _request = build_cg_profile_get_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerGroupProfile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + container_group_profile_name: str, + container_group_profile: _models.ContainerGroupProfile, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Create or Update a ContainerGroupProfile. + + Create a CGProfile if it doesn't exist or update an existing CGProfile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param container_group_profile: The ContainerGroupProfile object. Required. + :type container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + container_group_profile_name: str, + container_group_profile: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Create or Update a ContainerGroupProfile. + + Create a CGProfile if it doesn't exist or update an existing CGProfile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param container_group_profile: The ContainerGroupProfile object. Required. + :type container_group_profile: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + container_group_profile_name: str, + container_group_profile: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Create or Update a ContainerGroupProfile. + + Create a CGProfile if it doesn't exist or update an existing CGProfile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param container_group_profile: The ContainerGroupProfile object. Required. + :type container_group_profile: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + container_group_profile_name: str, + container_group_profile: Union[_models.ContainerGroupProfile, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Create or Update a ContainerGroupProfile. + + Create a CGProfile if it doesn't exist or update an existing CGProfile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param container_group_profile: The ContainerGroupProfile object. Is one of the following + types: ContainerGroupProfile, JSON, IO[bytes] Required. + :type container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfile or + JSON or IO[bytes] + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(container_group_profile, (IOBase, bytes)): + _content = container_group_profile + else: + _content = json.dumps(container_group_profile, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_cg_profile_create_or_update_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerGroupProfile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: _models.ContainerGroupProfilePatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Container group profile PATCH REST API. + + Update a specified container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param properties: The container group profile properties that need to be updated. Required. + :type properties: ~azure.mgmt.containerinstance.models.ContainerGroupProfilePatch + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Container group profile PATCH REST API. + + Update a specified container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param properties: The container group profile properties that need to be updated. Required. + :type properties: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Container group profile PATCH REST API. + + Update a specified container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param properties: The container group profile properties that need to be updated. Required. + :type properties: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: Union[_models.ContainerGroupProfilePatch, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Container group profile PATCH REST API. + + Update a specified container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param properties: The container group profile properties that need to be updated. Is one of + the following types: ContainerGroupProfilePatch, JSON, IO[bytes] Required. + :type properties: ~azure.mgmt.containerinstance.models.ContainerGroupProfilePatch or JSON or + IO[bytes] + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(properties, (IOBase, bytes)): + _content = properties + else: + _content = json.dumps(properties, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_cg_profile_update_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerGroupProfile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete(self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any) -> None: + """Container group profile DELETE REST API. + + Deletes a container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_cg_profile_delete_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + +class ContainersOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :attr:`containers` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def list_logs( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + *, + tail: Optional[int] = None, + timestamps: Optional[bool] = None, + **kwargs: Any + ) -> _models.Logs: + """Get the logs for a specified container instance. + + Get the logs for a specified container instance in a specified resource group and container + group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_name: The name of the container instance. Required. + :type container_name: str + :keyword tail: 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. Default value is None. + :paramtype tail: int + :keyword timestamps: If true, adds a timestamp at the beginning of every line of log output. If + not provided, defaults to false. Default value is None. + :paramtype timestamps: bool + :return: Logs. The Logs is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.Logs + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Logs] = kwargs.pop("cls", None) + + _request = build_containers_list_logs_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + container_name=container_name, + subscription_id=self._config.subscription_id, + tail=tail, + timestamps=timestamps, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Logs, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def execute_command( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + container_exec_request: _models.ContainerExecRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerExecResponse: + """Executes a command in a specific container instance. + + Executes a command for a specific container instance in a specified resource group and + container group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_name: The name of the container instance. Required. + :type container_name: str + :param container_exec_request: The request for the exec command. Required. + :type container_exec_request: ~azure.mgmt.containerinstance.models.ContainerExecRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerExecResponse. The ContainerExecResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def execute_command( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + container_exec_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerExecResponse: + """Executes a command in a specific container instance. + + Executes a command for a specific container instance in a specified resource group and + container group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_name: The name of the container instance. Required. + :type container_name: str + :param container_exec_request: The request for the exec command. Required. + :type container_exec_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerExecResponse. The ContainerExecResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def execute_command( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + container_exec_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerExecResponse: + """Executes a command in a specific container instance. + + Executes a command for a specific container instance in a specified resource group and + container group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_name: The name of the container instance. Required. + :type container_name: str + :param container_exec_request: The request for the exec command. Required. + :type container_exec_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerExecResponse. The ContainerExecResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def execute_command( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + container_exec_request: Union[_models.ContainerExecRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ContainerExecResponse: + """Executes a command in a specific container instance. + + Executes a command for a specific container instance in a specified resource group and + container group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_name: The name of the container instance. Required. + :type container_name: str + :param container_exec_request: The request for the exec command. Is one of the following types: + ContainerExecRequest, JSON, IO[bytes] Required. + :type container_exec_request: ~azure.mgmt.containerinstance.models.ContainerExecRequest or JSON + or IO[bytes] + :return: ContainerExecResponse. The ContainerExecResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerExecResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(container_exec_request, (IOBase, bytes)): + _content = container_exec_request + else: + _content = json.dumps(container_exec_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_containers_execute_command_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + container_name=container_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerExecResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def attach( + self, resource_group_name: str, container_group_name: str, container_name: str, **kwargs: Any + ) -> _models.ContainerAttachResponse: + """Attach to the output of a specific container instance. + + Attach to the output stream of a specific container instance in a specified resource group and + container group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_name: The name of the container instance. Required. + :type container_name: str + :return: ContainerAttachResponse. The ContainerAttachResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerAttachResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAttachResponse] = kwargs.pop("cls", None) + + _request = build_containers_attach_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + container_name=container_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerAttachResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class CGProfilesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :attr:`cg_profiles` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.ContainerGroupProfile"]: + """List container group profiles in a subscription. + + Gets a list of all container group profiles under a subscription. + + :return: An iterator like instance of ContainerGroupProfile + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerGroupProfile]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_cg_profiles_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerGroupProfile], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ContainerGroupProfile"]: + """List container group profiles in a resource group. + + Gets a list of all container group profiles under a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of ContainerGroupProfile + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerGroupProfile]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_cg_profiles_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerGroupProfile], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class LocationOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :attr:`location` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list_usage(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Usage"]: + """Get the usage for a subscription. + + :param location: The location name. Required. + :type location: str + :return: An iterator like instance of Usage + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.Usage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Usage]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_location_list_usage_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Usage], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_cached_images(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.CachedImages"]: + """Get the list of cached images. + + Get the list of cached images on specific OS type for a subscription in a region. + + :param location: The location name. Required. + :type location: str + :return: An iterator like instance of CachedImages + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.CachedImages] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.CachedImages]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_location_list_cached_images_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.CachedImages], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_capabilities(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Capabilities"]: + """Get the list of capabilities of the location. + + Get the list of CPU/memory/GPU capabilities of a region. + + :param location: The location name. Required. + :type location: str + :return: An iterator like instance of Capabilities + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.Capabilities] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Capabilities]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_location_list_capabilities_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Capabilities], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class SubnetServiceAssociationLinkOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :attr:`subnet_service_association_link` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + async def _delete_initial( + self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_subnet_service_association_link_delete_request( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete container group virtual network association links. + + Delete container group virtual network association links. The operation does not delete other + resources provided by the user. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_patch.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_patch.py index f7dd32510333..87676c65a8f0 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_patch.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_patch.py @@ -1,14 +1,15 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -from typing import List -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_subnet_service_association_link_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_subnet_service_association_link_operations.py deleted file mode 100644 index dae3ea0dc09c..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_subnet_service_association_link_operations.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, AsyncIterator, Callable, Optional, TypeVar, Union, cast - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._subnet_service_association_link_operations import build_delete_request -from .._configuration import ContainerInstanceManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class SubnetServiceAssociationLinkOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s - :attr:`subnet_service_association_link` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - async def _delete_initial( - self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subnet_name=subnet_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete container group virtual network association links. - - Delete container group virtual network association links. The operation does not delete other - resources provided by the user. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subnet_name=subnet_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py index 1e95628c7802..60f94ba53897 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -13,16 +13,16 @@ from ._patch import * # pylint: disable=unused-wildcard-import -from ._models_py3 import ( # type: ignore +from ._models import ( # type: ignore ApiEntityReference, ApplicationGateway, ApplicationGatewayBackendAddressPool, + ArmResource, AzureFileVolume, CachedImages, - CachedImagesListResult, Capabilities, CapabilitiesCapabilities, - CapabilitiesListResult, + CloudError, CloudErrorBody, ConfidentialComputeProperties, ConfigMap, @@ -35,21 +35,22 @@ ContainerGroup, ContainerGroupDiagnostics, ContainerGroupIdentity, - ContainerGroupListResult, ContainerGroupProfile, - ContainerGroupProfileListResult, ContainerGroupProfilePatch, + ContainerGroupProfileProperties, ContainerGroupProfileReferenceDefinition, ContainerGroupProfileStub, - ContainerGroupProperties, - ContainerGroupPropertiesInstanceView, + ContainerGroupPropertiesProperties, + ContainerGroupPropertiesPropertiesInstanceView, ContainerGroupSubnetId, ContainerHttpGet, ContainerPort, ContainerProbe, + ContainerProperties, ContainerPropertiesInstanceView, ContainerState, DeploymentExtensionSpec, + DeploymentExtensionSpecProperties, DnsConfiguration, ElasticProfile, ElasticProfileContainerGroupNamingPolicy, @@ -69,10 +70,11 @@ IdentityAcls, ImageRegistryCredential, InitContainerDefinition, + InitContainerPropertiesDefinition, InitContainerPropertiesDefinitionInstanceView, IpAddress, ListResultContainerGroup, - ListResultContainerGroupProperties, + ListResultContainerGroupPropertiesProperties, LoadBalancer, LoadBalancerBackendAddressPool, LogAnalytics, @@ -84,15 +86,13 @@ NGroupContainerGroupProperties, NGroupIdentity, NGroupPatch, - NGroupSkus, - NGroupsListResult, - NGroupsSkusList, + NGroupProperties, NetworkProfile, Operation, OperationDisplay, - OperationListResult, PlacementProfile, Port, + ProxyResource, Resource, ResourceLimits, ResourceRequests, @@ -106,14 +106,13 @@ UpdateProfile, UpdateProfileRollingUpdateProfile, Usage, - UsageListResult, UsageName, UserAssignedIdentities, Volume, VolumeMount, ) -from ._container_instance_management_client_enums import ( # type: ignore +from ._enums import ( # type: ignore AzureFileShareAccessTier, AzureFileShareAccessType, ContainerGroupIpAddressType, @@ -143,12 +142,12 @@ "ApiEntityReference", "ApplicationGateway", "ApplicationGatewayBackendAddressPool", + "ArmResource", "AzureFileVolume", "CachedImages", - "CachedImagesListResult", "Capabilities", "CapabilitiesCapabilities", - "CapabilitiesListResult", + "CloudError", "CloudErrorBody", "ConfidentialComputeProperties", "ConfigMap", @@ -161,21 +160,22 @@ "ContainerGroup", "ContainerGroupDiagnostics", "ContainerGroupIdentity", - "ContainerGroupListResult", "ContainerGroupProfile", - "ContainerGroupProfileListResult", "ContainerGroupProfilePatch", + "ContainerGroupProfileProperties", "ContainerGroupProfileReferenceDefinition", "ContainerGroupProfileStub", - "ContainerGroupProperties", - "ContainerGroupPropertiesInstanceView", + "ContainerGroupPropertiesProperties", + "ContainerGroupPropertiesPropertiesInstanceView", "ContainerGroupSubnetId", "ContainerHttpGet", "ContainerPort", "ContainerProbe", + "ContainerProperties", "ContainerPropertiesInstanceView", "ContainerState", "DeploymentExtensionSpec", + "DeploymentExtensionSpecProperties", "DnsConfiguration", "ElasticProfile", "ElasticProfileContainerGroupNamingPolicy", @@ -195,10 +195,11 @@ "IdentityAcls", "ImageRegistryCredential", "InitContainerDefinition", + "InitContainerPropertiesDefinition", "InitContainerPropertiesDefinitionInstanceView", "IpAddress", "ListResultContainerGroup", - "ListResultContainerGroupProperties", + "ListResultContainerGroupPropertiesProperties", "LoadBalancer", "LoadBalancerBackendAddressPool", "LogAnalytics", @@ -210,15 +211,13 @@ "NGroupContainerGroupProperties", "NGroupIdentity", "NGroupPatch", - "NGroupSkus", - "NGroupsListResult", - "NGroupsSkusList", + "NGroupProperties", "NetworkProfile", "Operation", "OperationDisplay", - "OperationListResult", "PlacementProfile", "Port", + "ProxyResource", "Resource", "ResourceLimits", "ResourceRequests", @@ -232,7 +231,6 @@ "UpdateProfile", "UpdateProfileRollingUpdateProfile", "Usage", - "UsageListResult", "UsageName", "UserAssignedIdentities", "Volume", diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_container_instance_management_client_enums.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_enums.py similarity index 75% rename from sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_container_instance_management_client_enums.py rename to sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_enums.py index 153b2b459164..1e4348f4d2f2 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_container_instance_management_client_enums.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_enums.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -13,13 +13,18 @@ class AzureFileShareAccessTier(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Learn more at: - https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP#shareaccesstier. + `https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP#shareaccesstier + `_. """ COOL = "Cool" + """Cool.""" HOT = "Hot" + """Hot.""" PREMIUM = "Premium" + """Premium.""" TRANSACTION_OPTIMIZED = "TransactionOptimized" + """TransactionOptimized.""" class AzureFileShareAccessType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -28,92 +33,127 @@ class AzureFileShareAccessType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ SHARED = "Shared" + """Shared.""" EXCLUSIVE = "Exclusive" + """Exclusive.""" class ContainerGroupIpAddressType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specifies if the IP is exposed to the public internet or private VNET.""" PUBLIC = "Public" + """Public.""" PRIVATE = "Private" + """Private.""" class ContainerGroupNetworkProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The protocol associated with the port.""" TCP = "TCP" + """TCP.""" UDP = "UDP" + """UDP.""" class ContainerGroupPriority(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The priority of the container group.""" REGULAR = "Regular" + """Regular.""" SPOT = "Spot" + """Spot.""" class ContainerGroupProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The provisioning state of the container group. This only appears in the response.""" NOT_SPECIFIED = "NotSpecified" + """NotSpecified.""" ACCEPTED = "Accepted" + """Accepted.""" PENDING = "Pending" + """Pending.""" UPDATING = "Updating" + """Updating.""" CREATING = "Creating" + """Creating.""" REPAIRING = "Repairing" + """Repairing.""" UNHEALTHY = "Unhealthy" + """Unhealthy.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" SUCCEEDED = "Succeeded" + """Succeeded.""" DELETING = "Deleting" + """Deleting.""" NOT_ACCESSIBLE = "NotAccessible" + """NotAccessible.""" PRE_PROVISIONED = "PreProvisioned" + """PreProvisioned.""" class ContainerGroupRestartPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. + * `Always` Always restart + * `OnFailure` Restart on failure + * `Never` Never restart. """ ALWAYS = "Always" + """Always.""" ON_FAILURE = "OnFailure" + """OnFailure.""" NEVER = "Never" + """Never.""" class ContainerGroupSku(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The container group SKU.""" NOT_SPECIFIED = "NotSpecified" + """NotSpecified.""" STANDARD = "Standard" + """Standard.""" DEDICATED = "Dedicated" + """Dedicated.""" CONFIDENTIAL = "Confidential" + """Confidential.""" class ContainerInstanceOperationsOrigin(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The intended executor of the operation.""" USER = "User" + """User.""" SYSTEM = "System" + """System.""" class ContainerNetworkProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The protocol associated with the port.""" TCP = "TCP" + """TCP.""" UDP = "UDP" + """UDP.""" class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" + """The kind of entity that created the resource.""" USER = "User" + """The entity was created by a user.""" APPLICATION = "Application" + """The entity was created by an application.""" MANAGED_IDENTITY = "ManagedIdentity" + """The entity was created by a managed identity.""" KEY = "Key" + """The entity was created by a key.""" class DnsNameLabelReusePolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -128,59 +168,83 @@ class DnsNameLabelReusePolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ UNSECURE = "Unsecure" + """Unsecure.""" TENANT_REUSE = "TenantReuse" + """TenantReuse.""" SUBSCRIPTION_REUSE = "SubscriptionReuse" + """SubscriptionReuse.""" RESOURCE_GROUP_REUSE = "ResourceGroupReuse" + """ResourceGroupReuse.""" NOREUSE = "Noreuse" + """Noreuse.""" class GpuSku(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The SKU of the GPU resource.""" K80 = "K80" + """K80.""" P100 = "P100" + """P100.""" V100 = "V100" + """V100.""" class IdentityAccessLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The access level of an identity.""" ALL = "All" + """All.""" SYSTEM = "System" + """System.""" USER = "User" + """User.""" class LogAnalyticsLogType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The log type to be used.""" CONTAINER_INSIGHTS = "ContainerInsights" + """ContainerInsights.""" CONTAINER_INSTANCE_LOGS = "ContainerInstanceLogs" + """ContainerInstanceLogs.""" class NGroupProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The provisioning state, which only appears in the response.""" CREATING = "Creating" + """Creating.""" UPDATING = "Updating" + """Updating.""" FAILED = "Failed" + """Failed.""" SUCCEEDED = "Succeeded" + """Succeeded.""" CANCELED = "Canceled" + """Canceled.""" DELETING = "Deleting" + """Deleting.""" MIGRATING = "Migrating" + """Migrating.""" class NGroupUpdateMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """NGroupUpdateMode.""" + """Type of NGroupUpdateMode.""" MANUAL = "Manual" + """Manual.""" ROLLING = "Rolling" + """Rolling.""" class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The operating system type required by the containers in the container group.""" WINDOWS = "Windows" + """Windows.""" LINUX = "Linux" + """Linux.""" class ResourceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -190,13 +254,19 @@ class ResourceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ SYSTEM_ASSIGNED = "SystemAssigned" + """SystemAssigned.""" USER_ASSIGNED = "UserAssigned" + """UserAssigned.""" SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned, UserAssigned" + """SystemAssigned, UserAssigned.""" NONE = "None" + """None.""" class Scheme(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The scheme.""" HTTP = "http" + """http.""" HTTPS = "https" + """https.""" diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models.py new file mode 100644 index 000000000000..686ca592afaa --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models.py @@ -0,0 +1,4572 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +# pylint: disable=useless-super-delegation + +import datetime +from typing import Any, Mapping, Optional, TYPE_CHECKING, Union, overload + +from .._utils.model_base import Model as _Model, rest_field + +if TYPE_CHECKING: + from .. import models as _models + + +class ApiEntityReference(_Model): + """The API entity reference. + + :ivar id: The ARM resource id in the form of + /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... + :vartype id: str + """ + + id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The ARM resource id in the form of + /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...""" + + @overload + def __init__( + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ApplicationGateway(_Model): + """Application Gateway the CG profile will use to interact with CGs in a backend pool. + + :ivar resource: The Application Gateway ARM resource Id. + :vartype resource: str + :ivar backend_address_pools: List of Application Gateway Backend Address Pools. + :vartype backend_address_pools: + list[~azure.mgmt.containerinstance.models.ApplicationGatewayBackendAddressPool] + """ + + resource: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Application Gateway ARM resource Id.""" + backend_address_pools: Optional[list["_models.ApplicationGatewayBackendAddressPool"]] = rest_field( + name="backendAddressPools", visibility=["read", "create", "update", "delete", "query"] + ) + """List of Application Gateway Backend Address Pools.""" + + @overload + def __init__( + self, + *, + resource: Optional[str] = None, + backend_address_pools: Optional[list["_models.ApplicationGatewayBackendAddressPool"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ApplicationGatewayBackendAddressPool(_Model): + """NGroups application gateway backend address pool. + + :ivar resource: The application gateway backend address pool ARM resource Id. + :vartype resource: str + """ + + resource: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The application gateway backend address pool ARM resource Id.""" + + @overload + def __init__( + self, + *, + resource: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArmResource(_Model): + """Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.containerinstance.models.SystemData + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + name: Optional[str] = rest_field(visibility=["read"]) + """The name of the resource.""" + type: Optional[str] = rest_field(visibility=["read"]) + """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or + \"Microsoft.Storage/storageAccounts\".""" + system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"]) + """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" + + +class AzureFileVolume(_Model): + """The properties of the Azure File volume. Azure File shares are mounted as volumes. + + :ivar share_name: The name of the Azure File share to be mounted as a volume. Required. + :vartype share_name: str + :ivar read_only: The flag indicating whether the Azure File shared mounted as a volume is + read-only. + :vartype read_only: bool + :ivar storage_account_name: The name of the storage account that contains the Azure File share. + Required. + :vartype storage_account_name: str + :ivar storage_account_key: The storage account access key used to access the Azure File share. + :vartype storage_account_key: str + :ivar storage_account_key_reference: The reference to the storage account access key used to + access the Azure File share. + :vartype storage_account_key_reference: str + """ + + share_name: str = rest_field(name="shareName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the Azure File share to be mounted as a volume. Required.""" + read_only: Optional[bool] = rest_field(name="readOnly", visibility=["read", "create", "update", "delete", "query"]) + """The flag indicating whether the Azure File shared mounted as a volume is read-only.""" + storage_account_name: str = rest_field( + name="storageAccountName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the storage account that contains the Azure File share. Required.""" + storage_account_key: Optional[str] = rest_field( + name="storageAccountKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The storage account access key used to access the Azure File share.""" + storage_account_key_reference: Optional[str] = rest_field( + name="storageAccountKeyReference", visibility=["read", "create", "update", "delete", "query"] + ) + """The reference to the storage account access key used to access the Azure File share.""" + + @overload + def __init__( + self, + *, + share_name: str, + storage_account_name: str, + read_only: Optional[bool] = None, + storage_account_key: Optional[str] = None, + storage_account_key_reference: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CachedImages(_Model): + """The cached image and OS type. + + :ivar os_type: The OS type of the cached image. Required. + :vartype os_type: str + :ivar image: The cached image name. Required. + :vartype image: str + """ + + os_type: str = rest_field(name="osType", visibility=["read", "create", "update", "delete", "query"]) + """The OS type of the cached image. Required.""" + image: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The cached image name. Required.""" + + @overload + def __init__( + self, + *, + os_type: str, + image: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Capabilities(_Model): + """The regional capabilities. + + :ivar resource_type: The resource type that this capability describes. + :vartype resource_type: str + :ivar os_type: The OS type that this capability describes. + :vartype os_type: str + :ivar location: The resource location. + :vartype location: str + :ivar ip_address_type: The ip address type that this capability describes. + :vartype ip_address_type: str + :ivar gpu: The GPU sku that this capability describes. + :vartype gpu: str + :ivar capabilities: The supported capabilities. + :vartype capabilities: ~azure.mgmt.containerinstance.models.CapabilitiesCapabilities + """ + + resource_type: Optional[str] = rest_field(name="resourceType", visibility=["read"]) + """The resource type that this capability describes.""" + os_type: Optional[str] = rest_field(name="osType", visibility=["read"]) + """The OS type that this capability describes.""" + location: Optional[str] = rest_field(visibility=["read"]) + """The resource location.""" + ip_address_type: Optional[str] = rest_field(name="ipAddressType", visibility=["read"]) + """The ip address type that this capability describes.""" + gpu: Optional[str] = rest_field(visibility=["read"]) + """The GPU sku that this capability describes.""" + capabilities: Optional["_models.CapabilitiesCapabilities"] = rest_field(visibility=["read"]) + """The supported capabilities.""" + + +class CapabilitiesCapabilities(_Model): + """The supported capabilities. + + :ivar max_memory_in_gb: The maximum allowed memory request in GB. + :vartype max_memory_in_gb: float + :ivar max_cpu: The maximum allowed CPU request in cores. + :vartype max_cpu: float + :ivar max_gpu_count: The maximum allowed GPU count. + :vartype max_gpu_count: float + """ + + max_memory_in_gb: Optional[float] = rest_field(name="maxMemoryInGB", visibility=["read"]) + """The maximum allowed memory request in GB.""" + max_cpu: Optional[float] = rest_field(name="maxCpu", visibility=["read"]) + """The maximum allowed CPU request in cores.""" + max_gpu_count: Optional[float] = rest_field(name="maxGpuCount", visibility=["read"]) + """The maximum allowed GPU count.""" + + +class CloudError(_Model): + """An error response from the Container Instance service. + + :ivar error: An error response from the Container Instance service. + :vartype error: ~azure.mgmt.containerinstance.models.CloudErrorBody + """ + + error: Optional["_models.CloudErrorBody"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """An error response from the Container Instance service.""" + + @overload + def __init__( + self, + *, + error: Optional["_models.CloudErrorBody"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CloudErrorBody(_Model): + """An error response from the Container Instance service. + + :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed + programmatically. + :vartype code: str + :ivar message: A message describing the error, intended to be suitable for display in a user + interface. + :vartype message: str + :ivar target: The target of the particular error. For example, the name of the property in + error. + :vartype target: str + :ivar details: A list of additional details about the error. + :vartype details: list[~azure.mgmt.containerinstance.models.CloudErrorBody] + """ + + code: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """An identifier for the error. Codes are invariant and are intended to be consumed + programmatically.""" + message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A message describing the error, intended to be suitable for display in a user interface.""" + target: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The target of the particular error. For example, the name of the property in error.""" + details: Optional[list["_models.CloudErrorBody"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """A list of additional details about the error.""" + + @overload + def __init__( + self, + *, + code: Optional[str] = None, + message: Optional[str] = None, + target: Optional[str] = None, + details: Optional[list["_models.CloudErrorBody"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConfidentialComputeProperties(_Model): + """The properties for confidential container group. + + :ivar cce_policy: The base64 encoded confidential compute enforcement policy. + :vartype cce_policy: str + """ + + cce_policy: Optional[str] = rest_field(name="ccePolicy", visibility=["read", "create", "update", "delete", "query"]) + """The base64 encoded confidential compute enforcement policy.""" + + @overload + def __init__( + self, + *, + cce_policy: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConfigMap(_Model): + """The container config map. + + :ivar key_value_pairs: The key value pairs dictionary in the config map. + :vartype key_value_pairs: dict[str, str] + """ + + key_value_pairs: Optional[dict[str, str]] = rest_field( + name="keyValuePairs", visibility=["read", "create", "update", "delete", "query"] + ) + """The key value pairs dictionary in the config map.""" + + @overload + def __init__( + self, + *, + key_value_pairs: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Container(_Model): + """A container instance. + + :ivar name: The user-provided name of the container instance. Required. + :vartype name: str + :ivar properties: The properties of the container instance. Required. + :vartype properties: ~azure.mgmt.containerinstance.models.ContainerProperties + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user-provided name of the container instance. Required.""" + properties: "_models.ContainerProperties" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The properties of the container instance. Required.""" + + __flattened_items = [ + "image", + "command", + "ports", + "environment_variables", + "instance_view", + "resources", + "volume_mounts", + "liveness_probe", + "readiness_probe", + "security_context", + "config_map", + ] + + @overload + def __init__( + self, + *, + name: str, + properties: "_models.ContainerProperties", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class ContainerAttachResponse(_Model): + """The information for the output stream from container attach. + + :ivar web_socket_uri: The uri for the output stream from the attach. + :vartype web_socket_uri: str + :ivar password: The password to the output stream from the attach. Send as an Authorization + header value when connecting to the websocketUri. + :vartype password: str + """ + + web_socket_uri: Optional[str] = rest_field( + name="webSocketUri", visibility=["read", "create", "update", "delete", "query"] + ) + """The uri for the output stream from the attach.""" + password: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password to the output stream from the attach. Send as an Authorization header value when + connecting to the websocketUri.""" + + @overload + def __init__( + self, + *, + web_socket_uri: Optional[str] = None, + password: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerExec(_Model): + """The container execution command, for liveness or readiness probe. + + :ivar command: The commands to execute within the container. + :vartype command: list[str] + """ + + command: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The commands to execute within the container.""" + + @overload + def __init__( + self, + *, + command: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerExecRequest(_Model): + """The container exec request. + + :ivar command: The command to be executed. + :vartype command: str + :ivar terminal_size: The size of the terminal. + :vartype terminal_size: ~azure.mgmt.containerinstance.models.ContainerExecRequestTerminalSize + """ + + command: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The command to be executed.""" + terminal_size: Optional["_models.ContainerExecRequestTerminalSize"] = rest_field( + name="terminalSize", visibility=["read", "create", "update", "delete", "query"] + ) + """The size of the terminal.""" + + @overload + def __init__( + self, + *, + command: Optional[str] = None, + terminal_size: Optional["_models.ContainerExecRequestTerminalSize"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerExecRequestTerminalSize(_Model): + """The size of the terminal. + + :ivar rows: The row size of the terminal. + :vartype rows: int + :ivar cols: The column size of the terminal. + :vartype cols: int + """ + + rows: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The row size of the terminal.""" + cols: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The column size of the terminal.""" + + @overload + def __init__( + self, + *, + rows: Optional[int] = None, + cols: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerExecResponse(_Model): + """The information for the container exec command. + + :ivar web_socket_uri: The uri for the exec websocket. + :vartype web_socket_uri: str + :ivar password: The password to start the exec command. + :vartype password: str + """ + + web_socket_uri: Optional[str] = rest_field( + name="webSocketUri", visibility=["read", "create", "update", "delete", "query"] + ) + """The uri for the exec websocket.""" + password: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password to start the exec command.""" + + @overload + def __init__( + self, + *, + web_socket_uri: Optional[str] = None, + password: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ProxyResource(ArmResource): + """Proxy Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.containerinstance.models.SystemData + """ + + +class ContainerGroup(ProxyResource): + """A container group. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.containerinstance.models.SystemData + :ivar location: The resource location. Required. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar zones: The availability zones. + :vartype zones: list[str] + :ivar identity: The identity of the container group, if configured. + :vartype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity + :ivar properties: The container group properties. Required. + :vartype properties: ~azure.mgmt.containerinstance.models.ContainerGroupPropertiesProperties + """ + + location: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource location. Required.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource tags.""" + zones: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The availability zones.""" + identity: Optional["_models.ContainerGroupIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The identity of the container group, if configured.""" + properties: "_models.ContainerGroupPropertiesProperties" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The container group properties. Required.""" + + __flattened_items = [ + "provisioning_state", + "secret_references", + "containers", + "image_registry_credentials", + "restart_policy", + "ip_address", + "os_type", + "volumes", + "instance_view", + "diagnostics", + "subnet_ids", + "dns_config", + "sku", + "encryption_properties", + "init_containers", + "extensions", + "confidential_compute_properties", + "priority", + "identity_acls", + "container_group_profile", + "standby_pool_profile", + "is_created_from_standby_pool", + ] + + @overload + def __init__( + self, + *, + location: str, + properties: "_models.ContainerGroupPropertiesProperties", + tags: Optional[dict[str, str]] = None, + zones: Optional[list[str]] = None, + identity: Optional["_models.ContainerGroupIdentity"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class ContainerGroupDiagnostics(_Model): + """Container group diagnostic information. + + :ivar log_analytics: Container group log analytics information. + :vartype log_analytics: ~azure.mgmt.containerinstance.models.LogAnalytics + """ + + log_analytics: Optional["_models.LogAnalytics"] = rest_field( + name="logAnalytics", visibility=["read", "create", "update", "delete", "query"] + ) + """Container group log analytics information.""" + + @overload + def __init__( + self, + *, + log_analytics: Optional["_models.LogAnalytics"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerGroupIdentity(_Model): + """Identity for the container group. + + :ivar principal_id: The principal id of the container group identity. This property will only + be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the container group. This property will only be + provided for a system assigned identity. + :vartype tenant_id: str + :ivar type: The type of identity used for the container group. The type 'SystemAssigned, + UserAssigned' includes both an implicitly created identity and a set of user assigned + identities. The type 'None' will remove any identities from the container group. Known values + are: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", and "None". + :vartype type: str or ~azure.mgmt.containerinstance.models.ResourceIdentityType + :ivar user_assigned_identities: The list of user identities associated with the container + group. + :vartype user_assigned_identities: dict[str, + ~azure.mgmt.containerinstance.models.UserAssignedIdentities] + """ + + principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) + """The principal id of the container group identity. This property will only be provided for a + system assigned identity.""" + tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read"]) + """The tenant id associated with the container group. This property will only be provided for a + system assigned identity.""" + type: Optional[Union[str, "_models.ResourceIdentityType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' + includes both an implicitly created identity and a set of user assigned identities. The type + 'None' will remove any identities from the container group. Known values are: + \"SystemAssigned\", \"UserAssigned\", \"SystemAssigned, UserAssigned\", and \"None\".""" + user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentities"]] = rest_field( + name="userAssignedIdentities", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of user identities associated with the container group.""" + + @overload + def __init__( + self, + *, + type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, + user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentities"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerGroupProfile(ArmResource): + """A container group profile object. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.containerinstance.models.SystemData + :ivar properties: The container group profile properties. + :vartype properties: ~azure.mgmt.containerinstance.models.ContainerGroupProfileProperties + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. + :vartype location: str + :ivar zones: The availability zones. + :vartype zones: list[str] + """ + + properties: Optional["_models.ContainerGroupProfileProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The container group profile properties.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + location: Optional[str] = rest_field(visibility=["read", "create"]) + """The geo-location where the resource lives.""" + zones: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The availability zones.""" + + __flattened_items = [ + "sku", + "encryption_properties", + "containers", + "init_containers", + "extensions", + "image_registry_credentials", + "restart_policy", + "shutdown_grace_period", + "ip_address", + "time_to_live", + "os_type", + "volumes", + "diagnostics", + "priority", + "confidential_compute_properties", + "security_context", + "revision", + "registered_revisions", + "use_krypton", + ] + + @overload + def __init__( + self, + *, + properties: Optional["_models.ContainerGroupProfileProperties"] = None, + tags: Optional[dict[str, str]] = None, + location: Optional[str] = None, + zones: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class ContainerGroupProfilePatch(_Model): + """Properties of container group profile that need to be patched. + + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + + @overload + def __init__( + self, + *, + tags: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerGroupProfileProperties(_Model): + """The container group profile properties. + + :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". + :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku + :ivar encryption_properties: The encryption properties for a container group. + :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties + :ivar containers: The containers within the container group. Required. + :vartype containers: list[~azure.mgmt.containerinstance.models.Container] + :ivar init_containers: The init containers for a container group. + :vartype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] + :ivar extensions: extensions used by virtual kubelet. + :vartype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] + :ivar image_registry_credentials: The image registry credentials by which the container group + is created from. + :vartype image_registry_credentials: + list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] + :ivar restart_policy: Restart policy for all containers within the container group. + + * `Always` Always restart + * `OnFailure` Restart on failure + * `Never` Never restart. Known values are: "Always", "OnFailure", and "Never". + :vartype restart_policy: str or + ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy + :ivar shutdown_grace_period: Shutdown grace period for containers in a container group. + :vartype shutdown_grace_period: ~datetime.datetime + :ivar ip_address: The IP address type of the container group. + :vartype ip_address: ~azure.mgmt.containerinstance.models.IpAddress + :ivar time_to_live: Post completion time to live for containers of a CG. + :vartype time_to_live: ~datetime.datetime + :ivar os_type: The operating system type required by the containers in the container group. + Required. Known values are: "Windows" and "Linux". + :vartype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes + :ivar volumes: The list of volumes that can be mounted by containers in this container group. + :vartype volumes: list[~azure.mgmt.containerinstance.models.Volume] + :ivar diagnostics: The diagnostic information for a container group. + :vartype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics + :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". + :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority + :ivar confidential_compute_properties: The properties for confidential container group. + :vartype confidential_compute_properties: + ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties + :ivar security_context: The container security properties. + :vartype security_context: ~azure.mgmt.containerinstance.models.SecurityContextDefinition + :ivar revision: Container group profile current revision number. + :vartype revision: int + :ivar registered_revisions: Registered revisions are calculated at request time based off the + records in the table logs. + :vartype registered_revisions: list[int] + :ivar use_krypton: Gets or sets Krypton use property. + :vartype use_krypton: bool + """ + + sku: Optional[Union[str, "_models.ContainerGroupSku"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The SKU for a container group. Known values are: \"NotSpecified\", \"Standard\", \"Dedicated\", + and \"Confidential\".""" + encryption_properties: Optional["_models.EncryptionProperties"] = rest_field( + name="encryptionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """The encryption properties for a container group.""" + containers: list["_models.Container"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The containers within the container group. Required.""" + init_containers: Optional[list["_models.InitContainerDefinition"]] = rest_field( + name="initContainers", visibility=["read", "create", "update", "delete", "query"] + ) + """The init containers for a container group.""" + extensions: Optional[list["_models.DeploymentExtensionSpec"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """extensions used by virtual kubelet.""" + image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = rest_field( + name="imageRegistryCredentials", visibility=["read", "create", "update", "delete", "query"] + ) + """The image registry credentials by which the container group is created from.""" + restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = rest_field( + name="restartPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """Restart policy for all containers within the container group. + + * `Always` Always restart + * `OnFailure` Restart on failure + * `Never` Never restart. Known values are: \"Always\", \"OnFailure\", and \"Never\".""" + shutdown_grace_period: Optional[datetime.datetime] = rest_field( + name="shutdownGracePeriod", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """Shutdown grace period for containers in a container group.""" + ip_address: Optional["_models.IpAddress"] = rest_field( + name="ipAddress", visibility=["read", "create", "update", "delete", "query"] + ) + """The IP address type of the container group.""" + time_to_live: Optional[datetime.datetime] = rest_field( + name="timeToLive", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """Post completion time to live for containers of a CG.""" + os_type: Union[str, "_models.OperatingSystemTypes"] = rest_field( + name="osType", visibility=["read", "create", "update", "delete", "query"] + ) + """The operating system type required by the containers in the container group. Required. Known + values are: \"Windows\" and \"Linux\".""" + volumes: Optional[list["_models.Volume"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The list of volumes that can be mounted by containers in this container group.""" + diagnostics: Optional["_models.ContainerGroupDiagnostics"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The diagnostic information for a container group.""" + priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The priority of the container group. Known values are: \"Regular\" and \"Spot\".""" + confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = rest_field( + name="confidentialComputeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """The properties for confidential container group.""" + security_context: Optional["_models.SecurityContextDefinition"] = rest_field( + name="securityContext", visibility=["read", "create", "update", "delete", "query"] + ) + """The container security properties.""" + revision: Optional[int] = rest_field(visibility=["read"]) + """Container group profile current revision number.""" + registered_revisions: Optional[list[int]] = rest_field(name="registeredRevisions", visibility=["read"]) + """Registered revisions are calculated at request time based off the records in the table logs.""" + use_krypton: Optional[bool] = rest_field( + name="useKrypton", visibility=["read", "create", "update", "delete", "query"] + ) + """Gets or sets Krypton use property.""" + + @overload + def __init__( + self, + *, + containers: list["_models.Container"], + os_type: Union[str, "_models.OperatingSystemTypes"], + sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, + encryption_properties: Optional["_models.EncryptionProperties"] = None, + init_containers: Optional[list["_models.InitContainerDefinition"]] = None, + extensions: Optional[list["_models.DeploymentExtensionSpec"]] = None, + image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = None, + restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, + shutdown_grace_period: Optional[datetime.datetime] = None, + ip_address: Optional["_models.IpAddress"] = None, + time_to_live: Optional[datetime.datetime] = None, + volumes: Optional[list["_models.Volume"]] = None, + diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, + priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, + confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, + security_context: Optional["_models.SecurityContextDefinition"] = None, + use_krypton: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerGroupProfileReferenceDefinition(_Model): + """The container group profile reference. + + :ivar 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}'. + :vartype id: str + :ivar revision: The container group profile reference revision. + :vartype revision: int + """ + + id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """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}'.""" + revision: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The container group profile reference revision.""" + + @overload + def __init__( + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + revision: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerGroupProfileStub(_Model): + """The object that contains a reference to a Container Group Profile and it's other related + properties. + + :ivar resource: A reference to the container group profile ARM resource hosted in ACI RP. + :vartype resource: ~azure.mgmt.containerinstance.models.ApiEntityReference + :ivar revision: The revision of the CG profile is an optional property. If customer does not to + provide a revision then NGroups will pickup the latest revision of CGProfile. + :vartype revision: int + :ivar network_profile: A network profile for network settings of a ContainerGroupProfile. + :vartype network_profile: ~azure.mgmt.containerinstance.models.NetworkProfile + :ivar storage_profile: Storage profile for storage related settings of a container group + profile. + :vartype storage_profile: ~azure.mgmt.containerinstance.models.StorageProfile + :ivar container_group_properties: Container Group properties which can be set while creating or + updating the NGroups. + :vartype container_group_properties: + ~azure.mgmt.containerinstance.models.NGroupContainerGroupProperties + """ + + resource: Optional["_models.ApiEntityReference"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """A reference to the container group profile ARM resource hosted in ACI RP.""" + revision: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The revision of the CG profile is an optional property. If customer does not to provide a + revision then NGroups will pickup the latest revision of CGProfile.""" + network_profile: Optional["_models.NetworkProfile"] = rest_field( + name="networkProfile", visibility=["read", "create", "update", "delete", "query"] + ) + """A network profile for network settings of a ContainerGroupProfile.""" + storage_profile: Optional["_models.StorageProfile"] = rest_field( + name="storageProfile", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage profile for storage related settings of a container group profile.""" + container_group_properties: Optional["_models.NGroupContainerGroupProperties"] = rest_field( + name="containerGroupProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Container Group properties which can be set while creating or updating the NGroups.""" + + @overload + def __init__( + self, + *, + resource: Optional["_models.ApiEntityReference"] = None, + revision: Optional[int] = None, + network_profile: Optional["_models.NetworkProfile"] = None, + storage_profile: Optional["_models.StorageProfile"] = None, + container_group_properties: Optional["_models.NGroupContainerGroupProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerGroupPropertiesProperties(_Model): + """The container group properties. + + :ivar provisioning_state: The provisioning state of the container group. This only appears in + the response. + :vartype provisioning_state: str + :ivar secret_references: The secret references that will be referenced within the container + group. + :vartype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] + :ivar containers: The containers within the container group. Required. + :vartype containers: list[~azure.mgmt.containerinstance.models.Container] + :ivar image_registry_credentials: The image registry credentials by which the container group + is created from. + :vartype image_registry_credentials: + list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] + :ivar restart_policy: Restart policy for all containers within the container group. + + * `Always` Always restart + * `OnFailure` Restart on failure + * `Never` Never restart. Known values are: "Always", "OnFailure", and "Never". + :vartype restart_policy: str or + ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy + :ivar ip_address: The IP address type of the container group. + :vartype ip_address: ~azure.mgmt.containerinstance.models.IpAddress + :ivar os_type: The operating system type required by the containers in the container group. + Known values are: "Windows" and "Linux". + :vartype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes + :ivar volumes: The list of volumes that can be mounted by containers in this container group. + :vartype volumes: list[~azure.mgmt.containerinstance.models.Volume] + :ivar instance_view: The instance view of the container group. Only valid in response. + :vartype instance_view: + ~azure.mgmt.containerinstance.models.ContainerGroupPropertiesPropertiesInstanceView + :ivar diagnostics: The diagnostic information for a container group. + :vartype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics + :ivar subnet_ids: The subnet resource IDs for a container group. + :vartype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] + :ivar dns_config: The DNS config information for a container group. + :vartype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration + :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". + :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku + :ivar encryption_properties: The encryption properties for a container group. + :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties + :ivar init_containers: The init containers for a container group. + :vartype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] + :ivar extensions: extensions used by virtual kubelet. + :vartype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] + :ivar confidential_compute_properties: The properties for confidential container group. + :vartype confidential_compute_properties: + ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties + :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". + :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority + :ivar identity_acls: The access control levels of the identities. + :vartype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls + :ivar container_group_profile: The reference container group profile properties. + :vartype container_group_profile: + ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition + :ivar standby_pool_profile: The reference standby pool profile properties. + :vartype standby_pool_profile: + ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition + :ivar is_created_from_standby_pool: The flag to determine whether the container group is + created from standby pool. + :vartype is_created_from_standby_pool: bool + """ + + provisioning_state: Optional[str] = rest_field(name="provisioningState", visibility=["read"]) + """The provisioning state of the container group. This only appears in the response.""" + secret_references: Optional[list["_models.SecretReference"]] = rest_field( + name="secretReferences", visibility=["read", "create", "update", "delete", "query"] + ) + """The secret references that will be referenced within the container group.""" + containers: list["_models.Container"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The containers within the container group. Required.""" + image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = rest_field( + name="imageRegistryCredentials", visibility=["read", "create", "update", "delete", "query"] + ) + """The image registry credentials by which the container group is created from.""" + restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = rest_field( + name="restartPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """Restart policy for all containers within the container group. + + * `Always` Always restart + * `OnFailure` Restart on failure + * `Never` Never restart. Known values are: \"Always\", \"OnFailure\", and \"Never\".""" + ip_address: Optional["_models.IpAddress"] = rest_field( + name="ipAddress", visibility=["read", "create", "update", "delete", "query"] + ) + """The IP address type of the container group.""" + os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = rest_field( + name="osType", visibility=["read", "create", "update", "delete", "query"] + ) + """The operating system type required by the containers in the container group. Known values are: + \"Windows\" and \"Linux\".""" + volumes: Optional[list["_models.Volume"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The list of volumes that can be mounted by containers in this container group.""" + instance_view: Optional["_models.ContainerGroupPropertiesPropertiesInstanceView"] = rest_field( + name="instanceView", visibility=["read"] + ) + """The instance view of the container group. Only valid in response.""" + diagnostics: Optional["_models.ContainerGroupDiagnostics"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The diagnostic information for a container group.""" + subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = rest_field( + name="subnetIds", visibility=["read", "create", "update", "delete", "query"] + ) + """The subnet resource IDs for a container group.""" + dns_config: Optional["_models.DnsConfiguration"] = rest_field( + name="dnsConfig", visibility=["read", "create", "update", "delete", "query"] + ) + """The DNS config information for a container group.""" + sku: Optional[Union[str, "_models.ContainerGroupSku"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The SKU for a container group. Known values are: \"NotSpecified\", \"Standard\", \"Dedicated\", + and \"Confidential\".""" + encryption_properties: Optional["_models.EncryptionProperties"] = rest_field( + name="encryptionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """The encryption properties for a container group.""" + init_containers: Optional[list["_models.InitContainerDefinition"]] = rest_field( + name="initContainers", visibility=["read", "create", "update", "delete", "query"] + ) + """The init containers for a container group.""" + extensions: Optional[list["_models.DeploymentExtensionSpec"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """extensions used by virtual kubelet.""" + confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = rest_field( + name="confidentialComputeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """The properties for confidential container group.""" + priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The priority of the container group. Known values are: \"Regular\" and \"Spot\".""" + identity_acls: Optional["_models.IdentityAcls"] = rest_field( + name="identityAcls", visibility=["read", "create", "update", "delete", "query"] + ) + """The access control levels of the identities.""" + container_group_profile: Optional["_models.ContainerGroupProfileReferenceDefinition"] = rest_field( + name="containerGroupProfile", visibility=["read", "create", "update", "delete", "query"] + ) + """The reference container group profile properties.""" + standby_pool_profile: Optional["_models.StandbyPoolProfileDefinition"] = rest_field( + name="standbyPoolProfile", visibility=["read", "create", "update", "delete", "query"] + ) + """The reference standby pool profile properties.""" + is_created_from_standby_pool: Optional[bool] = rest_field(name="isCreatedFromStandbyPool", visibility=["read"]) + """The flag to determine whether the container group is created from standby pool.""" + + @overload + def __init__( + self, + *, + containers: list["_models.Container"], + secret_references: Optional[list["_models.SecretReference"]] = None, + image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = None, + restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, + ip_address: Optional["_models.IpAddress"] = None, + os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, + volumes: Optional[list["_models.Volume"]] = None, + diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, + subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = None, + dns_config: Optional["_models.DnsConfiguration"] = None, + sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, + encryption_properties: Optional["_models.EncryptionProperties"] = None, + init_containers: Optional[list["_models.InitContainerDefinition"]] = None, + extensions: Optional[list["_models.DeploymentExtensionSpec"]] = None, + confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, + priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, + identity_acls: Optional["_models.IdentityAcls"] = None, + container_group_profile: Optional["_models.ContainerGroupProfileReferenceDefinition"] = None, + standby_pool_profile: Optional["_models.StandbyPoolProfileDefinition"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerGroupPropertiesPropertiesInstanceView(_Model): # pylint: disable=name-too-long + """The instance view of the container group. Only valid in response. + + :ivar events: The events of this container group. + :vartype events: list[~azure.mgmt.containerinstance.models.Event] + :ivar state: The state of the container group. Only valid in response. + :vartype state: str + """ + + events: Optional[list["_models.Event"]] = rest_field(visibility=["read"]) + """The events of this container group.""" + state: Optional[str] = rest_field(visibility=["read"]) + """The state of the container group. Only valid in response.""" + + +class ContainerGroupSubnetId(_Model): + """Container group subnet information. + + :ivar id: Resource ID of virtual network and subnet. Required. + :vartype id: str + :ivar name: Friendly name for the subnet. + :vartype name: str + """ + + id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource ID of virtual network and subnet. Required.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Friendly name for the subnet.""" + + @overload + def __init__( + self, + *, + id: str, # pylint: disable=redefined-builtin + name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerHttpGet(_Model): + """The container Http Get settings, for liveness or readiness probe. + + :ivar path: The path to probe. + :vartype path: str + :ivar port: The port number to probe. Required. + :vartype port: int + :ivar scheme: The scheme. Known values are: "http" and "https". + :vartype scheme: str or ~azure.mgmt.containerinstance.models.Scheme + :ivar http_headers: The HTTP headers. + :vartype http_headers: list[~azure.mgmt.containerinstance.models.HttpHeader] + """ + + path: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The path to probe.""" + port: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port number to probe. Required.""" + scheme: Optional[Union[str, "_models.Scheme"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The scheme. Known values are: \"http\" and \"https\".""" + http_headers: Optional[list["_models.HttpHeader"]] = rest_field( + name="httpHeaders", visibility=["read", "create", "update", "delete", "query"] + ) + """The HTTP headers.""" + + @overload + def __init__( + self, + *, + port: int, + path: Optional[str] = None, + scheme: Optional[Union[str, "_models.Scheme"]] = None, + http_headers: Optional[list["_models.HttpHeader"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerPort(_Model): + """The port exposed on the container instance. + + :ivar protocol: The protocol associated with the port. Known values are: "TCP" and "UDP". + :vartype protocol: str or ~azure.mgmt.containerinstance.models.ContainerNetworkProtocol + :ivar port: The port number exposed within the container group. Required. + :vartype port: int + """ + + protocol: Optional[Union[str, "_models.ContainerNetworkProtocol"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The protocol associated with the port. Known values are: \"TCP\" and \"UDP\".""" + port: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port number exposed within the container group. Required.""" + + @overload + def __init__( + self, + *, + port: int, + protocol: Optional[Union[str, "_models.ContainerNetworkProtocol"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerProbe(_Model): + """The container probe, for liveness or readiness. + + :ivar exec_property: The execution command to probe. + :vartype exec_property: ~azure.mgmt.containerinstance.models.ContainerExec + :ivar http_get: The Http Get settings to probe. + :vartype http_get: ~azure.mgmt.containerinstance.models.ContainerHttpGet + :ivar initial_delay_seconds: The initial delay seconds. + :vartype initial_delay_seconds: int + :ivar period_seconds: The period seconds. + :vartype period_seconds: int + :ivar failure_threshold: The failure threshold. + :vartype failure_threshold: int + :ivar success_threshold: The success threshold. + :vartype success_threshold: int + :ivar timeout_seconds: The timeout seconds. + :vartype timeout_seconds: int + """ + + exec_property: Optional["_models.ContainerExec"] = rest_field( + name="exec", visibility=["read", "create", "update", "delete", "query"] + ) + """The execution command to probe.""" + http_get: Optional["_models.ContainerHttpGet"] = rest_field( + name="httpGet", visibility=["read", "create", "update", "delete", "query"] + ) + """The Http Get settings to probe.""" + initial_delay_seconds: Optional[int] = rest_field( + name="initialDelaySeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """The initial delay seconds.""" + period_seconds: Optional[int] = rest_field( + name="periodSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """The period seconds.""" + failure_threshold: Optional[int] = rest_field( + name="failureThreshold", visibility=["read", "create", "update", "delete", "query"] + ) + """The failure threshold.""" + success_threshold: Optional[int] = rest_field( + name="successThreshold", visibility=["read", "create", "update", "delete", "query"] + ) + """The success threshold.""" + timeout_seconds: Optional[int] = rest_field( + name="timeoutSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """The timeout seconds.""" + + @overload + def __init__( + self, + *, + exec_property: Optional["_models.ContainerExec"] = None, + http_get: Optional["_models.ContainerHttpGet"] = None, + initial_delay_seconds: Optional[int] = None, + period_seconds: Optional[int] = None, + failure_threshold: Optional[int] = None, + success_threshold: Optional[int] = None, + timeout_seconds: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerProperties(_Model): + """The container instance properties. + + :ivar image: The name of the image used to create the container instance. + :vartype image: str + :ivar command: The commands to execute within the container instance in exec form. + :vartype command: list[str] + :ivar ports: The exposed ports on the container instance. + :vartype ports: list[~azure.mgmt.containerinstance.models.ContainerPort] + :ivar environment_variables: The environment variables to set in the container instance. + :vartype environment_variables: list[~azure.mgmt.containerinstance.models.EnvironmentVariable] + :ivar instance_view: The instance view of the container instance. Only valid in response. + :vartype instance_view: ~azure.mgmt.containerinstance.models.ContainerPropertiesInstanceView + :ivar resources: The resource requirements of the container instance. + :vartype resources: ~azure.mgmt.containerinstance.models.ResourceRequirements + :ivar volume_mounts: The volume mounts available to the container instance. + :vartype volume_mounts: list[~azure.mgmt.containerinstance.models.VolumeMount] + :ivar liveness_probe: The liveness probe. + :vartype liveness_probe: ~azure.mgmt.containerinstance.models.ContainerProbe + :ivar readiness_probe: The readiness probe. + :vartype readiness_probe: ~azure.mgmt.containerinstance.models.ContainerProbe + :ivar security_context: The container security properties. + :vartype security_context: ~azure.mgmt.containerinstance.models.SecurityContextDefinition + :ivar config_map: The config map. + :vartype config_map: ~azure.mgmt.containerinstance.models.ConfigMap + """ + + image: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the image used to create the container instance.""" + command: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The commands to execute within the container instance in exec form.""" + ports: Optional[list["_models.ContainerPort"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The exposed ports on the container instance.""" + environment_variables: Optional[list["_models.EnvironmentVariable"]] = rest_field( + name="environmentVariables", visibility=["read", "create", "update", "delete", "query"] + ) + """The environment variables to set in the container instance.""" + instance_view: Optional["_models.ContainerPropertiesInstanceView"] = rest_field( + name="instanceView", visibility=["read"] + ) + """The instance view of the container instance. Only valid in response.""" + resources: Optional["_models.ResourceRequirements"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The resource requirements of the container instance.""" + volume_mounts: Optional[list["_models.VolumeMount"]] = rest_field( + name="volumeMounts", visibility=["read", "create", "update", "delete", "query"] + ) + """The volume mounts available to the container instance.""" + liveness_probe: Optional["_models.ContainerProbe"] = rest_field( + name="livenessProbe", visibility=["read", "create", "update", "delete", "query"] + ) + """The liveness probe.""" + readiness_probe: Optional["_models.ContainerProbe"] = rest_field( + name="readinessProbe", visibility=["read", "create", "update", "delete", "query"] + ) + """The readiness probe.""" + security_context: Optional["_models.SecurityContextDefinition"] = rest_field( + name="securityContext", visibility=["read", "create", "update", "delete", "query"] + ) + """The container security properties.""" + config_map: Optional["_models.ConfigMap"] = rest_field( + name="configMap", visibility=["read", "create", "update", "delete", "query"] + ) + """The config map.""" + + @overload + def __init__( + self, + *, + image: Optional[str] = None, + command: Optional[list[str]] = None, + ports: Optional[list["_models.ContainerPort"]] = None, + environment_variables: Optional[list["_models.EnvironmentVariable"]] = None, + resources: Optional["_models.ResourceRequirements"] = None, + volume_mounts: Optional[list["_models.VolumeMount"]] = None, + liveness_probe: Optional["_models.ContainerProbe"] = None, + readiness_probe: Optional["_models.ContainerProbe"] = None, + security_context: Optional["_models.SecurityContextDefinition"] = None, + config_map: Optional["_models.ConfigMap"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerPropertiesInstanceView(_Model): + """The instance view of the container instance. Only valid in response. + + :ivar restart_count: The number of times that the container instance has been restarted. + :vartype restart_count: int + :ivar current_state: Current container instance state. + :vartype current_state: ~azure.mgmt.containerinstance.models.ContainerState + :ivar previous_state: Previous container instance state. + :vartype previous_state: ~azure.mgmt.containerinstance.models.ContainerState + :ivar events: The events of the container instance. + :vartype events: list[~azure.mgmt.containerinstance.models.Event] + """ + + restart_count: Optional[int] = rest_field(name="restartCount", visibility=["read"]) + """The number of times that the container instance has been restarted.""" + current_state: Optional["_models.ContainerState"] = rest_field(name="currentState", visibility=["read"]) + """Current container instance state.""" + previous_state: Optional["_models.ContainerState"] = rest_field(name="previousState", visibility=["read"]) + """Previous container instance state.""" + events: Optional[list["_models.Event"]] = rest_field(visibility=["read"]) + """The events of the container instance.""" + + +class ContainerState(_Model): + """The container instance state. + + :ivar state: The state of the container instance. + :vartype state: str + :ivar start_time: The date-time when the container instance state started. + :vartype start_time: ~datetime.datetime + :ivar exit_code: The container instance exit codes correspond to those from the ``docker run`` + command. + :vartype exit_code: int + :ivar finish_time: The date-time when the container instance state finished. + :vartype finish_time: ~datetime.datetime + :ivar detail_status: The human-readable status of the container instance state. + :vartype detail_status: str + """ + + state: Optional[str] = rest_field(visibility=["read"]) + """The state of the container instance.""" + start_time: Optional[datetime.datetime] = rest_field(name="startTime", visibility=["read"], format="rfc3339") + """The date-time when the container instance state started.""" + exit_code: Optional[int] = rest_field(name="exitCode", visibility=["read"]) + """The container instance exit codes correspond to those from the ``docker run`` command.""" + finish_time: Optional[datetime.datetime] = rest_field(name="finishTime", visibility=["read"], format="rfc3339") + """The date-time when the container instance state finished.""" + detail_status: Optional[str] = rest_field(name="detailStatus", visibility=["read"]) + """The human-readable status of the container instance state.""" + + +class DeploymentExtensionSpec(_Model): + """Extension sidecars to be added to the deployment. + + :ivar name: Name of the extension. Required. + :vartype name: str + :ivar properties: Extension specific properties. + :vartype properties: ~azure.mgmt.containerinstance.models.DeploymentExtensionSpecProperties + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the extension. Required.""" + properties: Optional["_models.DeploymentExtensionSpecProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Extension specific properties.""" + + __flattened_items = ["extension_type", "version", "settings", "protected_settings"] + + @overload + def __init__( + self, + *, + name: str, + properties: Optional["_models.DeploymentExtensionSpecProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class DeploymentExtensionSpecProperties(_Model): + """Extension specific properties. + + :ivar extension_type: Type of extension to be added. Required. + :vartype extension_type: str + :ivar version: Version of the extension being used. Required. + :vartype version: str + :ivar settings: Settings for the extension. + :vartype settings: any + :ivar protected_settings: Protected settings for the extension. + :vartype protected_settings: any + """ + + extension_type: str = rest_field(name="extensionType", visibility=["read", "create", "update", "delete", "query"]) + """Type of extension to be added. Required.""" + version: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Version of the extension being used. Required.""" + settings: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Settings for the extension.""" + protected_settings: Optional[Any] = rest_field( + name="protectedSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Protected settings for the extension.""" + + @overload + def __init__( + self, + *, + extension_type: str, + version: str, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DnsConfiguration(_Model): + """DNS configuration for the container group. + + :ivar name_servers: The DNS servers for the container group. Required. + :vartype name_servers: list[str] + :ivar search_domains: The DNS search domains for hostname lookup in the container group. + :vartype search_domains: str + :ivar options: The DNS options for the container group. + :vartype options: str + """ + + name_servers: list[str] = rest_field(name="nameServers", visibility=["read", "create", "update", "delete", "query"]) + """The DNS servers for the container group. Required.""" + search_domains: Optional[str] = rest_field( + name="searchDomains", visibility=["read", "create", "update", "delete", "query"] + ) + """The DNS search domains for hostname lookup in the container group.""" + options: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The DNS options for the container group.""" + + @overload + def __init__( + self, + *, + name_servers: list[str], + search_domains: Optional[str] = None, + options: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ElasticProfile(_Model): + """Describes the elastic profile of the NGroup. + + :ivar desired_count: + :vartype desired_count: int + :ivar maintain_desired_count: Flag that indicates whether desiredCount should be maintained + when customer deletes SPECIFIC container groups (CGs) from the NGroups. In this case, new CGs + will be created by NGroup to compensate for the specific deleted ones. + :vartype maintain_desired_count: bool + :ivar container_group_naming_policy: Container Groups are named on a generic guid based naming + scheme/policy. Customer can modify naming policy to add prefix to CG names during scale out + operation. + :vartype container_group_naming_policy: + ~azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicy + """ + + desired_count: Optional[int] = rest_field( + name="desiredCount", visibility=["read", "create", "update", "delete", "query"] + ) + maintain_desired_count: Optional[bool] = rest_field( + name="maintainDesiredCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Flag that indicates whether desiredCount should be maintained when customer deletes SPECIFIC + container groups (CGs) from the NGroups. In this case, new CGs will be created by NGroup to + compensate for the specific deleted ones.""" + container_group_naming_policy: Optional["_models.ElasticProfileContainerGroupNamingPolicy"] = rest_field( + name="containerGroupNamingPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """Container Groups are named on a generic guid based naming scheme/policy. Customer can modify + naming policy to add prefix to CG names during scale out operation.""" + + @overload + def __init__( + self, + *, + desired_count: Optional[int] = None, + maintain_desired_count: Optional[bool] = None, + container_group_naming_policy: Optional["_models.ElasticProfileContainerGroupNamingPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ElasticProfileContainerGroupNamingPolicy(_Model): + """Container Groups are named on a generic guid based naming scheme/policy. Customer can modify + naming policy to add prefix to CG names during scale out operation. + + :ivar guid_naming_policy: + :vartype guid_naming_policy: + ~azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy + """ + + guid_naming_policy: Optional["_models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy"] = rest_field( + name="guidNamingPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + + @overload + def __init__( + self, + *, + guid_naming_policy: Optional["_models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy(_Model): # pylint: disable=name-too-long + """ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy. + + :ivar prefix: The prefix can be used when there are tooling limitations (e.g. on the Azure + portal where CGs from multiple NGroups exist in the same RG). The prefix with the suffixed + resource name must still follow Azure resource naming guidelines. + :vartype prefix: str + """ + + prefix: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The prefix can be used when there are tooling limitations (e.g. on the Azure portal where CGs + from multiple NGroups exist in the same RG). The prefix with the suffixed resource name must + still follow Azure resource naming guidelines.""" + + @overload + def __init__( + self, + *, + prefix: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class EncryptionProperties(_Model): + """The container group encryption properties. + + :ivar vault_base_url: The keyvault base url. Required. + :vartype vault_base_url: str + :ivar key_name: The encryption key name. Required. + :vartype key_name: str + :ivar key_version: The encryption key version. Required. + :vartype key_version: str + :ivar identity: The keyvault managed identity. + :vartype identity: str + """ + + vault_base_url: str = rest_field(name="vaultBaseUrl", visibility=["read", "create", "update", "delete", "query"]) + """The keyvault base url. Required.""" + key_name: str = rest_field(name="keyName", visibility=["read", "create", "update", "delete", "query"]) + """The encryption key name. Required.""" + key_version: str = rest_field(name="keyVersion", visibility=["read", "create", "update", "delete", "query"]) + """The encryption key version. Required.""" + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The keyvault managed identity.""" + + @overload + def __init__( + self, + *, + vault_base_url: str, + key_name: str, + key_version: str, + identity: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class EnvironmentVariable(_Model): + """The environment variable to set within the container instance. + + :ivar name: The name of the environment variable. Required. + :vartype name: str + :ivar value: The value of the environment variable. + :vartype value: str + :ivar secure_value: The value of the secure environment variable. + :vartype secure_value: str + :ivar secure_value_reference: The reference of the secure environment variable. + :vartype secure_value_reference: str + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the environment variable. Required.""" + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The value of the environment variable.""" + secure_value: Optional[str] = rest_field( + name="secureValue", visibility=["read", "create", "update", "delete", "query"] + ) + """The value of the secure environment variable.""" + secure_value_reference: Optional[str] = rest_field( + name="secureValueReference", visibility=["read", "create", "update", "delete", "query"] + ) + """The reference of the secure environment variable.""" + + @overload + def __init__( + self, + *, + name: str, + value: Optional[str] = None, + secure_value: Optional[str] = None, + secure_value_reference: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ErrorAdditionalInfo(_Model): + """The resource management error additional info. + + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: any + """ + + type: Optional[str] = rest_field(visibility=["read"]) + """The additional info type.""" + info: Optional[Any] = rest_field(visibility=["read"]) + """The additional info.""" + + +class ErrorDetail(_Model): + """The error detail. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar target: The error target. + :vartype target: str + :ivar details: The error details. + :vartype details: list[~azure.mgmt.containerinstance.models.ErrorDetail] + :ivar additional_info: The error additional info. + :vartype additional_info: list[~azure.mgmt.containerinstance.models.ErrorAdditionalInfo] + """ + + code: Optional[str] = rest_field(visibility=["read"]) + """The error code.""" + message: Optional[str] = rest_field(visibility=["read"]) + """The error message.""" + target: Optional[str] = rest_field(visibility=["read"]) + """The error target.""" + details: Optional[list["_models.ErrorDetail"]] = rest_field(visibility=["read"]) + """The error details.""" + additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = rest_field( + name="additionalInfo", visibility=["read"] + ) + """The error additional info.""" + + +class ErrorResponse(_Model): + """Error response. + + :ivar error: The error object. + :vartype error: ~azure.mgmt.containerinstance.models.ErrorDetail + """ + + error: Optional["_models.ErrorDetail"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The error object.""" + + @overload + def __init__( + self, + *, + error: Optional["_models.ErrorDetail"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Event(_Model): + """A container group or container instance event. + + :ivar count: The count of the event. + :vartype count: int + :ivar first_timestamp: The date-time of the earliest logged event. + :vartype first_timestamp: ~datetime.datetime + :ivar last_timestamp: The date-time of the latest logged event. + :vartype last_timestamp: ~datetime.datetime + :ivar name: The event name. + :vartype name: str + :ivar message: The event message. + :vartype message: str + :ivar type: The event type. + :vartype type: str + """ + + count: Optional[int] = rest_field(visibility=["read"]) + """The count of the event.""" + first_timestamp: Optional[datetime.datetime] = rest_field( + name="firstTimestamp", visibility=["read"], format="rfc3339" + ) + """The date-time of the earliest logged event.""" + last_timestamp: Optional[datetime.datetime] = rest_field( + name="lastTimestamp", visibility=["read"], format="rfc3339" + ) + """The date-time of the latest logged event.""" + name: Optional[str] = rest_field(visibility=["read"]) + """The event name.""" + message: Optional[str] = rest_field(visibility=["read"]) + """The event message.""" + type: Optional[str] = rest_field(visibility=["read"]) + """The event type.""" + + +class FileShare(_Model): + """File shares that can be mounted on container groups. + + :ivar name: + :vartype name: str + :ivar resource_group_name: + :vartype resource_group_name: str + :ivar storage_account_name: + :vartype storage_account_name: str + :ivar properties: + :vartype properties: ~azure.mgmt.containerinstance.models.FileShareProperties + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + resource_group_name: Optional[str] = rest_field( + name="resourceGroupName", visibility=["read", "create", "update", "delete", "query"] + ) + storage_account_name: Optional[str] = rest_field( + name="storageAccountName", visibility=["read", "create", "update", "delete", "query"] + ) + properties: Optional["_models.FileShareProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + resource_group_name: Optional[str] = None, + storage_account_name: Optional[str] = None, + properties: Optional["_models.FileShareProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FileShareProperties(_Model): + """FileShareProperties. + + :ivar share_access_type: Specifies how Container Groups can access the Azure file share i.e. + all CG will share same Azure file share or going to have exclusive file share. Known values + are: "Shared" and "Exclusive". + :vartype share_access_type: str or + ~azure.mgmt.containerinstance.models.AzureFileShareAccessType + :ivar share_access_tier: Access tier for specific share. GpV2 account can choose between + TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Learn + more at: + `https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP#shareaccesstier + `_. + Known values are: "Cool", "Hot", "Premium", and "TransactionOptimized". + :vartype share_access_tier: str or + ~azure.mgmt.containerinstance.models.AzureFileShareAccessTier + """ + + share_access_type: Optional[Union[str, "_models.AzureFileShareAccessType"]] = rest_field( + name="shareAccessType", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies how Container Groups can access the Azure file share i.e. all CG will share same + Azure file share or going to have exclusive file share. Known values are: \"Shared\" and + \"Exclusive\".""" + share_access_tier: Optional[Union[str, "_models.AzureFileShareAccessTier"]] = rest_field( + name="shareAccessTier", visibility=["read", "create", "update", "delete", "query"] + ) + """Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), + Hot, and Cool. FileStorage account can choose Premium. Learn more at: + `https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP#shareaccesstier + `_. + Known values are: \"Cool\", \"Hot\", \"Premium\", and \"TransactionOptimized\".""" + + @overload + def __init__( + self, + *, + share_access_type: Optional[Union[str, "_models.AzureFileShareAccessType"]] = None, + share_access_tier: Optional[Union[str, "_models.AzureFileShareAccessTier"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GitRepoVolume(_Model): + """Represents a volume that is populated with the contents of a git repository. + + :ivar directory: 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. + :vartype directory: str + :ivar repository: Repository URL. Required. + :vartype repository: str + :ivar revision: Commit hash for the specified revision. + :vartype revision: str + """ + + directory: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """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.""" + repository: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Repository URL. Required.""" + revision: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Commit hash for the specified revision.""" + + @overload + def __init__( + self, + *, + repository: str, + directory: Optional[str] = None, + revision: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GpuResource(_Model): + """The GPU resource. + + :ivar count: The count of the GPU resource. Required. + :vartype count: int + :ivar sku: The SKU of the GPU resource. Required. Known values are: "K80", "P100", and "V100". + :vartype sku: str or ~azure.mgmt.containerinstance.models.GpuSku + """ + + count: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The count of the GPU resource. Required.""" + sku: Union[str, "_models.GpuSku"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The SKU of the GPU resource. Required. Known values are: \"K80\", \"P100\", and \"V100\".""" + + @overload + def __init__( + self, + *, + count: int, + sku: Union[str, "_models.GpuSku"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpHeader(_Model): + """The HTTP header. + + :ivar name: The header name. + :vartype name: str + :ivar value: The header value. + :vartype value: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The header name.""" + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The header value.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + value: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IdentityAccessControl(_Model): + """The access control for an identity. + + :ivar access: The access level of the identity. Known values are: "All", "System", and "User". + :vartype access: str or ~azure.mgmt.containerinstance.models.IdentityAccessLevel + :ivar identity: An identity. + :vartype identity: str + """ + + access: Optional[Union[str, "_models.IdentityAccessLevel"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The access level of the identity. Known values are: \"All\", \"System\", and \"User\".""" + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """An identity.""" + + @overload + def __init__( + self, + *, + access: Optional[Union[str, "_models.IdentityAccessLevel"]] = None, + identity: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IdentityAcls(_Model): + """The access control levels of the identities. + + :ivar default_access: The default access level. Known values are: "All", "System", and "User". + :vartype default_access: str or ~azure.mgmt.containerinstance.models.IdentityAccessLevel + :ivar acls: The access control levels for each identity. + :vartype acls: list[~azure.mgmt.containerinstance.models.IdentityAccessControl] + """ + + default_access: Optional[Union[str, "_models.IdentityAccessLevel"]] = rest_field( + name="defaultAccess", visibility=["read", "create", "update", "delete", "query"] + ) + """The default access level. Known values are: \"All\", \"System\", and \"User\".""" + acls: Optional[list["_models.IdentityAccessControl"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The access control levels for each identity.""" + + @overload + def __init__( + self, + *, + default_access: Optional[Union[str, "_models.IdentityAccessLevel"]] = None, + acls: Optional[list["_models.IdentityAccessControl"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ImageRegistryCredential(_Model): + """Image registry credential. + + :ivar server: The Docker image registry server without a protocol such as "http" and "https". + Required. + :vartype server: str + :ivar username: The username for the private registry. + :vartype username: str + :ivar password: The password for the private registry. + :vartype password: str + :ivar password_reference: The reference for the private registry password. + :vartype password_reference: str + :ivar identity: The identity for the private registry. + :vartype identity: str + :ivar identity_url: The identity URL for the private registry. + :vartype identity_url: str + """ + + server: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Docker image registry server without a protocol such as \"http\" and \"https\". Required.""" + username: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The username for the private registry.""" + password: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password for the private registry.""" + password_reference: Optional[str] = rest_field( + name="passwordReference", visibility=["read", "create", "update", "delete", "query"] + ) + """The reference for the private registry password.""" + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The identity for the private registry.""" + identity_url: Optional[str] = rest_field( + name="identityUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """The identity URL for the private registry.""" + + @overload + def __init__( + self, + *, + server: str, + username: Optional[str] = None, + password: Optional[str] = None, + password_reference: Optional[str] = None, + identity: Optional[str] = None, + identity_url: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class InitContainerDefinition(_Model): + """The init container definition. + + :ivar name: The name for the init container. Required. + :vartype name: str + :ivar properties: The properties for the init container. Required. + :vartype properties: ~azure.mgmt.containerinstance.models.InitContainerPropertiesDefinition + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name for the init container. Required.""" + properties: "_models.InitContainerPropertiesDefinition" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The properties for the init container. Required.""" + + __flattened_items = [ + "image", + "command", + "environment_variables", + "instance_view", + "volume_mounts", + "security_context", + ] + + @overload + def __init__( + self, + *, + name: str, + properties: "_models.InitContainerPropertiesDefinition", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class InitContainerPropertiesDefinition(_Model): + """The init container definition properties. + + :ivar image: The image of the init container. + :vartype image: str + :ivar command: The command to execute within the init container in exec form. + :vartype command: list[str] + :ivar environment_variables: The environment variables to set in the init container. + :vartype environment_variables: list[~azure.mgmt.containerinstance.models.EnvironmentVariable] + :ivar instance_view: The instance view of the init container. Only valid in response. + :vartype instance_view: + ~azure.mgmt.containerinstance.models.InitContainerPropertiesDefinitionInstanceView + :ivar volume_mounts: The volume mounts available to the init container. + :vartype volume_mounts: list[~azure.mgmt.containerinstance.models.VolumeMount] + :ivar security_context: The container security properties. + :vartype security_context: ~azure.mgmt.containerinstance.models.SecurityContextDefinition + """ + + image: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The image of the init container.""" + command: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The command to execute within the init container in exec form.""" + environment_variables: Optional[list["_models.EnvironmentVariable"]] = rest_field( + name="environmentVariables", visibility=["read", "create", "update", "delete", "query"] + ) + """The environment variables to set in the init container.""" + instance_view: Optional["_models.InitContainerPropertiesDefinitionInstanceView"] = rest_field( + name="instanceView", visibility=["read"] + ) + """The instance view of the init container. Only valid in response.""" + volume_mounts: Optional[list["_models.VolumeMount"]] = rest_field( + name="volumeMounts", visibility=["read", "create", "update", "delete", "query"] + ) + """The volume mounts available to the init container.""" + security_context: Optional["_models.SecurityContextDefinition"] = rest_field( + name="securityContext", visibility=["read", "create", "update", "delete", "query"] + ) + """The container security properties.""" + + @overload + def __init__( + self, + *, + image: Optional[str] = None, + command: Optional[list[str]] = None, + environment_variables: Optional[list["_models.EnvironmentVariable"]] = None, + volume_mounts: Optional[list["_models.VolumeMount"]] = None, + security_context: Optional["_models.SecurityContextDefinition"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class InitContainerPropertiesDefinitionInstanceView(_Model): # pylint: disable=name-too-long + """The instance view of the init container. Only valid in response. + + :ivar restart_count: The number of times that the init container has been restarted. + :vartype restart_count: int + :ivar current_state: The current state of the init container. + :vartype current_state: ~azure.mgmt.containerinstance.models.ContainerState + :ivar previous_state: The previous state of the init container. + :vartype previous_state: ~azure.mgmt.containerinstance.models.ContainerState + :ivar events: The events of the init container. + :vartype events: list[~azure.mgmt.containerinstance.models.Event] + """ + + restart_count: Optional[int] = rest_field(name="restartCount", visibility=["read"]) + """The number of times that the init container has been restarted.""" + current_state: Optional["_models.ContainerState"] = rest_field(name="currentState", visibility=["read"]) + """The current state of the init container.""" + previous_state: Optional["_models.ContainerState"] = rest_field(name="previousState", visibility=["read"]) + """The previous state of the init container.""" + events: Optional[list["_models.Event"]] = rest_field(visibility=["read"]) + """The events of the init container.""" + + +class IpAddress(_Model): + """IP address for the container group. + + :ivar ports: The list of ports exposed on the container group. Required. + :vartype ports: list[~azure.mgmt.containerinstance.models.Port] + :ivar type: Specifies if the IP is exposed to the public internet or private VNET. Required. + Known values are: "Public" and "Private". + :vartype type: str or ~azure.mgmt.containerinstance.models.ContainerGroupIpAddressType + :ivar ip: The IP exposed to the public internet. + :vartype ip: str + :ivar dns_name_label: The Dns name label for the IP. + :vartype dns_name_label: str + :ivar auto_generated_domain_name_label_scope: 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. Known values are: + "Unsecure", "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "Noreuse". + :vartype auto_generated_domain_name_label_scope: str or + ~azure.mgmt.containerinstance.models.DnsNameLabelReusePolicy + :ivar fqdn: The FQDN for the IP. + :vartype fqdn: str + """ + + ports: list["_models.Port"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The list of ports exposed on the container group. Required.""" + type: Union[str, "_models.ContainerGroupIpAddressType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies if the IP is exposed to the public internet or private VNET. Required. Known values + are: \"Public\" and \"Private\".""" + ip: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The IP exposed to the public internet.""" + dns_name_label: Optional[str] = rest_field( + name="dnsNameLabel", visibility=["read", "create", "update", "delete", "query"] + ) + """The Dns name label for the IP.""" + auto_generated_domain_name_label_scope: Optional[Union[str, "_models.DnsNameLabelReusePolicy"]] = rest_field( + name="autoGeneratedDomainNameLabelScope", visibility=["read", "create", "update", "delete", "query"] + ) + """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. Known values are: \"Unsecure\", \"TenantReuse\", + \"SubscriptionReuse\", \"ResourceGroupReuse\", and \"Noreuse\".""" + fqdn: Optional[str] = rest_field(visibility=["read"]) + """The FQDN for the IP.""" + + @overload + def __init__( + self, + *, + ports: list["_models.Port"], + type: Union[str, "_models.ContainerGroupIpAddressType"], + ip: Optional[str] = None, + dns_name_label: Optional[str] = None, + auto_generated_domain_name_label_scope: Optional[Union[str, "_models.DnsNameLabelReusePolicy"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ListResultContainerGroup(_Model): + """A container group part of the list result. + + :ivar id: The resource id. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar zones: The zones for the container group. + :vartype zones: list[str] + :ivar identity: The identity of the container group, if configured. + :vartype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity + :ivar properties: The container group properties. Required. + :vartype properties: + ~azure.mgmt.containerinstance.models.ListResultContainerGroupPropertiesProperties + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """The resource id.""" + name: Optional[str] = rest_field(visibility=["read"]) + """The resource name.""" + type: Optional[str] = rest_field(visibility=["read"]) + """The resource type.""" + location: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource location.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource tags.""" + zones: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The zones for the container group.""" + identity: Optional["_models.ContainerGroupIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The identity of the container group, if configured.""" + properties: "_models.ListResultContainerGroupPropertiesProperties" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The container group properties. Required.""" + + __flattened_items = [ + "provisioning_state", + "secret_references", + "containers", + "image_registry_credentials", + "restart_policy", + "ip_address", + "os_type", + "volumes", + "diagnostics", + "subnet_ids", + "dns_config", + "sku", + "encryption_properties", + "init_containers", + "extensions", + "confidential_compute_properties", + "priority", + "identity_acls", + "container_group_profile", + "standby_pool_profile", + "is_created_from_standby_pool", + ] + + @overload + def __init__( + self, + *, + properties: "_models.ListResultContainerGroupPropertiesProperties", + location: Optional[str] = None, + tags: Optional[dict[str, str]] = None, + zones: Optional[list[str]] = None, + identity: Optional["_models.ContainerGroupIdentity"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class ListResultContainerGroupPropertiesProperties(_Model): # pylint: disable=name-too-long + """The container group properties. + + :ivar provisioning_state: The provisioning state of the container group. This only appears in + the response. Known values are: "NotSpecified", "Accepted", "Pending", "Updating", "Creating", + "Repairing", "Unhealthy", "Failed", "Canceled", "Succeeded", "Deleting", "NotAccessible", and + "PreProvisioned". + :vartype provisioning_state: str or + ~azure.mgmt.containerinstance.models.ContainerGroupProvisioningState + :ivar secret_references: The secret references that will be referenced within the container + group. + :vartype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] + :ivar containers: The containers within the container group. Required. + :vartype containers: list[~azure.mgmt.containerinstance.models.Container] + :ivar image_registry_credentials: The image registry credentials by which the container group + is created from. + :vartype image_registry_credentials: + list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] + :ivar restart_policy: Restart policy for all containers within the container group. + + * `Always` Always restart + * `OnFailure` Restart on failure + * `Never` Never restart. Known values are: "Always", "OnFailure", and "Never". + :vartype restart_policy: str or + ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy + :ivar ip_address: The IP address type of the container group. + :vartype ip_address: ~azure.mgmt.containerinstance.models.IpAddress + :ivar os_type: The operating system type required by the containers in the container group. + Required. Known values are: "Windows" and "Linux". + :vartype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes + :ivar volumes: The list of volumes that can be mounted by containers in this container group. + :vartype volumes: list[~azure.mgmt.containerinstance.models.Volume] + :ivar diagnostics: The diagnostic information for a container group. + :vartype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics + :ivar subnet_ids: The subnet resource IDs for a container group. + :vartype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] + :ivar dns_config: The DNS config information for a container group. + :vartype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration + :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". + :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku + :ivar encryption_properties: The encryption properties for a container group. + :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties + :ivar init_containers: The init containers for a container group. + :vartype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] + :ivar extensions: extensions used by virtual kubelet. + :vartype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] + :ivar confidential_compute_properties: The properties for confidential container group. + :vartype confidential_compute_properties: + ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties + :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". + :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority + :ivar identity_acls: The access control levels of the identities. + :vartype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls + :ivar container_group_profile: The reference container group profile properties. + :vartype container_group_profile: + ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition + :ivar standby_pool_profile: The reference standby pool profile properties. + :vartype standby_pool_profile: + ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition + :ivar is_created_from_standby_pool: The flag to determine whether the container group is + created from standby pool. + :vartype is_created_from_standby_pool: bool + """ + + provisioning_state: Optional[Union[str, "_models.ContainerGroupProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The provisioning state of the container group. This only appears in the response. Known values + are: \"NotSpecified\", \"Accepted\", \"Pending\", \"Updating\", \"Creating\", \"Repairing\", + \"Unhealthy\", \"Failed\", \"Canceled\", \"Succeeded\", \"Deleting\", \"NotAccessible\", and + \"PreProvisioned\".""" + secret_references: Optional[list["_models.SecretReference"]] = rest_field( + name="secretReferences", visibility=["read", "create", "update", "delete", "query"] + ) + """The secret references that will be referenced within the container group.""" + containers: list["_models.Container"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The containers within the container group. Required.""" + image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = rest_field( + name="imageRegistryCredentials", visibility=["read", "create", "update", "delete", "query"] + ) + """The image registry credentials by which the container group is created from.""" + restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = rest_field( + name="restartPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """Restart policy for all containers within the container group. + + * `Always` Always restart + * `OnFailure` Restart on failure + * `Never` Never restart. Known values are: \"Always\", \"OnFailure\", and \"Never\".""" + ip_address: Optional["_models.IpAddress"] = rest_field( + name="ipAddress", visibility=["read", "create", "update", "delete", "query"] + ) + """The IP address type of the container group.""" + os_type: Union[str, "_models.OperatingSystemTypes"] = rest_field( + name="osType", visibility=["read", "create", "update", "delete", "query"] + ) + """The operating system type required by the containers in the container group. Required. Known + values are: \"Windows\" and \"Linux\".""" + volumes: Optional[list["_models.Volume"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The list of volumes that can be mounted by containers in this container group.""" + diagnostics: Optional["_models.ContainerGroupDiagnostics"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The diagnostic information for a container group.""" + subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = rest_field( + name="subnetIds", visibility=["read", "create", "update", "delete", "query"] + ) + """The subnet resource IDs for a container group.""" + dns_config: Optional["_models.DnsConfiguration"] = rest_field( + name="dnsConfig", visibility=["read", "create", "update", "delete", "query"] + ) + """The DNS config information for a container group.""" + sku: Optional[Union[str, "_models.ContainerGroupSku"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The SKU for a container group. Known values are: \"NotSpecified\", \"Standard\", \"Dedicated\", + and \"Confidential\".""" + encryption_properties: Optional["_models.EncryptionProperties"] = rest_field( + name="encryptionProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """The encryption properties for a container group.""" + init_containers: Optional[list["_models.InitContainerDefinition"]] = rest_field( + name="initContainers", visibility=["read", "create", "update", "delete", "query"] + ) + """The init containers for a container group.""" + extensions: Optional[list["_models.DeploymentExtensionSpec"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """extensions used by virtual kubelet.""" + confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = rest_field( + name="confidentialComputeProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """The properties for confidential container group.""" + priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The priority of the container group. Known values are: \"Regular\" and \"Spot\".""" + identity_acls: Optional["_models.IdentityAcls"] = rest_field( + name="identityAcls", visibility=["read", "create", "update", "delete", "query"] + ) + """The access control levels of the identities.""" + container_group_profile: Optional["_models.ContainerGroupProfileReferenceDefinition"] = rest_field( + name="containerGroupProfile", visibility=["read", "create", "update", "delete", "query"] + ) + """The reference container group profile properties.""" + standby_pool_profile: Optional["_models.StandbyPoolProfileDefinition"] = rest_field( + name="standbyPoolProfile", visibility=["read", "create", "update", "delete", "query"] + ) + """The reference standby pool profile properties.""" + is_created_from_standby_pool: Optional[bool] = rest_field(name="isCreatedFromStandbyPool", visibility=["read"]) + """The flag to determine whether the container group is created from standby pool.""" + + @overload + def __init__( + self, + *, + containers: list["_models.Container"], + os_type: Union[str, "_models.OperatingSystemTypes"], + secret_references: Optional[list["_models.SecretReference"]] = None, + image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = None, + restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, + ip_address: Optional["_models.IpAddress"] = None, + volumes: Optional[list["_models.Volume"]] = None, + diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, + subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = None, + dns_config: Optional["_models.DnsConfiguration"] = None, + sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, + encryption_properties: Optional["_models.EncryptionProperties"] = None, + init_containers: Optional[list["_models.InitContainerDefinition"]] = None, + extensions: Optional[list["_models.DeploymentExtensionSpec"]] = None, + confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, + priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, + identity_acls: Optional["_models.IdentityAcls"] = None, + container_group_profile: Optional["_models.ContainerGroupProfileReferenceDefinition"] = None, + standby_pool_profile: Optional["_models.StandbyPoolProfileDefinition"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LoadBalancer(_Model): + """LoadBalancer the CG profile will use to interact with CGs in a backend pool. + + :ivar backend_address_pools: List of Load Balancer Backend Address Pools. + :vartype backend_address_pools: + list[~azure.mgmt.containerinstance.models.LoadBalancerBackendAddressPool] + """ + + backend_address_pools: Optional[list["_models.LoadBalancerBackendAddressPool"]] = rest_field( + name="backendAddressPools", visibility=["read", "create", "update", "delete", "query"] + ) + """List of Load Balancer Backend Address Pools.""" + + @overload + def __init__( + self, + *, + backend_address_pools: Optional[list["_models.LoadBalancerBackendAddressPool"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LoadBalancerBackendAddressPool(_Model): + """NGroups load balancer backend address pool. + + :ivar resource: The Load Balancer backend address pool ARM resource Id. + :vartype resource: str + """ + + resource: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Load Balancer backend address pool ARM resource Id.""" + + @overload + def __init__( + self, + *, + resource: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LogAnalytics(_Model): + """Container group log analytics information. + + :ivar workspace_id: The workspace id for log analytics. Required. + :vartype workspace_id: str + :ivar workspace_key: The workspace key for log analytics. Required. + :vartype workspace_key: str + :ivar log_type: The log type to be used. Known values are: "ContainerInsights" and + "ContainerInstanceLogs". + :vartype log_type: str or ~azure.mgmt.containerinstance.models.LogAnalyticsLogType + :ivar metadata: Metadata for log analytics. + :vartype metadata: dict[str, str] + :ivar workspace_resource_id: The workspace resource id for log analytics. + :vartype workspace_resource_id: str + """ + + workspace_id: str = rest_field(name="workspaceId", visibility=["read", "create", "update", "delete", "query"]) + """The workspace id for log analytics. Required.""" + workspace_key: str = rest_field(name="workspaceKey", visibility=["read", "create", "update", "delete", "query"]) + """The workspace key for log analytics. Required.""" + log_type: Optional[Union[str, "_models.LogAnalyticsLogType"]] = rest_field( + name="logType", visibility=["read", "create", "update", "delete", "query"] + ) + """The log type to be used. Known values are: \"ContainerInsights\" and \"ContainerInstanceLogs\".""" + metadata: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Metadata for log analytics.""" + workspace_resource_id: Optional[str] = rest_field( + name="workspaceResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """The workspace resource id for log analytics.""" + + @overload + def __init__( + self, + *, + workspace_id: str, + workspace_key: str, + log_type: Optional[Union[str, "_models.LogAnalyticsLogType"]] = None, + metadata: Optional[dict[str, str]] = None, + workspace_resource_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Logs(_Model): + """The logs. + + :ivar content: The content of the log. + :vartype content: str + """ + + content: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The content of the log.""" + + @overload + def __init__( + self, + *, + content: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NetworkProfile(_Model): + """A network profile for network settings of a ContainerGroupProfile. Used to manage load balancer + and application gateway backend pools, specifically updating the IP addresses of CGs within the + backend pool. + + :ivar load_balancer: LoadBalancer the CG profile will use to interact with CGs in a backend + pool. + :vartype load_balancer: ~azure.mgmt.containerinstance.models.LoadBalancer + :ivar application_gateway: Application Gateway the CG profile will use to interact with CGs in + a backend pool. + :vartype application_gateway: ~azure.mgmt.containerinstance.models.ApplicationGateway + """ + + load_balancer: Optional["_models.LoadBalancer"] = rest_field( + name="loadBalancer", visibility=["read", "create", "update", "delete", "query"] + ) + """LoadBalancer the CG profile will use to interact with CGs in a backend pool.""" + application_gateway: Optional["_models.ApplicationGateway"] = rest_field( + name="applicationGateway", visibility=["read", "create", "update", "delete", "query"] + ) + """Application Gateway the CG profile will use to interact with CGs in a backend pool.""" + + @overload + def __init__( + self, + *, + load_balancer: Optional["_models.LoadBalancer"] = None, + application_gateway: Optional["_models.ApplicationGateway"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NGroup(ArmResource): + """Describes the NGroups resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.containerinstance.models.SystemData + :ivar properties: Describes the properties of the NGroups resource. + :vartype properties: ~azure.mgmt.containerinstance.models.NGroupProperties + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. + :vartype location: str + :ivar zones: The availability zones. + :vartype zones: list[str] + :ivar identity: The identity of the NGroup, if configured. + :vartype identity: ~azure.mgmt.containerinstance.models.NGroupIdentity + """ + + properties: Optional["_models.NGroupProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Describes the properties of the NGroups resource.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + location: Optional[str] = rest_field(visibility=["read", "create"]) + """The geo-location where the resource lives.""" + zones: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The availability zones.""" + identity: Optional["_models.NGroupIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The identity of the NGroup, if configured.""" + + __flattened_items = [ + "elastic_profile", + "placement_profile", + "container_group_profiles", + "provisioning_state", + "update_profile", + ] + + @overload + def __init__( + self, + *, + properties: Optional["_models.NGroupProperties"] = None, + tags: Optional[dict[str, str]] = None, + location: Optional[str] = None, + zones: Optional[list[str]] = None, + identity: Optional["_models.NGroupIdentity"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class NGroupCGPropertyContainer(_Model): + """Container properties that can be provided with NGroups object. + + :ivar name: container name. + :vartype name: str + :ivar properties: container properties. + :vartype properties: ~azure.mgmt.containerinstance.models.NGroupCGPropertyContainerProperties + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """container name.""" + properties: Optional["_models.NGroupCGPropertyContainerProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """container properties.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + properties: Optional["_models.NGroupCGPropertyContainerProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NGroupCGPropertyContainerProperties(_Model): + """container properties. + + :ivar volume_mounts: + :vartype volume_mounts: list[~azure.mgmt.containerinstance.models.VolumeMount] + """ + + volume_mounts: Optional[list["_models.VolumeMount"]] = rest_field( + name="volumeMounts", visibility=["read", "create", "update", "delete", "query"] + ) + + @overload + def __init__( + self, + *, + volume_mounts: Optional[list["_models.VolumeMount"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NGroupCGPropertyVolume(_Model): + """Contains information about the volumes that can be mounted by Containers in the Container + Groups. + + :ivar name: The name of the volume. Required. + :vartype name: str + :ivar azure_file: The Azure File volume. + :vartype azure_file: ~azure.mgmt.containerinstance.models.AzureFileVolume + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the volume. Required.""" + azure_file: Optional["_models.AzureFileVolume"] = rest_field( + name="azureFile", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure File volume.""" + + @overload + def __init__( + self, + *, + name: str, + azure_file: Optional["_models.AzureFileVolume"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NGroupContainerGroupProperties(_Model): + """Container Group properties which can be set while creating or updating the NGroups. + + :ivar subnet_ids: Contains information about Virtual Network Subnet ARM Resource. + :vartype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] + :ivar volumes: Contains information about the volumes that can be mounted by Containers in the + Container Groups. + :vartype volumes: list[~azure.mgmt.containerinstance.models.NGroupCGPropertyVolume] + :ivar containers: Contains information about Container which can be set while creating or + updating the NGroups. + :vartype containers: list[~azure.mgmt.containerinstance.models.NGroupCGPropertyContainer] + """ + + subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = rest_field( + name="subnetIds", visibility=["read", "create", "update", "delete", "query"] + ) + """Contains information about Virtual Network Subnet ARM Resource.""" + volumes: Optional[list["_models.NGroupCGPropertyVolume"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Contains information about the volumes that can be mounted by Containers in the Container + Groups.""" + containers: Optional[list["_models.NGroupCGPropertyContainer"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Contains information about Container which can be set while creating or updating the NGroups.""" + + @overload + def __init__( + self, + *, + subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = None, + volumes: Optional[list["_models.NGroupCGPropertyVolume"]] = None, + containers: Optional[list["_models.NGroupCGPropertyContainer"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NGroupIdentity(_Model): + """Identity for the NGroup. + + :ivar principal_id: The principal id of the NGroup identity. This property will only be + provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the NGroup. This property will only be provided + for a system assigned identity. + :vartype tenant_id: str + :ivar type: The type of identity used for the NGroup. The type 'SystemAssigned, UserAssigned' + includes both an implicitly created identity and a set of user assigned identities. The type + 'None' will remove any identities from the NGroup. Known values are: "SystemAssigned", + "UserAssigned", "SystemAssigned, UserAssigned", and "None". + :vartype type: str or ~azure.mgmt.containerinstance.models.ResourceIdentityType + :ivar user_assigned_identities: The list of user identities associated with the NGroup. + :vartype user_assigned_identities: dict[str, + ~azure.mgmt.containerinstance.models.UserAssignedIdentities] + """ + + principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) + """The principal id of the NGroup identity. This property will only be provided for a system + assigned identity.""" + tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read"]) + """The tenant id associated with the NGroup. This property will only be provided for a system + assigned identity.""" + type: Optional[Union[str, "_models.ResourceIdentityType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The type of identity used for the NGroup. The type 'SystemAssigned, UserAssigned' includes both + an implicitly created identity and a set of user assigned identities. The type 'None' will + remove any identities from the NGroup. Known values are: \"SystemAssigned\", \"UserAssigned\", + \"SystemAssigned, UserAssigned\", and \"None\".""" + user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentities"]] = rest_field( + name="userAssignedIdentities", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of user identities associated with the NGroup.""" + + @overload + def __init__( + self, + *, + type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, + user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentities"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NGroupPatch(_Model): + """Describes the NGroups resource. + + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.containerinstance.models.SystemData + :ivar properties: Describes the properties of the NGroups resource. + :vartype properties: ~azure.mgmt.containerinstance.models.NGroupProperties + :ivar identity: The identity of the NGroup, if configured. + :vartype identity: ~azure.mgmt.containerinstance.models.NGroupIdentity + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar zones: The zones for the NGroup. + :vartype zones: list[str] + """ + + system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"]) + """Metadata pertaining to creation and last modification of the resource.""" + properties: Optional["_models.NGroupProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Describes the properties of the NGroups resource.""" + identity: Optional["_models.NGroupIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The identity of the NGroup, if configured.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource tags.""" + zones: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The zones for the NGroup.""" + + __flattened_items = [ + "elastic_profile", + "placement_profile", + "container_group_profiles", + "provisioning_state", + "update_profile", + ] + + @overload + def __init__( + self, + *, + properties: Optional["_models.NGroupProperties"] = None, + identity: Optional["_models.NGroupIdentity"] = None, + tags: Optional[dict[str, str]] = None, + zones: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class NGroupProperties(_Model): + """Describes the properties of the NGroups resource. + + :ivar elastic_profile: The elastic profile. + :vartype elastic_profile: ~azure.mgmt.containerinstance.models.ElasticProfile + :ivar placement_profile: Provides options w.r.t allocation and management w.r.t certain + placement policies. These utilize capabilities provided by the underlying Azure infrastructure. + They are typically used for high availability scenarios. E.g., distributing CGs across fault + domains. + :vartype placement_profile: ~azure.mgmt.containerinstance.models.PlacementProfile + :ivar container_group_profiles: The Container Group Profiles that could be used in the NGroups + resource. + :vartype container_group_profiles: + list[~azure.mgmt.containerinstance.models.ContainerGroupProfileStub] + :ivar provisioning_state: The provisioning state, which only appears in the response. Known + values are: "Creating", "Updating", "Failed", "Succeeded", "Canceled", "Deleting", and + "Migrating". + :vartype provisioning_state: str or + ~azure.mgmt.containerinstance.models.NGroupProvisioningState + :ivar update_profile: Used by the customer to specify the way to update the Container Groups in + NGroup. + :vartype update_profile: ~azure.mgmt.containerinstance.models.UpdateProfile + """ + + elastic_profile: Optional["_models.ElasticProfile"] = rest_field( + name="elasticProfile", visibility=["read", "create", "update", "delete", "query"] + ) + """The elastic profile.""" + placement_profile: Optional["_models.PlacementProfile"] = rest_field( + name="placementProfile", visibility=["read", "create", "update", "delete", "query"] + ) + """Provides options w.r.t allocation and management w.r.t certain placement policies. These + utilize capabilities provided by the underlying Azure infrastructure. They are typically used + for high availability scenarios. E.g., distributing CGs across fault domains.""" + container_group_profiles: Optional[list["_models.ContainerGroupProfileStub"]] = rest_field( + name="containerGroupProfiles", visibility=["read", "create", "update", "delete", "query"] + ) + """The Container Group Profiles that could be used in the NGroups resource.""" + provisioning_state: Optional[Union[str, "_models.NGroupProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The provisioning state, which only appears in the response. Known values are: \"Creating\", + \"Updating\", \"Failed\", \"Succeeded\", \"Canceled\", \"Deleting\", and \"Migrating\".""" + update_profile: Optional["_models.UpdateProfile"] = rest_field( + name="updateProfile", visibility=["read", "create", "update", "delete", "query"] + ) + """Used by the customer to specify the way to update the Container Groups in NGroup.""" + + @overload + def __init__( + self, + *, + elastic_profile: Optional["_models.ElasticProfile"] = None, + placement_profile: Optional["_models.PlacementProfile"] = None, + container_group_profiles: Optional[list["_models.ContainerGroupProfileStub"]] = None, + update_profile: Optional["_models.UpdateProfile"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Operation(_Model): + """An operation for Azure Container Instance service. + + :ivar name: The name of the operation. Required. + :vartype name: str + :ivar display: The display information of the operation. Required. + :vartype display: ~azure.mgmt.containerinstance.models.OperationDisplay + :ivar properties: The additional properties. + :vartype properties: any + :ivar origin: The intended executor of the operation. Known values are: "User" and "System". + :vartype origin: str or ~azure.mgmt.containerinstance.models.ContainerInstanceOperationsOrigin + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the operation. Required.""" + display: "_models.OperationDisplay" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The display information of the operation. Required.""" + properties: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The additional properties.""" + origin: Optional[Union[str, "_models.ContainerInstanceOperationsOrigin"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The intended executor of the operation. Known values are: \"User\" and \"System\".""" + + __flattened_items = [""] + + @overload + def __init__( + self, + *, + name: str, + display: "_models.OperationDisplay", + properties: Optional[Any] = None, + origin: Optional[Union[str, "_models.ContainerInstanceOperationsOrigin"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class OperationDisplay(_Model): + """The display information of the operation. + + :ivar provider: The name of the provider of the operation. + :vartype provider: str + :ivar resource: The name of the resource type of the operation. + :vartype resource: str + :ivar operation: The friendly name of the operation. + :vartype operation: str + :ivar description: The description of the operation. + :vartype description: str + """ + + provider: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the provider of the operation.""" + resource: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the resource type of the operation.""" + operation: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The friendly name of the operation.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The description of the operation.""" + + @overload + def __init__( + self, + *, + provider: Optional[str] = None, + resource: Optional[str] = None, + operation: Optional[str] = None, + description: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PlacementProfile(_Model): + """Provides options w.r.t allocation and management w.r.t certain placement policies. These + utilize capabilities provided by the underlying Azure infrastructure. They are typically used + for high availability scenarios. E.g., distributing CGs across fault domains. + + :ivar fault_domain_count: The number of fault domains to be used to spread CGs in the NGroups + resource. This can only be specified during NGroup creation and is immutable after that. + :vartype fault_domain_count: int + """ + + fault_domain_count: Optional[int] = rest_field( + name="faultDomainCount", visibility=["read", "create", "update", "delete", "query"] + ) + """The number of fault domains to be used to spread CGs in the NGroups resource. This can only be + specified during NGroup creation and is immutable after that.""" + + @overload + def __init__( + self, + *, + fault_domain_count: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Port(_Model): + """The port exposed on the container group. + + :ivar protocol: The protocol associated with the port. Known values are: "TCP" and "UDP". + :vartype protocol: str or ~azure.mgmt.containerinstance.models.ContainerGroupNetworkProtocol + :ivar port: The port number. Required. + :vartype port: int + """ + + protocol: Optional[Union[str, "_models.ContainerGroupNetworkProtocol"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The protocol associated with the port. Known values are: \"TCP\" and \"UDP\".""" + port: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The port number. Required.""" + + @overload + def __init__( + self, + *, + port: int, + protocol: Optional[Union[str, "_models.ContainerGroupNetworkProtocol"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Resource(_Model): + """The Resource model definition. + + :ivar id: The resource id. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar zones: The zones for the container group. + :vartype zones: list[str] + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """The resource id.""" + name: Optional[str] = rest_field(visibility=["read"]) + """The resource name.""" + type: Optional[str] = rest_field(visibility=["read"]) + """The resource type.""" + location: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource location.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource tags.""" + zones: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The zones for the container group.""" + + @overload + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[dict[str, str]] = None, + zones: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ResourceLimits(_Model): + """The resource limits. + + :ivar memory_in_gb: The memory limit in GB of this container instance. + :vartype memory_in_gb: float + :ivar cpu: The CPU limit of this container instance. + :vartype cpu: float + :ivar gpu: The GPU limit of this container instance. + :vartype gpu: ~azure.mgmt.containerinstance.models.GpuResource + """ + + memory_in_gb: Optional[float] = rest_field( + name="memoryInGB", visibility=["read", "create", "update", "delete", "query"] + ) + """The memory limit in GB of this container instance.""" + cpu: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The CPU limit of this container instance.""" + gpu: Optional["_models.GpuResource"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The GPU limit of this container instance.""" + + @overload + def __init__( + self, + *, + memory_in_gb: Optional[float] = None, + cpu: Optional[float] = None, + gpu: Optional["_models.GpuResource"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ResourceRequests(_Model): + """The resource requests. + + :ivar memory_in_gb: The memory request in GB of this container instance. Required. + :vartype memory_in_gb: float + :ivar cpu: The CPU request of this container instance. Required. + :vartype cpu: float + :ivar gpu: The GPU request of this container instance. + :vartype gpu: ~azure.mgmt.containerinstance.models.GpuResource + """ + + memory_in_gb: float = rest_field(name="memoryInGB", visibility=["read", "create", "update", "delete", "query"]) + """The memory request in GB of this container instance. Required.""" + cpu: float = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The CPU request of this container instance. Required.""" + gpu: Optional["_models.GpuResource"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The GPU request of this container instance.""" + + @overload + def __init__( + self, + *, + memory_in_gb: float, + cpu: float, + gpu: Optional["_models.GpuResource"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ResourceRequirements(_Model): + """The resource requirements. + + :ivar requests: The resource requests of this container instance. Required. + :vartype requests: ~azure.mgmt.containerinstance.models.ResourceRequests + :ivar limits: The resource limits of this container instance. + :vartype limits: ~azure.mgmt.containerinstance.models.ResourceLimits + """ + + requests: "_models.ResourceRequests" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource requests of this container instance. Required.""" + limits: Optional["_models.ResourceLimits"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource limits of this container instance.""" + + @overload + def __init__( + self, + *, + requests: "_models.ResourceRequests", + limits: Optional["_models.ResourceLimits"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SecretReference(_Model): + """A secret reference. + + :ivar name: The identifier of the secret reference. Required. + :vartype name: str + :ivar identity: The ARM resource id of the managed identity that has access to the secret in + the key vault. Required. + :vartype identity: str + :ivar secret_reference_uri: The URI to the secret in key vault. Required. + :vartype secret_reference_uri: str + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The identifier of the secret reference. Required.""" + identity: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The ARM resource id of the managed identity that has access to the secret in the key vault. + Required.""" + secret_reference_uri: str = rest_field( + name="secretReferenceUri", visibility=["read", "create", "update", "delete", "query"] + ) + """The URI to the secret in key vault. Required.""" + + @overload + def __init__( + self, + *, + name: str, + identity: str, + secret_reference_uri: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SecurityContextCapabilitiesDefinition(_Model): + """The capabilities to add or drop from a container. + + :ivar add: The capabilities to add to the container. + :vartype add: list[str] + :ivar drop: The capabilities to drop from the container. + :vartype drop: list[str] + """ + + add: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The capabilities to add to the container.""" + drop: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The capabilities to drop from the container.""" + + @overload + def __init__( + self, + *, + add: Optional[list[str]] = None, + drop: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SecurityContextDefinition(_Model): + """The security context for the container. + + :ivar privileged: The flag to determine if the container permissions is elevated to Privileged. + :vartype privileged: bool + :ivar allow_privilege_escalation: A boolean value indicating whether the init process can + elevate its privileges. + :vartype allow_privilege_escalation: bool + :ivar capabilities: The capabilities to add or drop from a container. + :vartype capabilities: + ~azure.mgmt.containerinstance.models.SecurityContextCapabilitiesDefinition + :ivar run_as_group: Sets the User GID for the container. + :vartype run_as_group: int + :ivar run_as_user: Sets the User UID for the container. + :vartype run_as_user: int + :ivar seccomp_profile: a base64 encoded string containing the contents of the JSON in the + seccomp profile. + :vartype seccomp_profile: str + """ + + privileged: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The flag to determine if the container permissions is elevated to Privileged.""" + allow_privilege_escalation: Optional[bool] = rest_field( + name="allowPrivilegeEscalation", visibility=["read", "create", "update", "delete", "query"] + ) + """A boolean value indicating whether the init process can elevate its privileges.""" + capabilities: Optional["_models.SecurityContextCapabilitiesDefinition"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The capabilities to add or drop from a container.""" + run_as_group: Optional[int] = rest_field( + name="runAsGroup", visibility=["read", "create", "update", "delete", "query"] + ) + """Sets the User GID for the container.""" + run_as_user: Optional[int] = rest_field( + name="runAsUser", visibility=["read", "create", "update", "delete", "query"] + ) + """Sets the User UID for the container.""" + seccomp_profile: Optional[str] = rest_field( + name="seccompProfile", visibility=["read", "create", "update", "delete", "query"] + ) + """a base64 encoded string containing the contents of the JSON in the seccomp profile.""" + + @overload + def __init__( + self, + *, + privileged: Optional[bool] = None, + allow_privilege_escalation: Optional[bool] = None, + capabilities: Optional["_models.SecurityContextCapabilitiesDefinition"] = None, + run_as_group: Optional[int] = None, + run_as_user: Optional[int] = None, + seccomp_profile: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class StandbyPoolProfileDefinition(_Model): + """The standby pool profile reference. + + :ivar 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}'. + :vartype id: str + :ivar fail_container_group_create_on_reuse_failure: The flag to determine whether ACI should + fail the create request if the container group can not be obtained from standby pool. + :vartype fail_container_group_create_on_reuse_failure: bool + """ + + id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """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}'.""" + fail_container_group_create_on_reuse_failure: Optional[bool] = rest_field( + name="failContainerGroupCreateOnReuseFailure", visibility=["read", "create", "update", "delete", "query"] + ) + """The flag to determine whether ACI should fail the create request if the container group can not + be obtained from standby pool.""" + + @overload + def __init__( + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + fail_container_group_create_on_reuse_failure: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class StorageProfile(_Model): + """Storage profile for storage related settings of a container group profile. + + :ivar file_shares: + :vartype file_shares: list[~azure.mgmt.containerinstance.models.FileShare] + """ + + file_shares: Optional[list["_models.FileShare"]] = rest_field( + name="fileShares", visibility=["read", "create", "update", "delete", "query"] + ) + + @overload + def __init__( + self, + *, + file_shares: Optional[list["_models.FileShare"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SystemData(_Model): + """Metadata pertaining to creation and last modification of the resource. + + :ivar created_by: The identity that created the resource. + :vartype created_by: str + :ivar created_by_type: The type of identity that created the resource. Known values are: + "User", "Application", "ManagedIdentity", and "Key". + :vartype created_by_type: str or ~azure.mgmt.containerinstance.models.CreatedByType + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: ~datetime.datetime + :ivar last_modified_by: The identity that last modified the resource. + :vartype last_modified_by: str + :ivar last_modified_by_type: The type of identity that last modified the resource. Known values + are: "User", "Application", "ManagedIdentity", and "Key". + :vartype last_modified_by_type: str or ~azure.mgmt.containerinstance.models.CreatedByType + :ivar last_modified_at: The timestamp of resource last modification (UTC). + :vartype last_modified_at: ~datetime.datetime + """ + + created_by: Optional[str] = rest_field(name="createdBy", visibility=["read", "create", "update", "delete", "query"]) + """The identity that created the resource.""" + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( + name="createdByType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of identity that created the resource. Known values are: \"User\", \"Application\", + \"ManagedIdentity\", and \"Key\".""" + created_at: Optional[datetime.datetime] = rest_field( + name="createdAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The timestamp of resource creation (UTC).""" + last_modified_by: Optional[str] = rest_field( + name="lastModifiedBy", visibility=["read", "create", "update", "delete", "query"] + ) + """The identity that last modified the resource.""" + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( + name="lastModifiedByType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of identity that last modified the resource. Known values are: \"User\", + \"Application\", \"ManagedIdentity\", and \"Key\".""" + last_modified_at: Optional[datetime.datetime] = rest_field( + name="lastModifiedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The timestamp of resource last modification (UTC).""" + + @overload + def __init__( + self, + *, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class UpdateProfile(_Model): + """Used by the customer to specify the way to update the Container Groups in NGroup. + + :ivar update_mode: Known values are: "Manual" and "Rolling". + :vartype update_mode: str or ~azure.mgmt.containerinstance.models.NGroupUpdateMode + :ivar rolling_update_profile: This profile allows the customers to customize the rolling + update. + :vartype rolling_update_profile: + ~azure.mgmt.containerinstance.models.UpdateProfileRollingUpdateProfile + """ + + update_mode: Optional[Union[str, "_models.NGroupUpdateMode"]] = rest_field( + name="updateMode", visibility=["read", "create", "update", "delete", "query"] + ) + """Known values are: \"Manual\" and \"Rolling\".""" + rolling_update_profile: Optional["_models.UpdateProfileRollingUpdateProfile"] = rest_field( + name="rollingUpdateProfile", visibility=["read", "create", "update", "delete", "query"] + ) + """This profile allows the customers to customize the rolling update.""" + + @overload + def __init__( + self, + *, + update_mode: Optional[Union[str, "_models.NGroupUpdateMode"]] = None, + rolling_update_profile: Optional["_models.UpdateProfileRollingUpdateProfile"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class UpdateProfileRollingUpdateProfile(_Model): + """This profile allows the customers to customize the rolling update. + + :ivar max_batch_percent: Maximum percentage of total Container Groups which can be updated + simultaneously by rolling update in one batch. + :vartype max_batch_percent: int + :ivar max_unhealthy_percent: Maximum percentage of the updated Container Groups which can be in + unhealthy state after each batch is updated. + :vartype max_unhealthy_percent: int + :ivar pause_time_between_batches: The wait time between batches after completing the one batch + of the rolling update and starting the next batch. The time duration should be specified in ISO + 8601 format for duration. + :vartype pause_time_between_batches: str + :ivar in_place_update: Default is false. If set to true, the CGs will be updated in-place + instead of creating new CG and deleting old ones. + :vartype in_place_update: bool + """ + + max_batch_percent: Optional[int] = rest_field( + name="maxBatchPercent", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum percentage of total Container Groups which can be updated simultaneously by rolling + update in one batch.""" + max_unhealthy_percent: Optional[int] = rest_field( + name="maxUnhealthyPercent", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum percentage of the updated Container Groups which can be in unhealthy state after each + batch is updated.""" + pause_time_between_batches: Optional[str] = rest_field( + name="pauseTimeBetweenBatches", visibility=["read", "create", "update", "delete", "query"] + ) + """The wait time between batches after completing the one batch of the rolling update and starting + the next batch. The time duration should be specified in ISO 8601 format for duration.""" + in_place_update: Optional[bool] = rest_field( + name="inPlaceUpdate", visibility=["read", "create", "update", "delete", "query"] + ) + """Default is false. If set to true, the CGs will be updated in-place instead of creating new CG + and deleting old ones.""" + + @overload + def __init__( + self, + *, + max_batch_percent: Optional[int] = None, + max_unhealthy_percent: Optional[int] = None, + pause_time_between_batches: Optional[str] = None, + in_place_update: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Usage(_Model): + """A single usage result. + + :ivar id: Id of the usage result. + :vartype id: str + :ivar unit: Unit of the usage result. + :vartype unit: str + :ivar current_value: The current usage of the resource. + :vartype current_value: int + :ivar limit: The maximum permitted usage of the resource. + :vartype limit: int + :ivar name: The name object of the resource. + :vartype name: ~azure.mgmt.containerinstance.models.UsageName + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Id of the usage result.""" + unit: Optional[str] = rest_field(visibility=["read"]) + """Unit of the usage result.""" + current_value: Optional[int] = rest_field(name="currentValue", visibility=["read"]) + """The current usage of the resource.""" + limit: Optional[int] = rest_field(visibility=["read"]) + """The maximum permitted usage of the resource.""" + name: Optional["_models.UsageName"] = rest_field(visibility=["read"]) + """The name object of the resource.""" + + +class UsageName(_Model): + """The name object of the resource. + + :ivar value: The name of the resource. + :vartype value: str + :ivar localized_value: The localized name of the resource. + :vartype localized_value: str + """ + + value: Optional[str] = rest_field(visibility=["read"]) + """The name of the resource.""" + localized_value: Optional[str] = rest_field(name="localizedValue", visibility=["read"]) + """The localized name of the resource.""" + + +class UserAssignedIdentities(_Model): + """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}'. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) + """The principal id of user assigned identity.""" + client_id: Optional[str] = rest_field(name="clientId", visibility=["read"]) + """The client id of user assigned identity.""" + + +class Volume(_Model): + """The properties of the volume. + + :ivar name: The name of the volume. Required. + :vartype name: str + :ivar azure_file: The Azure File volume. + :vartype azure_file: ~azure.mgmt.containerinstance.models.AzureFileVolume + :ivar empty_dir: The empty directory volume. + :vartype empty_dir: any + :ivar secret: The secret volume. + :vartype secret: dict[str, str] + :ivar secret_reference: The secret reference volume. + :vartype secret_reference: dict[str, str] + :ivar git_repo: The git repo volume. + :vartype git_repo: ~azure.mgmt.containerinstance.models.GitRepoVolume + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the volume. Required.""" + azure_file: Optional["_models.AzureFileVolume"] = rest_field( + name="azureFile", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure File volume.""" + empty_dir: Optional[Any] = rest_field(name="emptyDir", visibility=["read", "create", "update", "delete", "query"]) + """The empty directory volume.""" + secret: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The secret volume.""" + secret_reference: Optional[dict[str, str]] = rest_field( + name="secretReference", visibility=["read", "create", "update", "delete", "query"] + ) + """The secret reference volume.""" + git_repo: Optional["_models.GitRepoVolume"] = rest_field( + name="gitRepo", visibility=["read", "create", "update", "delete", "query"] + ) + """The git repo volume.""" + + @overload + def __init__( + self, + *, + name: str, + azure_file: Optional["_models.AzureFileVolume"] = None, + empty_dir: Optional[Any] = None, + secret: Optional[dict[str, str]] = None, + secret_reference: Optional[dict[str, str]] = None, + git_repo: Optional["_models.GitRepoVolume"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class VolumeMount(_Model): + """The properties of the volume mount. + + :ivar name: The name of the volume mount. Required. + :vartype name: str + :ivar mount_path: The path within the container where the volume should be mounted. Must not + contain colon (:). Required. + :vartype mount_path: str + :ivar read_only: The flag indicating whether the volume mount is read-only. + :vartype read_only: bool + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the volume mount. Required.""" + mount_path: str = rest_field(name="mountPath", visibility=["read", "create", "update", "delete", "query"]) + """The path within the container where the volume should be mounted. Must not contain colon (:). + Required.""" + read_only: Optional[bool] = rest_field(name="readOnly", visibility=["read", "create", "update", "delete", "query"]) + """The flag indicating whether the volume mount is read-only.""" + + @overload + def __init__( + self, + *, + name: str, + mount_path: str, + read_only: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models_py3.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models_py3.py deleted file mode 100644 index 7b1ef536c4b1..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models_py3.py +++ /dev/null @@ -1,5016 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- - -from collections.abc import MutableMapping -import datetime -from typing import Any, Optional, TYPE_CHECKING, Union - -from .._utils import serialization as _serialization - -if TYPE_CHECKING: - from .. import models as _models -JSON = MutableMapping[str, Any] - - -class ApiEntityReference(_serialization.Model): - """The API entity reference. - - :ivar id: The ARM resource id in the form of - /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The ARM resource id in the form of - /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class ApplicationGateway(_serialization.Model): - """Application Gateway the CG profile will use to interact with CGs in a backend pool. - - :ivar resource: The Application Gateway ARM resource Id. - :vartype resource: str - :ivar backend_address_pools: List of Application Gateway Backend Address Pools. - :vartype backend_address_pools: - list[~azure.mgmt.containerinstance.models.ApplicationGatewayBackendAddressPool] - """ - - _attribute_map = { - "resource": {"key": "resource", "type": "str"}, - "backend_address_pools": {"key": "backendAddressPools", "type": "[ApplicationGatewayBackendAddressPool]"}, - } - - def __init__( - self, - *, - resource: Optional[str] = None, - backend_address_pools: Optional[list["_models.ApplicationGatewayBackendAddressPool"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource: The Application Gateway ARM resource Id. - :paramtype resource: str - :keyword backend_address_pools: List of Application Gateway Backend Address Pools. - :paramtype backend_address_pools: - list[~azure.mgmt.containerinstance.models.ApplicationGatewayBackendAddressPool] - """ - super().__init__(**kwargs) - self.resource = resource - self.backend_address_pools = backend_address_pools - - -class ApplicationGatewayBackendAddressPool(_serialization.Model): - """NGroups application gateway backend address pool. - - :ivar resource: The application gateway backend address pool ARM resource Id. - :vartype resource: str - """ - - _attribute_map = { - "resource": {"key": "resource", "type": "str"}, - } - - def __init__(self, *, resource: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword resource: The application gateway backend address pool ARM resource Id. - :paramtype resource: str - """ - super().__init__(**kwargs) - self.resource = resource - - -class AzureFileVolume(_serialization.Model): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar share_name: The name of the Azure File share to be mounted as a volume. Required. - :vartype share_name: str - :ivar read_only: The flag indicating whether the Azure File shared mounted as a volume is - read-only. - :vartype read_only: bool - :ivar storage_account_name: The name of the storage account that contains the Azure File share. - Required. - :vartype storage_account_name: str - :ivar storage_account_key: The storage account access key used to access the Azure File share. - :vartype storage_account_key: str - :ivar storage_account_key_reference: The reference to the storage account access key used to - access the Azure File share. - :vartype storage_account_key_reference: str - """ - - _validation = { - "share_name": {"required": True}, - "storage_account_name": {"required": True}, - } - - _attribute_map = { - "share_name": {"key": "shareName", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "storage_account_name": {"key": "storageAccountName", "type": "str"}, - "storage_account_key": {"key": "storageAccountKey", "type": "str"}, - "storage_account_key_reference": {"key": "storageAccountKeyReference", "type": "str"}, - } - - def __init__( - self, - *, - share_name: str, - storage_account_name: str, - read_only: Optional[bool] = None, - storage_account_key: Optional[str] = None, - storage_account_key_reference: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword share_name: The name of the Azure File share to be mounted as a volume. Required. - :paramtype share_name: str - :keyword read_only: The flag indicating whether the Azure File shared mounted as a volume is - read-only. - :paramtype read_only: bool - :keyword storage_account_name: The name of the storage account that contains the Azure File - share. Required. - :paramtype storage_account_name: str - :keyword storage_account_key: The storage account access key used to access the Azure File - share. - :paramtype storage_account_key: str - :keyword storage_account_key_reference: The reference to the storage account access key used to - access the Azure File share. - :paramtype storage_account_key_reference: str - """ - super().__init__(**kwargs) - self.share_name = share_name - self.read_only = read_only - self.storage_account_name = storage_account_name - self.storage_account_key = storage_account_key - self.storage_account_key_reference = storage_account_key_reference - - -class CachedImages(_serialization.Model): - """The cached image and OS type. - - All required parameters must be populated in order to send to server. - - :ivar os_type: The OS type of the cached image. Required. - :vartype os_type: str - :ivar image: The cached image name. Required. - :vartype image: str - """ - - _validation = { - "os_type": {"required": True}, - "image": {"required": True}, - } - - _attribute_map = { - "os_type": {"key": "osType", "type": "str"}, - "image": {"key": "image", "type": "str"}, - } - - def __init__(self, *, os_type: str, image: str, **kwargs: Any) -> None: - """ - :keyword os_type: The OS type of the cached image. Required. - :paramtype os_type: str - :keyword image: The cached image name. Required. - :paramtype image: str - """ - super().__init__(**kwargs) - self.os_type = os_type - self.image = image - - -class CachedImagesListResult(_serialization.Model): - """The response containing cached images. - - :ivar value: The list of cached images. - :vartype value: list[~azure.mgmt.containerinstance.models.CachedImages] - :ivar next_link: The URI to fetch the next page of cached images. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CachedImages]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[list["_models.CachedImages"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The list of cached images. - :paramtype value: list[~azure.mgmt.containerinstance.models.CachedImages] - :keyword next_link: The URI to fetch the next page of cached images. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class Capabilities(_serialization.Model): - """The regional capabilities. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_type: The resource type that this capability describes. - :vartype resource_type: str - :ivar os_type: The OS type that this capability describes. - :vartype os_type: str - :ivar location: The resource location. - :vartype location: str - :ivar ip_address_type: The ip address type that this capability describes. - :vartype ip_address_type: str - :ivar gpu: The GPU sku that this capability describes. - :vartype gpu: str - :ivar capabilities: The supported capabilities. - :vartype capabilities: ~azure.mgmt.containerinstance.models.CapabilitiesCapabilities - """ - - _validation = { - "resource_type": {"readonly": True}, - "os_type": {"readonly": True}, - "location": {"readonly": True}, - "ip_address_type": {"readonly": True}, - "gpu": {"readonly": True}, - "capabilities": {"readonly": True}, - } - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "os_type": {"key": "osType", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "ip_address_type": {"key": "ipAddressType", "type": "str"}, - "gpu": {"key": "gpu", "type": "str"}, - "capabilities": {"key": "capabilities", "type": "CapabilitiesCapabilities"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_type: Optional[str] = None - self.os_type: Optional[str] = None - self.location: Optional[str] = None - self.ip_address_type: Optional[str] = None - self.gpu: Optional[str] = None - self.capabilities: Optional["_models.CapabilitiesCapabilities"] = None - - -class CapabilitiesCapabilities(_serialization.Model): - """The supported capabilities. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar max_memory_in_gb: The maximum allowed memory request in GB. - :vartype max_memory_in_gb: float - :ivar max_cpu: The maximum allowed CPU request in cores. - :vartype max_cpu: float - :ivar max_gpu_count: The maximum allowed GPU count. - :vartype max_gpu_count: float - """ - - _validation = { - "max_memory_in_gb": {"readonly": True}, - "max_cpu": {"readonly": True}, - "max_gpu_count": {"readonly": True}, - } - - _attribute_map = { - "max_memory_in_gb": {"key": "maxMemoryInGB", "type": "float"}, - "max_cpu": {"key": "maxCpu", "type": "float"}, - "max_gpu_count": {"key": "maxGpuCount", "type": "float"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.max_memory_in_gb: Optional[float] = None - self.max_cpu: Optional[float] = None - self.max_gpu_count: Optional[float] = None - - -class CapabilitiesListResult(_serialization.Model): - """The response containing list of capabilities. - - :ivar value: The list of capabilities. - :vartype value: list[~azure.mgmt.containerinstance.models.Capabilities] - :ivar next_link: The URI to fetch the next page of capabilities. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Capabilities]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[list["_models.Capabilities"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The list of capabilities. - :paramtype value: list[~azure.mgmt.containerinstance.models.Capabilities] - :keyword next_link: The URI to fetch the next page of capabilities. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the Container Instance service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.containerinstance.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[list["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.containerinstance.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ConfidentialComputeProperties(_serialization.Model): - """The properties for confidential container group. - - :ivar cce_policy: The base64 encoded confidential compute enforcement policy. - :vartype cce_policy: str - """ - - _attribute_map = { - "cce_policy": {"key": "ccePolicy", "type": "str"}, - } - - def __init__(self, *, cce_policy: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cce_policy: The base64 encoded confidential compute enforcement policy. - :paramtype cce_policy: str - """ - super().__init__(**kwargs) - self.cce_policy = cce_policy - - -class ConfigMap(_serialization.Model): - """The container config map. - - :ivar key_value_pairs: The key value pairs dictionary in the config map. - :vartype key_value_pairs: dict[str, str] - """ - - _attribute_map = { - "key_value_pairs": {"key": "keyValuePairs", "type": "{str}"}, - } - - def __init__(self, *, key_value_pairs: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword key_value_pairs: The key value pairs dictionary in the config map. - :paramtype key_value_pairs: dict[str, str] - """ - super().__init__(**kwargs) - self.key_value_pairs = key_value_pairs - - -class Container(_serialization.Model): - """A container instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar name: The user-provided name of the container instance. Required. - :vartype name: str - :ivar image: The name of the image used to create the container instance. - :vartype image: str - :ivar command: The commands to execute within the container instance in exec form. - :vartype command: list[str] - :ivar ports: The exposed ports on the container instance. - :vartype ports: list[~azure.mgmt.containerinstance.models.ContainerPort] - :ivar environment_variables: The environment variables to set in the container instance. - :vartype environment_variables: list[~azure.mgmt.containerinstance.models.EnvironmentVariable] - :ivar instance_view: The instance view of the container instance. Only valid in response. - :vartype instance_view: ~azure.mgmt.containerinstance.models.ContainerPropertiesInstanceView - :ivar resources: The resource requirements of the container instance. - :vartype resources: ~azure.mgmt.containerinstance.models.ResourceRequirements - :ivar volume_mounts: The volume mounts available to the container instance. - :vartype volume_mounts: list[~azure.mgmt.containerinstance.models.VolumeMount] - :ivar liveness_probe: The liveness probe. - :vartype liveness_probe: ~azure.mgmt.containerinstance.models.ContainerProbe - :ivar readiness_probe: The readiness probe. - :vartype readiness_probe: ~azure.mgmt.containerinstance.models.ContainerProbe - :ivar security_context: The container security properties. - :vartype security_context: ~azure.mgmt.containerinstance.models.SecurityContextDefinition - :ivar config_map: The config map. - :vartype config_map: ~azure.mgmt.containerinstance.models.ConfigMap - """ - - _validation = { - "name": {"required": True}, - "instance_view": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "image": {"key": "properties.image", "type": "str"}, - "command": {"key": "properties.command", "type": "[str]"}, - "ports": {"key": "properties.ports", "type": "[ContainerPort]"}, - "environment_variables": {"key": "properties.environmentVariables", "type": "[EnvironmentVariable]"}, - "instance_view": {"key": "properties.instanceView", "type": "ContainerPropertiesInstanceView"}, - "resources": {"key": "properties.resources", "type": "ResourceRequirements"}, - "volume_mounts": {"key": "properties.volumeMounts", "type": "[VolumeMount]"}, - "liveness_probe": {"key": "properties.livenessProbe", "type": "ContainerProbe"}, - "readiness_probe": {"key": "properties.readinessProbe", "type": "ContainerProbe"}, - "security_context": {"key": "properties.securityContext", "type": "SecurityContextDefinition"}, - "config_map": {"key": "properties.configMap", "type": "ConfigMap"}, - } - - def __init__( - self, - *, - name: str, - image: Optional[str] = None, - command: Optional[list[str]] = None, - ports: Optional[list["_models.ContainerPort"]] = None, - environment_variables: Optional[list["_models.EnvironmentVariable"]] = None, - resources: Optional["_models.ResourceRequirements"] = None, - volume_mounts: Optional[list["_models.VolumeMount"]] = None, - liveness_probe: Optional["_models.ContainerProbe"] = None, - readiness_probe: Optional["_models.ContainerProbe"] = None, - security_context: Optional["_models.SecurityContextDefinition"] = None, - config_map: Optional["_models.ConfigMap"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The user-provided name of the container instance. Required. - :paramtype name: str - :keyword image: The name of the image used to create the container instance. - :paramtype image: str - :keyword command: The commands to execute within the container instance in exec form. - :paramtype command: list[str] - :keyword ports: The exposed ports on the container instance. - :paramtype ports: list[~azure.mgmt.containerinstance.models.ContainerPort] - :keyword environment_variables: The environment variables to set in the container instance. - :paramtype environment_variables: - list[~azure.mgmt.containerinstance.models.EnvironmentVariable] - :keyword resources: The resource requirements of the container instance. - :paramtype resources: ~azure.mgmt.containerinstance.models.ResourceRequirements - :keyword volume_mounts: The volume mounts available to the container instance. - :paramtype volume_mounts: list[~azure.mgmt.containerinstance.models.VolumeMount] - :keyword liveness_probe: The liveness probe. - :paramtype liveness_probe: ~azure.mgmt.containerinstance.models.ContainerProbe - :keyword readiness_probe: The readiness probe. - :paramtype readiness_probe: ~azure.mgmt.containerinstance.models.ContainerProbe - :keyword security_context: The container security properties. - :paramtype security_context: ~azure.mgmt.containerinstance.models.SecurityContextDefinition - :keyword config_map: The config map. - :paramtype config_map: ~azure.mgmt.containerinstance.models.ConfigMap - """ - super().__init__(**kwargs) - self.name = name - self.image = image - self.command = command - self.ports = ports - self.environment_variables = environment_variables - self.instance_view: Optional["_models.ContainerPropertiesInstanceView"] = None - self.resources = resources - self.volume_mounts = volume_mounts - self.liveness_probe = liveness_probe - self.readiness_probe = readiness_probe - self.security_context = security_context - self.config_map = config_map - - -class ContainerAttachResponse(_serialization.Model): - """The information for the output stream from container attach. - - :ivar web_socket_uri: The uri for the output stream from the attach. - :vartype web_socket_uri: str - :ivar password: The password to the output stream from the attach. Send as an Authorization - header value when connecting to the websocketUri. - :vartype password: str - """ - - _attribute_map = { - "web_socket_uri": {"key": "webSocketUri", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, web_socket_uri: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword web_socket_uri: The uri for the output stream from the attach. - :paramtype web_socket_uri: str - :keyword password: The password to the output stream from the attach. Send as an Authorization - header value when connecting to the websocketUri. - :paramtype password: str - """ - super().__init__(**kwargs) - self.web_socket_uri = web_socket_uri - self.password = password - - -class ContainerExec(_serialization.Model): - """The container execution command, for liveness or readiness probe. - - :ivar command: The commands to execute within the container. - :vartype command: list[str] - """ - - _attribute_map = { - "command": {"key": "command", "type": "[str]"}, - } - - def __init__(self, *, command: Optional[list[str]] = None, **kwargs: Any) -> None: - """ - :keyword command: The commands to execute within the container. - :paramtype command: list[str] - """ - super().__init__(**kwargs) - self.command = command - - -class ContainerExecRequest(_serialization.Model): - """The container exec request. - - :ivar command: The command to be executed. - :vartype command: str - :ivar terminal_size: The size of the terminal. - :vartype terminal_size: ~azure.mgmt.containerinstance.models.ContainerExecRequestTerminalSize - """ - - _attribute_map = { - "command": {"key": "command", "type": "str"}, - "terminal_size": {"key": "terminalSize", "type": "ContainerExecRequestTerminalSize"}, - } - - def __init__( - self, - *, - command: Optional[str] = None, - terminal_size: Optional["_models.ContainerExecRequestTerminalSize"] = None, - **kwargs: Any - ) -> None: - """ - :keyword command: The command to be executed. - :paramtype command: str - :keyword terminal_size: The size of the terminal. - :paramtype terminal_size: ~azure.mgmt.containerinstance.models.ContainerExecRequestTerminalSize - """ - super().__init__(**kwargs) - self.command = command - self.terminal_size = terminal_size - - -class ContainerExecRequestTerminalSize(_serialization.Model): - """The size of the terminal. - - :ivar rows: The row size of the terminal. - :vartype rows: int - :ivar cols: The column size of the terminal. - :vartype cols: int - """ - - _attribute_map = { - "rows": {"key": "rows", "type": "int"}, - "cols": {"key": "cols", "type": "int"}, - } - - def __init__(self, *, rows: Optional[int] = None, cols: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword rows: The row size of the terminal. - :paramtype rows: int - :keyword cols: The column size of the terminal. - :paramtype cols: int - """ - super().__init__(**kwargs) - self.rows = rows - self.cols = cols - - -class ContainerExecResponse(_serialization.Model): - """The information for the container exec command. - - :ivar web_socket_uri: The uri for the exec websocket. - :vartype web_socket_uri: str - :ivar password: The password to start the exec command. - :vartype password: str - """ - - _attribute_map = { - "web_socket_uri": {"key": "webSocketUri", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, web_socket_uri: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword web_socket_uri: The uri for the exec websocket. - :paramtype web_socket_uri: str - :keyword password: The password to start the exec command. - :paramtype password: str - """ - super().__init__(**kwargs) - self.web_socket_uri = web_socket_uri - self.password = password - - -class ContainerGroupProperties(_serialization.Model): - """The container group properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar identity: The identity of the container group, if configured. - :vartype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity - :ivar provisioning_state: The provisioning state of the container group. This only appears in - the response. - :vartype provisioning_state: str - :ivar secret_references: The secret references that will be referenced within the container - group. - :vartype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] - :ivar containers: The containers within the container group. Required. - :vartype containers: list[~azure.mgmt.containerinstance.models.Container] - :ivar image_registry_credentials: The image registry credentials by which the container group - is created from. - :vartype image_registry_credentials: - list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] - :ivar restart_policy: Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". - :vartype restart_policy: str or - ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy - :ivar ip_address: The IP address type of the container group. - :vartype ip_address: ~azure.mgmt.containerinstance.models.IpAddress - :ivar os_type: The operating system type required by the containers in the container group. - Known values are: "Windows" and "Linux". - :vartype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes - :ivar volumes: The list of volumes that can be mounted by containers in this container group. - :vartype volumes: list[~azure.mgmt.containerinstance.models.Volume] - :ivar instance_view: The instance view of the container group. Only valid in response. - :vartype instance_view: - ~azure.mgmt.containerinstance.models.ContainerGroupPropertiesInstanceView - :ivar diagnostics: The diagnostic information for a container group. - :vartype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :ivar subnet_ids: The subnet resource IDs for a container group. - :vartype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] - :ivar dns_config: The DNS config information for a container group. - :vartype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration - :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", - "Dedicated", and "Confidential". - :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :ivar encryption_properties: The encryption properties for a container group. - :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :ivar init_containers: The init containers for a container group. - :vartype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :ivar extensions: extensions used by virtual kubelet. - :vartype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] - :ivar confidential_compute_properties: The properties for confidential container group. - :vartype confidential_compute_properties: - ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". - :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority - :ivar identity_acls: The access control levels of the identities. - :vartype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls - :ivar container_group_profile: The reference container group profile properties. - :vartype container_group_profile: - ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition - :ivar standby_pool_profile: The reference standby pool profile properties. - :vartype standby_pool_profile: - ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition - :ivar is_created_from_standby_pool: The flag to determine whether the container group is - created from standby pool. - :vartype is_created_from_standby_pool: bool - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "containers": {"required": True}, - "instance_view": {"readonly": True}, - "is_created_from_standby_pool": {"readonly": True}, - } - - _attribute_map = { - "identity": {"key": "identity", "type": "ContainerGroupIdentity"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "secret_references": {"key": "properties.secretReferences", "type": "[SecretReference]"}, - "containers": {"key": "properties.containers", "type": "[Container]"}, - "image_registry_credentials": { - "key": "properties.imageRegistryCredentials", - "type": "[ImageRegistryCredential]", - }, - "restart_policy": {"key": "properties.restartPolicy", "type": "str"}, - "ip_address": {"key": "properties.ipAddress", "type": "IpAddress"}, - "os_type": {"key": "properties.osType", "type": "str"}, - "volumes": {"key": "properties.volumes", "type": "[Volume]"}, - "instance_view": {"key": "properties.instanceView", "type": "ContainerGroupPropertiesInstanceView"}, - "diagnostics": {"key": "properties.diagnostics", "type": "ContainerGroupDiagnostics"}, - "subnet_ids": {"key": "properties.subnetIds", "type": "[ContainerGroupSubnetId]"}, - "dns_config": {"key": "properties.dnsConfig", "type": "DnsConfiguration"}, - "sku": {"key": "properties.sku", "type": "str"}, - "encryption_properties": {"key": "properties.encryptionProperties", "type": "EncryptionProperties"}, - "init_containers": {"key": "properties.initContainers", "type": "[InitContainerDefinition]"}, - "extensions": {"key": "properties.extensions", "type": "[DeploymentExtensionSpec]"}, - "confidential_compute_properties": { - "key": "properties.confidentialComputeProperties", - "type": "ConfidentialComputeProperties", - }, - "priority": {"key": "properties.priority", "type": "str"}, - "identity_acls": {"key": "properties.identityAcls", "type": "IdentityAcls"}, - "container_group_profile": { - "key": "properties.containerGroupProfile", - "type": "ContainerGroupProfileReferenceDefinition", - }, - "standby_pool_profile": {"key": "properties.standbyPoolProfile", "type": "StandbyPoolProfileDefinition"}, - "is_created_from_standby_pool": {"key": "properties.isCreatedFromStandbyPool", "type": "bool"}, - } - - def __init__( - self, - *, - containers: list["_models.Container"], - identity: Optional["_models.ContainerGroupIdentity"] = None, - secret_references: Optional[list["_models.SecretReference"]] = None, - image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = None, - restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, - ip_address: Optional["_models.IpAddress"] = None, - os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - volumes: Optional[list["_models.Volume"]] = None, - diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, - subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = None, - dns_config: Optional["_models.DnsConfiguration"] = None, - sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, - encryption_properties: Optional["_models.EncryptionProperties"] = None, - init_containers: Optional[list["_models.InitContainerDefinition"]] = None, - extensions: Optional[list["_models.DeploymentExtensionSpec"]] = None, - confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, - priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, - identity_acls: Optional["_models.IdentityAcls"] = None, - container_group_profile: Optional["_models.ContainerGroupProfileReferenceDefinition"] = None, - standby_pool_profile: Optional["_models.StandbyPoolProfileDefinition"] = None, - **kwargs: Any - ) -> None: - """ - :keyword identity: The identity of the container group, if configured. - :paramtype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity - :keyword secret_references: The secret references that will be referenced within the container - group. - :paramtype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] - :keyword containers: The containers within the container group. Required. - :paramtype containers: list[~azure.mgmt.containerinstance.models.Container] - :keyword image_registry_credentials: The image registry credentials by which the container - group is created from. - :paramtype image_registry_credentials: - list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] - :keyword restart_policy: Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". - :paramtype restart_policy: str or - ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy - :keyword ip_address: The IP address type of the container group. - :paramtype ip_address: ~azure.mgmt.containerinstance.models.IpAddress - :keyword os_type: The operating system type required by the containers in the container group. - Known values are: "Windows" and "Linux". - :paramtype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes - :keyword volumes: The list of volumes that can be mounted by containers in this container - group. - :paramtype volumes: list[~azure.mgmt.containerinstance.models.Volume] - :keyword diagnostics: The diagnostic information for a container group. - :paramtype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :keyword subnet_ids: The subnet resource IDs for a container group. - :paramtype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] - :keyword dns_config: The DNS config information for a container group. - :paramtype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration - :keyword sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", - "Dedicated", and "Confidential". - :paramtype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :keyword encryption_properties: The encryption properties for a container group. - :paramtype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :keyword init_containers: The init containers for a container group. - :paramtype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :keyword extensions: extensions used by virtual kubelet. - :paramtype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] - :keyword confidential_compute_properties: The properties for confidential container group. - :paramtype confidential_compute_properties: - ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :keyword priority: The priority of the container group. Known values are: "Regular" and "Spot". - :paramtype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority - :keyword identity_acls: The access control levels of the identities. - :paramtype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls - :keyword container_group_profile: The reference container group profile properties. - :paramtype container_group_profile: - ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition - :keyword standby_pool_profile: The reference standby pool profile properties. - :paramtype standby_pool_profile: - ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition - """ - super().__init__(**kwargs) - self.identity = identity - self.provisioning_state: Optional[str] = None - self.secret_references = secret_references - self.containers = containers - self.image_registry_credentials = image_registry_credentials - self.restart_policy = restart_policy - self.ip_address = ip_address - self.os_type = os_type - self.volumes = volumes - self.instance_view: Optional["_models.ContainerGroupPropertiesInstanceView"] = None - self.diagnostics = diagnostics - self.subnet_ids = subnet_ids - self.dns_config = dns_config - self.sku = sku - self.encryption_properties = encryption_properties - self.init_containers = init_containers - self.extensions = extensions - self.confidential_compute_properties = confidential_compute_properties - self.priority = priority - self.identity_acls = identity_acls - self.container_group_profile = container_group_profile - self.standby_pool_profile = standby_pool_profile - self.is_created_from_standby_pool: Optional[bool] = None - - -class Resource(_serialization.Model): - """The Resource model definition. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The resource id. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar zones: The zones for the container group. - :vartype zones: list[str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[dict[str, str]] = None, - zones: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The resource location. - :paramtype location: str - :keyword tags: The resource tags. - :paramtype tags: dict[str, str] - :keyword zones: The zones for the container group. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.name: Optional[str] = None - self.type: Optional[str] = None - self.location = location - self.tags = tags - self.zones = zones - - -class ContainerGroup(Resource, ContainerGroupProperties): - """A container group. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar identity: The identity of the container group, if configured. - :vartype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity - :ivar provisioning_state: The provisioning state of the container group. This only appears in - the response. - :vartype provisioning_state: str - :ivar secret_references: The secret references that will be referenced within the container - group. - :vartype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] - :ivar containers: The containers within the container group. Required. - :vartype containers: list[~azure.mgmt.containerinstance.models.Container] - :ivar image_registry_credentials: The image registry credentials by which the container group - is created from. - :vartype image_registry_credentials: - list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] - :ivar restart_policy: Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". - :vartype restart_policy: str or - ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy - :ivar ip_address: The IP address type of the container group. - :vartype ip_address: ~azure.mgmt.containerinstance.models.IpAddress - :ivar os_type: The operating system type required by the containers in the container group. - Known values are: "Windows" and "Linux". - :vartype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes - :ivar volumes: The list of volumes that can be mounted by containers in this container group. - :vartype volumes: list[~azure.mgmt.containerinstance.models.Volume] - :ivar instance_view: The instance view of the container group. Only valid in response. - :vartype instance_view: - ~azure.mgmt.containerinstance.models.ContainerGroupPropertiesInstanceView - :ivar diagnostics: The diagnostic information for a container group. - :vartype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :ivar subnet_ids: The subnet resource IDs for a container group. - :vartype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] - :ivar dns_config: The DNS config information for a container group. - :vartype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration - :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", - "Dedicated", and "Confidential". - :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :ivar encryption_properties: The encryption properties for a container group. - :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :ivar init_containers: The init containers for a container group. - :vartype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :ivar extensions: extensions used by virtual kubelet. - :vartype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] - :ivar confidential_compute_properties: The properties for confidential container group. - :vartype confidential_compute_properties: - ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". - :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority - :ivar identity_acls: The access control levels of the identities. - :vartype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls - :ivar container_group_profile: The reference container group profile properties. - :vartype container_group_profile: - ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition - :ivar standby_pool_profile: The reference standby pool profile properties. - :vartype standby_pool_profile: - ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition - :ivar is_created_from_standby_pool: The flag to determine whether the container group is - created from standby pool. - :vartype is_created_from_standby_pool: bool - :ivar id: The resource id. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar zones: The zones for the container group. - :vartype zones: list[str] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "containers": {"required": True}, - "instance_view": {"readonly": True}, - "is_created_from_standby_pool": {"readonly": True}, - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "identity": {"key": "identity", "type": "ContainerGroupIdentity"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "secret_references": {"key": "properties.secretReferences", "type": "[SecretReference]"}, - "containers": {"key": "properties.containers", "type": "[Container]"}, - "image_registry_credentials": { - "key": "properties.imageRegistryCredentials", - "type": "[ImageRegistryCredential]", - }, - "restart_policy": {"key": "properties.restartPolicy", "type": "str"}, - "ip_address": {"key": "properties.ipAddress", "type": "IpAddress"}, - "os_type": {"key": "properties.osType", "type": "str"}, - "volumes": {"key": "properties.volumes", "type": "[Volume]"}, - "instance_view": {"key": "properties.instanceView", "type": "ContainerGroupPropertiesInstanceView"}, - "diagnostics": {"key": "properties.diagnostics", "type": "ContainerGroupDiagnostics"}, - "subnet_ids": {"key": "properties.subnetIds", "type": "[ContainerGroupSubnetId]"}, - "dns_config": {"key": "properties.dnsConfig", "type": "DnsConfiguration"}, - "sku": {"key": "properties.sku", "type": "str"}, - "encryption_properties": {"key": "properties.encryptionProperties", "type": "EncryptionProperties"}, - "init_containers": {"key": "properties.initContainers", "type": "[InitContainerDefinition]"}, - "extensions": {"key": "properties.extensions", "type": "[DeploymentExtensionSpec]"}, - "confidential_compute_properties": { - "key": "properties.confidentialComputeProperties", - "type": "ConfidentialComputeProperties", - }, - "priority": {"key": "properties.priority", "type": "str"}, - "identity_acls": {"key": "properties.identityAcls", "type": "IdentityAcls"}, - "container_group_profile": { - "key": "properties.containerGroupProfile", - "type": "ContainerGroupProfileReferenceDefinition", - }, - "standby_pool_profile": {"key": "properties.standbyPoolProfile", "type": "StandbyPoolProfileDefinition"}, - "is_created_from_standby_pool": {"key": "properties.isCreatedFromStandbyPool", "type": "bool"}, - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - containers: list["_models.Container"], - identity: Optional["_models.ContainerGroupIdentity"] = None, - secret_references: Optional[list["_models.SecretReference"]] = None, - image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = None, - restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, - ip_address: Optional["_models.IpAddress"] = None, - os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - volumes: Optional[list["_models.Volume"]] = None, - diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, - subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = None, - dns_config: Optional["_models.DnsConfiguration"] = None, - sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, - encryption_properties: Optional["_models.EncryptionProperties"] = None, - init_containers: Optional[list["_models.InitContainerDefinition"]] = None, - extensions: Optional[list["_models.DeploymentExtensionSpec"]] = None, - confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, - priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, - identity_acls: Optional["_models.IdentityAcls"] = None, - container_group_profile: Optional["_models.ContainerGroupProfileReferenceDefinition"] = None, - standby_pool_profile: Optional["_models.StandbyPoolProfileDefinition"] = None, - location: Optional[str] = None, - tags: Optional[dict[str, str]] = None, - zones: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword identity: The identity of the container group, if configured. - :paramtype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity - :keyword secret_references: The secret references that will be referenced within the container - group. - :paramtype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] - :keyword containers: The containers within the container group. Required. - :paramtype containers: list[~azure.mgmt.containerinstance.models.Container] - :keyword image_registry_credentials: The image registry credentials by which the container - group is created from. - :paramtype image_registry_credentials: - list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] - :keyword restart_policy: Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". - :paramtype restart_policy: str or - ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy - :keyword ip_address: The IP address type of the container group. - :paramtype ip_address: ~azure.mgmt.containerinstance.models.IpAddress - :keyword os_type: The operating system type required by the containers in the container group. - Known values are: "Windows" and "Linux". - :paramtype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes - :keyword volumes: The list of volumes that can be mounted by containers in this container - group. - :paramtype volumes: list[~azure.mgmt.containerinstance.models.Volume] - :keyword diagnostics: The diagnostic information for a container group. - :paramtype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :keyword subnet_ids: The subnet resource IDs for a container group. - :paramtype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] - :keyword dns_config: The DNS config information for a container group. - :paramtype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration - :keyword sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", - "Dedicated", and "Confidential". - :paramtype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :keyword encryption_properties: The encryption properties for a container group. - :paramtype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :keyword init_containers: The init containers for a container group. - :paramtype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :keyword extensions: extensions used by virtual kubelet. - :paramtype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] - :keyword confidential_compute_properties: The properties for confidential container group. - :paramtype confidential_compute_properties: - ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :keyword priority: The priority of the container group. Known values are: "Regular" and "Spot". - :paramtype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority - :keyword identity_acls: The access control levels of the identities. - :paramtype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls - :keyword container_group_profile: The reference container group profile properties. - :paramtype container_group_profile: - ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition - :keyword standby_pool_profile: The reference standby pool profile properties. - :paramtype standby_pool_profile: - ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition - :keyword location: The resource location. - :paramtype location: str - :keyword tags: The resource tags. - :paramtype tags: dict[str, str] - :keyword zones: The zones for the container group. - :paramtype zones: list[str] - """ - super().__init__( - location=location, - tags=tags, - zones=zones, - identity=identity, - secret_references=secret_references, - containers=containers, - image_registry_credentials=image_registry_credentials, - restart_policy=restart_policy, - ip_address=ip_address, - os_type=os_type, - volumes=volumes, - diagnostics=diagnostics, - subnet_ids=subnet_ids, - dns_config=dns_config, - sku=sku, - encryption_properties=encryption_properties, - init_containers=init_containers, - extensions=extensions, - confidential_compute_properties=confidential_compute_properties, - priority=priority, - identity_acls=identity_acls, - container_group_profile=container_group_profile, - standby_pool_profile=standby_pool_profile, - **kwargs - ) - self.identity = identity - self.provisioning_state: Optional[str] = None - self.secret_references = secret_references - self.containers = containers - self.image_registry_credentials = image_registry_credentials - self.restart_policy = restart_policy - self.ip_address = ip_address - self.os_type = os_type - self.volumes = volumes - self.instance_view: Optional["_models.ContainerGroupPropertiesInstanceView"] = None - self.diagnostics = diagnostics - self.subnet_ids = subnet_ids - self.dns_config = dns_config - self.sku = sku - self.encryption_properties = encryption_properties - self.init_containers = init_containers - self.extensions = extensions - self.confidential_compute_properties = confidential_compute_properties - self.priority = priority - self.identity_acls = identity_acls - self.container_group_profile = container_group_profile - self.standby_pool_profile = standby_pool_profile - self.is_created_from_standby_pool: Optional[bool] = None - self.id: Optional[str] = None - self.name: Optional[str] = None - self.type: Optional[str] = None - self.location = location - self.tags = tags - self.zones = zones - - -class ContainerGroupDiagnostics(_serialization.Model): - """Container group diagnostic information. - - :ivar log_analytics: Container group log analytics information. - :vartype log_analytics: ~azure.mgmt.containerinstance.models.LogAnalytics - """ - - _attribute_map = { - "log_analytics": {"key": "logAnalytics", "type": "LogAnalytics"}, - } - - def __init__(self, *, log_analytics: Optional["_models.LogAnalytics"] = None, **kwargs: Any) -> None: - """ - :keyword log_analytics: Container group log analytics information. - :paramtype log_analytics: ~azure.mgmt.containerinstance.models.LogAnalytics - """ - super().__init__(**kwargs) - self.log_analytics = log_analytics - - -class ContainerGroupIdentity(_serialization.Model): - """Identity for the container group. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: The principal id of the container group identity. This property will only - be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant id associated with the container group. This property will only be - provided for a system assigned identity. - :vartype tenant_id: str - :ivar type: The type of identity used for the container group. The type 'SystemAssigned, - UserAssigned' includes both an implicitly created identity and a set of user assigned - identities. The type 'None' will remove any identities from the container group. Known values - are: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", and "None". - :vartype type: str or ~azure.mgmt.containerinstance.models.ResourceIdentityType - :ivar user_assigned_identities: The list of user identities associated with the container - group. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.containerinstance.models.UserAssignedIdentities] - """ - - _validation = { - "principal_id": {"readonly": True}, - "tenant_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedIdentities}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, - user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: The type of identity used for the container group. The type 'SystemAssigned, - UserAssigned' includes both an implicitly created identity and a set of user assigned - identities. The type 'None' will remove any identities from the container group. Known values - are: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", and "None". - :paramtype type: str or ~azure.mgmt.containerinstance.models.ResourceIdentityType - :keyword user_assigned_identities: The list of user identities associated with the container - group. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.containerinstance.models.UserAssignedIdentities] - """ - super().__init__(**kwargs) - self.principal_id: Optional[str] = None - self.tenant_id: Optional[str] = None - self.type = type - self.user_assigned_identities = user_assigned_identities - - -class ContainerGroupListResult(_serialization.Model): - """The container group list response that contains the container group properties. - - :ivar value: The list of container groups. - :vartype value: list[~azure.mgmt.containerinstance.models.ListResultContainerGroup] - :ivar next_link: The URI to fetch the next page of container groups. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ListResultContainerGroup]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[list["_models.ListResultContainerGroup"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The list of container groups. - :paramtype value: list[~azure.mgmt.containerinstance.models.ListResultContainerGroup] - :keyword next_link: The URI to fetch the next page of container groups. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ContainerGroupProfile(Resource): - """A container group profile object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The resource id. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar zones: The zones for the container group. - :vartype zones: list[str] - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.containerinstance.models.SystemData - :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", - "Dedicated", and "Confidential". - :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :ivar encryption_properties: The encryption properties for a container group. - :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :ivar containers: The containers within the container group. - :vartype containers: list[~azure.mgmt.containerinstance.models.Container] - :ivar init_containers: The init containers for a container group. - :vartype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :ivar extensions: extensions used by virtual kubelet. - :vartype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] - :ivar image_registry_credentials: The image registry credentials by which the container group - is created from. - :vartype image_registry_credentials: - list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] - :ivar restart_policy: Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". - :vartype restart_policy: str or - ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy - :ivar shutdown_grace_period: Shutdown grace period for containers in a container group. - :vartype shutdown_grace_period: ~datetime.datetime - :ivar ip_address: The IP address type of the container group. - :vartype ip_address: ~azure.mgmt.containerinstance.models.IpAddress - :ivar time_to_live: Post completion time to live for containers of a CG. - :vartype time_to_live: ~datetime.datetime - :ivar os_type: The operating system type required by the containers in the container group. - Known values are: "Windows" and "Linux". - :vartype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes - :ivar volumes: The list of volumes that can be mounted by containers in this container group. - :vartype volumes: list[~azure.mgmt.containerinstance.models.Volume] - :ivar diagnostics: The diagnostic information for a container group. - :vartype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". - :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority - :ivar confidential_compute_properties: The properties for confidential container group. - :vartype confidential_compute_properties: - ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :ivar security_context: The container security properties. - :vartype security_context: ~azure.mgmt.containerinstance.models.SecurityContextDefinition - :ivar revision: Container group profile current revision number. - :vartype revision: int - :ivar registered_revisions: Registered revisions are calculated at request time based off the - records in the table logs. - :vartype registered_revisions: list[int] - :ivar use_krypton: Gets or sets Krypton use property. - :vartype use_krypton: bool - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "revision": {"readonly": True}, - "registered_revisions": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "zones": {"key": "zones", "type": "[str]"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "sku": {"key": "properties.sku", "type": "str"}, - "encryption_properties": {"key": "properties.encryptionProperties", "type": "EncryptionProperties"}, - "containers": {"key": "properties.containers", "type": "[Container]"}, - "init_containers": {"key": "properties.initContainers", "type": "[InitContainerDefinition]"}, - "extensions": {"key": "properties.extensions", "type": "[DeploymentExtensionSpec]"}, - "image_registry_credentials": { - "key": "properties.imageRegistryCredentials", - "type": "[ImageRegistryCredential]", - }, - "restart_policy": {"key": "properties.restartPolicy", "type": "str"}, - "shutdown_grace_period": {"key": "properties.shutdownGracePeriod", "type": "iso-8601"}, - "ip_address": {"key": "properties.ipAddress", "type": "IpAddress"}, - "time_to_live": {"key": "properties.timeToLive", "type": "iso-8601"}, - "os_type": {"key": "properties.osType", "type": "str"}, - "volumes": {"key": "properties.volumes", "type": "[Volume]"}, - "diagnostics": {"key": "properties.diagnostics", "type": "ContainerGroupDiagnostics"}, - "priority": {"key": "properties.priority", "type": "str"}, - "confidential_compute_properties": { - "key": "properties.confidentialComputeProperties", - "type": "ConfidentialComputeProperties", - }, - "security_context": {"key": "properties.securityContext", "type": "SecurityContextDefinition"}, - "revision": {"key": "properties.revision", "type": "int"}, - "registered_revisions": {"key": "properties.registeredRevisions", "type": "[int]"}, - "use_krypton": {"key": "properties.useKrypton", "type": "bool"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - location: Optional[str] = None, - tags: Optional[dict[str, str]] = None, - zones: Optional[list[str]] = None, - sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, - encryption_properties: Optional["_models.EncryptionProperties"] = None, - containers: Optional[list["_models.Container"]] = None, - init_containers: Optional[list["_models.InitContainerDefinition"]] = None, - extensions: Optional[list["_models.DeploymentExtensionSpec"]] = None, - image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = None, - restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, - shutdown_grace_period: Optional[datetime.datetime] = None, - ip_address: Optional["_models.IpAddress"] = None, - time_to_live: Optional[datetime.datetime] = None, - os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - volumes: Optional[list["_models.Volume"]] = None, - diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, - priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, - confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, - security_context: Optional["_models.SecurityContextDefinition"] = None, - use_krypton: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The resource location. - :paramtype location: str - :keyword tags: The resource tags. - :paramtype tags: dict[str, str] - :keyword zones: The zones for the container group. - :paramtype zones: list[str] - :keyword sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", - "Dedicated", and "Confidential". - :paramtype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :keyword encryption_properties: The encryption properties for a container group. - :paramtype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :keyword containers: The containers within the container group. - :paramtype containers: list[~azure.mgmt.containerinstance.models.Container] - :keyword init_containers: The init containers for a container group. - :paramtype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :keyword extensions: extensions used by virtual kubelet. - :paramtype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] - :keyword image_registry_credentials: The image registry credentials by which the container - group is created from. - :paramtype image_registry_credentials: - list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] - :keyword restart_policy: Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". - :paramtype restart_policy: str or - ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy - :keyword shutdown_grace_period: Shutdown grace period for containers in a container group. - :paramtype shutdown_grace_period: ~datetime.datetime - :keyword ip_address: The IP address type of the container group. - :paramtype ip_address: ~azure.mgmt.containerinstance.models.IpAddress - :keyword time_to_live: Post completion time to live for containers of a CG. - :paramtype time_to_live: ~datetime.datetime - :keyword os_type: The operating system type required by the containers in the container group. - Known values are: "Windows" and "Linux". - :paramtype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes - :keyword volumes: The list of volumes that can be mounted by containers in this container - group. - :paramtype volumes: list[~azure.mgmt.containerinstance.models.Volume] - :keyword diagnostics: The diagnostic information for a container group. - :paramtype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :keyword priority: The priority of the container group. Known values are: "Regular" and "Spot". - :paramtype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority - :keyword confidential_compute_properties: The properties for confidential container group. - :paramtype confidential_compute_properties: - ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :keyword security_context: The container security properties. - :paramtype security_context: ~azure.mgmt.containerinstance.models.SecurityContextDefinition - :keyword use_krypton: Gets or sets Krypton use property. - :paramtype use_krypton: bool - """ - super().__init__(location=location, tags=tags, zones=zones, **kwargs) - self.system_data: Optional["_models.SystemData"] = None - self.sku = sku - self.encryption_properties = encryption_properties - self.containers = containers - self.init_containers = init_containers - self.extensions = extensions - self.image_registry_credentials = image_registry_credentials - self.restart_policy = restart_policy - self.shutdown_grace_period = shutdown_grace_period - self.ip_address = ip_address - self.time_to_live = time_to_live - self.os_type = os_type - self.volumes = volumes - self.diagnostics = diagnostics - self.priority = priority - self.confidential_compute_properties = confidential_compute_properties - self.security_context = security_context - self.revision: Optional[int] = None - self.registered_revisions: Optional[list[int]] = None - self.use_krypton = use_krypton - - -class ContainerGroupProfileListResult(_serialization.Model): - """The container group profile list response. - - :ivar value: The list of ContainerGroupProfiles under a subscription or resource group. - :vartype value: list[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :ivar next_link: The URI to fetch the next page of Container Group Profiles. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ContainerGroupProfile]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[list["_models.ContainerGroupProfile"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The list of ContainerGroupProfiles under a subscription or resource group. - :paramtype value: list[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :keyword next_link: The URI to fetch the next page of Container Group Profiles. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ContainerGroupProfilePatch(_serialization.Model): - """Properties of container group profile that need to be patched. - - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - """ - - _attribute_map = { - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.tags = tags - - -class ContainerGroupProfileReferenceDefinition(_serialization.Model): - """The container group profile reference. - - :ivar 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}'. - :vartype id: str - :ivar revision: The container group profile reference revision. - :vartype revision: int - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "revision": {"key": "revision", "type": "int"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - revision: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword 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}'. - :paramtype id: str - :keyword revision: The container group profile reference revision. - :paramtype revision: int - """ - super().__init__(**kwargs) - self.id = id - self.revision = revision - - -class ContainerGroupProfileStub(_serialization.Model): - """The object that contains a reference to a Container Group Profile and it's other related - properties. - - :ivar resource: A reference to the container group profile ARM resource hosted in ACI RP. - :vartype resource: ~azure.mgmt.containerinstance.models.ApiEntityReference - :ivar revision: The revision of the CG profile is an optional property. If customer does not to - provide a revision then NGroups will pickup the latest revision of CGProfile. - :vartype revision: int - :ivar network_profile: A network profile for network settings of a ContainerGroupProfile. - :vartype network_profile: ~azure.mgmt.containerinstance.models.NetworkProfile - :ivar storage_profile: Storage profile for storage related settings of a container group - profile. - :vartype storage_profile: ~azure.mgmt.containerinstance.models.StorageProfile - :ivar container_group_properties: Container Group properties which can be set while creating or - updating the NGroups. - :vartype container_group_properties: - ~azure.mgmt.containerinstance.models.NGroupContainerGroupProperties - """ - - _attribute_map = { - "resource": {"key": "resource", "type": "ApiEntityReference"}, - "revision": {"key": "revision", "type": "int"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "storage_profile": {"key": "storageProfile", "type": "StorageProfile"}, - "container_group_properties": {"key": "containerGroupProperties", "type": "NGroupContainerGroupProperties"}, - } - - def __init__( - self, - *, - resource: Optional["_models.ApiEntityReference"] = None, - revision: Optional[int] = None, - network_profile: Optional["_models.NetworkProfile"] = None, - storage_profile: Optional["_models.StorageProfile"] = None, - container_group_properties: Optional["_models.NGroupContainerGroupProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource: A reference to the container group profile ARM resource hosted in ACI RP. - :paramtype resource: ~azure.mgmt.containerinstance.models.ApiEntityReference - :keyword revision: The revision of the CG profile is an optional property. If customer does not - to provide a revision then NGroups will pickup the latest revision of CGProfile. - :paramtype revision: int - :keyword network_profile: A network profile for network settings of a ContainerGroupProfile. - :paramtype network_profile: ~azure.mgmt.containerinstance.models.NetworkProfile - :keyword storage_profile: Storage profile for storage related settings of a container group - profile. - :paramtype storage_profile: ~azure.mgmt.containerinstance.models.StorageProfile - :keyword container_group_properties: Container Group properties which can be set while creating - or updating the NGroups. - :paramtype container_group_properties: - ~azure.mgmt.containerinstance.models.NGroupContainerGroupProperties - """ - super().__init__(**kwargs) - self.resource = resource - self.revision = revision - self.network_profile = network_profile - self.storage_profile = storage_profile - self.container_group_properties = container_group_properties - - -class ContainerGroupPropertiesInstanceView(_serialization.Model): - """The instance view of the container group. Only valid in response. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar events: The events of this container group. - :vartype events: list[~azure.mgmt.containerinstance.models.Event] - :ivar state: The state of the container group. Only valid in response. - :vartype state: str - """ - - _validation = { - "events": {"readonly": True}, - "state": {"readonly": True}, - } - - _attribute_map = { - "events": {"key": "events", "type": "[Event]"}, - "state": {"key": "state", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.events: Optional[list["_models.Event"]] = None - self.state: Optional[str] = None - - -class ContainerGroupSubnetId(_serialization.Model): - """Container group subnet information. - - All required parameters must be populated in order to send to server. - - :ivar id: Resource ID of virtual network and subnet. Required. - :vartype id: str - :ivar name: Friendly name for the subnet. - :vartype name: str - """ - - _validation = { - "id": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__( - self, *, id: str, name: Optional[str] = None, **kwargs: Any # pylint: disable=redefined-builtin - ) -> None: - """ - :keyword id: Resource ID of virtual network and subnet. Required. - :paramtype id: str - :keyword name: Friendly name for the subnet. - :paramtype name: str - """ - super().__init__(**kwargs) - self.id = id - self.name = name - - -class ContainerHttpGet(_serialization.Model): - """The container Http Get settings, for liveness or readiness probe. - - All required parameters must be populated in order to send to server. - - :ivar path: The path to probe. - :vartype path: str - :ivar port: The port number to probe. Required. - :vartype port: int - :ivar scheme: The scheme. Known values are: "http" and "https". - :vartype scheme: str or ~azure.mgmt.containerinstance.models.Scheme - :ivar http_headers: The HTTP headers. - :vartype http_headers: list[~azure.mgmt.containerinstance.models.HttpHeader] - """ - - _validation = { - "port": {"required": True}, - } - - _attribute_map = { - "path": {"key": "path", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "scheme": {"key": "scheme", "type": "str"}, - "http_headers": {"key": "httpHeaders", "type": "[HttpHeader]"}, - } - - def __init__( - self, - *, - port: int, - path: Optional[str] = None, - scheme: Optional[Union[str, "_models.Scheme"]] = None, - http_headers: Optional[list["_models.HttpHeader"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword path: The path to probe. - :paramtype path: str - :keyword port: The port number to probe. Required. - :paramtype port: int - :keyword scheme: The scheme. Known values are: "http" and "https". - :paramtype scheme: str or ~azure.mgmt.containerinstance.models.Scheme - :keyword http_headers: The HTTP headers. - :paramtype http_headers: list[~azure.mgmt.containerinstance.models.HttpHeader] - """ - super().__init__(**kwargs) - self.path = path - self.port = port - self.scheme = scheme - self.http_headers = http_headers - - -class ContainerPort(_serialization.Model): - """The port exposed on the container instance. - - All required parameters must be populated in order to send to server. - - :ivar protocol: The protocol associated with the port. Known values are: "TCP" and "UDP". - :vartype protocol: str or ~azure.mgmt.containerinstance.models.ContainerNetworkProtocol - :ivar port: The port number exposed within the container group. Required. - :vartype port: int - """ - - _validation = { - "port": {"required": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - } - - def __init__( - self, *, port: int, protocol: Optional[Union[str, "_models.ContainerNetworkProtocol"]] = None, **kwargs: Any - ) -> None: - """ - :keyword protocol: The protocol associated with the port. Known values are: "TCP" and "UDP". - :paramtype protocol: str or ~azure.mgmt.containerinstance.models.ContainerNetworkProtocol - :keyword port: The port number exposed within the container group. Required. - :paramtype port: int - """ - super().__init__(**kwargs) - self.protocol = protocol - self.port = port - - -class ContainerProbe(_serialization.Model): - """The container probe, for liveness or readiness. - - :ivar exec_property: The execution command to probe. - :vartype exec_property: ~azure.mgmt.containerinstance.models.ContainerExec - :ivar http_get: The Http Get settings to probe. - :vartype http_get: ~azure.mgmt.containerinstance.models.ContainerHttpGet - :ivar initial_delay_seconds: The initial delay seconds. - :vartype initial_delay_seconds: int - :ivar period_seconds: The period seconds. - :vartype period_seconds: int - :ivar failure_threshold: The failure threshold. - :vartype failure_threshold: int - :ivar success_threshold: The success threshold. - :vartype success_threshold: int - :ivar timeout_seconds: The timeout seconds. - :vartype timeout_seconds: int - """ - - _attribute_map = { - "exec_property": {"key": "exec", "type": "ContainerExec"}, - "http_get": {"key": "httpGet", "type": "ContainerHttpGet"}, - "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, - "period_seconds": {"key": "periodSeconds", "type": "int"}, - "failure_threshold": {"key": "failureThreshold", "type": "int"}, - "success_threshold": {"key": "successThreshold", "type": "int"}, - "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, - } - - def __init__( - self, - *, - exec_property: Optional["_models.ContainerExec"] = None, - http_get: Optional["_models.ContainerHttpGet"] = None, - initial_delay_seconds: Optional[int] = None, - period_seconds: Optional[int] = None, - failure_threshold: Optional[int] = None, - success_threshold: Optional[int] = None, - timeout_seconds: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword exec_property: The execution command to probe. - :paramtype exec_property: ~azure.mgmt.containerinstance.models.ContainerExec - :keyword http_get: The Http Get settings to probe. - :paramtype http_get: ~azure.mgmt.containerinstance.models.ContainerHttpGet - :keyword initial_delay_seconds: The initial delay seconds. - :paramtype initial_delay_seconds: int - :keyword period_seconds: The period seconds. - :paramtype period_seconds: int - :keyword failure_threshold: The failure threshold. - :paramtype failure_threshold: int - :keyword success_threshold: The success threshold. - :paramtype success_threshold: int - :keyword timeout_seconds: The timeout seconds. - :paramtype timeout_seconds: int - """ - super().__init__(**kwargs) - self.exec_property = exec_property - self.http_get = http_get - self.initial_delay_seconds = initial_delay_seconds - self.period_seconds = period_seconds - self.failure_threshold = failure_threshold - self.success_threshold = success_threshold - self.timeout_seconds = timeout_seconds - - -class ContainerPropertiesInstanceView(_serialization.Model): - """The instance view of the container instance. Only valid in response. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar restart_count: The number of times that the container instance has been restarted. - :vartype restart_count: int - :ivar current_state: Current container instance state. - :vartype current_state: ~azure.mgmt.containerinstance.models.ContainerState - :ivar previous_state: Previous container instance state. - :vartype previous_state: ~azure.mgmt.containerinstance.models.ContainerState - :ivar events: The events of the container instance. - :vartype events: list[~azure.mgmt.containerinstance.models.Event] - """ - - _validation = { - "restart_count": {"readonly": True}, - "current_state": {"readonly": True}, - "previous_state": {"readonly": True}, - "events": {"readonly": True}, - } - - _attribute_map = { - "restart_count": {"key": "restartCount", "type": "int"}, - "current_state": {"key": "currentState", "type": "ContainerState"}, - "previous_state": {"key": "previousState", "type": "ContainerState"}, - "events": {"key": "events", "type": "[Event]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.restart_count: Optional[int] = None - self.current_state: Optional["_models.ContainerState"] = None - self.previous_state: Optional["_models.ContainerState"] = None - self.events: Optional[list["_models.Event"]] = None - - -class ContainerState(_serialization.Model): - """The container instance state. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar state: The state of the container instance. - :vartype state: str - :ivar start_time: The date-time when the container instance state started. - :vartype start_time: ~datetime.datetime - :ivar exit_code: The container instance exit codes correspond to those from the ``docker run`` - command. - :vartype exit_code: int - :ivar finish_time: The date-time when the container instance state finished. - :vartype finish_time: ~datetime.datetime - :ivar detail_status: The human-readable status of the container instance state. - :vartype detail_status: str - """ - - _validation = { - "state": {"readonly": True}, - "start_time": {"readonly": True}, - "exit_code": {"readonly": True}, - "finish_time": {"readonly": True}, - "detail_status": {"readonly": True}, - } - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "start_time": {"key": "startTime", "type": "iso-8601"}, - "exit_code": {"key": "exitCode", "type": "int"}, - "finish_time": {"key": "finishTime", "type": "iso-8601"}, - "detail_status": {"key": "detailStatus", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.state: Optional[str] = None - self.start_time: Optional[datetime.datetime] = None - self.exit_code: Optional[int] = None - self.finish_time: Optional[datetime.datetime] = None - self.detail_status: Optional[str] = None - - -class DeploymentExtensionSpec(_serialization.Model): - """Extension sidecars to be added to the deployment. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the extension. Required. - :vartype name: str - :ivar extension_type: Type of extension to be added. - :vartype extension_type: str - :ivar version: Version of the extension being used. - :vartype version: str - :ivar settings: Settings for the extension. - :vartype settings: JSON - :ivar protected_settings: Protected settings for the extension. - :vartype protected_settings: JSON - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "extension_type": {"key": "properties.extensionType", "type": "str"}, - "version": {"key": "properties.version", "type": "str"}, - "settings": {"key": "properties.settings", "type": "object"}, - "protected_settings": {"key": "properties.protectedSettings", "type": "object"}, - } - - def __init__( - self, - *, - name: str, - extension_type: Optional[str] = None, - version: Optional[str] = None, - settings: Optional[JSON] = None, - protected_settings: Optional[JSON] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the extension. Required. - :paramtype name: str - :keyword extension_type: Type of extension to be added. - :paramtype extension_type: str - :keyword version: Version of the extension being used. - :paramtype version: str - :keyword settings: Settings for the extension. - :paramtype settings: JSON - :keyword protected_settings: Protected settings for the extension. - :paramtype protected_settings: JSON - """ - super().__init__(**kwargs) - self.name = name - self.extension_type = extension_type - self.version = version - self.settings = settings - self.protected_settings = protected_settings - - -class DnsConfiguration(_serialization.Model): - """DNS configuration for the container group. - - All required parameters must be populated in order to send to server. - - :ivar name_servers: The DNS servers for the container group. Required. - :vartype name_servers: list[str] - :ivar search_domains: The DNS search domains for hostname lookup in the container group. - :vartype search_domains: str - :ivar options: The DNS options for the container group. - :vartype options: str - """ - - _validation = { - "name_servers": {"required": True}, - } - - _attribute_map = { - "name_servers": {"key": "nameServers", "type": "[str]"}, - "search_domains": {"key": "searchDomains", "type": "str"}, - "options": {"key": "options", "type": "str"}, - } - - def __init__( - self, - *, - name_servers: list[str], - search_domains: Optional[str] = None, - options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_servers: The DNS servers for the container group. Required. - :paramtype name_servers: list[str] - :keyword search_domains: The DNS search domains for hostname lookup in the container group. - :paramtype search_domains: str - :keyword options: The DNS options for the container group. - :paramtype options: str - """ - super().__init__(**kwargs) - self.name_servers = name_servers - self.search_domains = search_domains - self.options = options - - -class ElasticProfile(_serialization.Model): - """Describes the elastic profile of the NGroup. - - :ivar desired_count: - :vartype desired_count: int - :ivar maintain_desired_count: Flag that indicates whether desiredCount should be maintained - when customer deletes SPECIFIC container groups (CGs) from the NGroups. In this case, new CGs - will be created by NGroup to compensate for the specific deleted ones. - :vartype maintain_desired_count: bool - :ivar container_group_naming_policy: Container Groups are named on a generic guid based naming - scheme/policy. Customer can modify naming policy to add prefix to CG names during scale out - operation. - :vartype container_group_naming_policy: - ~azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicy - """ - - _attribute_map = { - "desired_count": {"key": "desiredCount", "type": "int"}, - "maintain_desired_count": {"key": "maintainDesiredCount", "type": "bool"}, - "container_group_naming_policy": { - "key": "containerGroupNamingPolicy", - "type": "ElasticProfileContainerGroupNamingPolicy", - }, - } - - def __init__( - self, - *, - desired_count: Optional[int] = None, - maintain_desired_count: Optional[bool] = None, - container_group_naming_policy: Optional["_models.ElasticProfileContainerGroupNamingPolicy"] = None, - **kwargs: Any - ) -> None: - """ - :keyword desired_count: - :paramtype desired_count: int - :keyword maintain_desired_count: Flag that indicates whether desiredCount should be maintained - when customer deletes SPECIFIC container groups (CGs) from the NGroups. In this case, new CGs - will be created by NGroup to compensate for the specific deleted ones. - :paramtype maintain_desired_count: bool - :keyword container_group_naming_policy: Container Groups are named on a generic guid based - naming scheme/policy. Customer can modify naming policy to add prefix to CG names during scale - out operation. - :paramtype container_group_naming_policy: - ~azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicy - """ - super().__init__(**kwargs) - self.desired_count = desired_count - self.maintain_desired_count = maintain_desired_count - self.container_group_naming_policy = container_group_naming_policy - - -class ElasticProfileContainerGroupNamingPolicy(_serialization.Model): - """Container Groups are named on a generic guid based naming scheme/policy. Customer can modify - naming policy to add prefix to CG names during scale out operation. - - :ivar guid_naming_policy: - :vartype guid_naming_policy: - ~azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy - """ - - _attribute_map = { - "guid_naming_policy": { - "key": "guidNamingPolicy", - "type": "ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy", - }, - } - - def __init__( - self, - *, - guid_naming_policy: Optional["_models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy"] = None, - **kwargs: Any - ) -> None: - """ - :keyword guid_naming_policy: - :paramtype guid_naming_policy: - ~azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy - """ - super().__init__(**kwargs) - self.guid_naming_policy = guid_naming_policy - - -class ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy(_serialization.Model): # pylint: disable=name-too-long - """ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy. - - :ivar prefix: The prefix can be used when there are tooling limitations (e.g. on the Azure - portal where CGs from multiple NGroups exist in the same RG). The prefix with the suffixed - resource name must still follow Azure resource naming guidelines. - :vartype prefix: str - """ - - _attribute_map = { - "prefix": {"key": "prefix", "type": "str"}, - } - - def __init__(self, *, prefix: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword prefix: The prefix can be used when there are tooling limitations (e.g. on the Azure - portal where CGs from multiple NGroups exist in the same RG). The prefix with the suffixed - resource name must still follow Azure resource naming guidelines. - :paramtype prefix: str - """ - super().__init__(**kwargs) - self.prefix = prefix - - -class EncryptionProperties(_serialization.Model): - """The container group encryption properties. - - All required parameters must be populated in order to send to server. - - :ivar vault_base_url: The keyvault base url. Required. - :vartype vault_base_url: str - :ivar key_name: The encryption key name. Required. - :vartype key_name: str - :ivar key_version: The encryption key version. Required. - :vartype key_version: str - :ivar identity: The keyvault managed identity. - :vartype identity: str - """ - - _validation = { - "vault_base_url": {"required": True}, - "key_name": {"required": True}, - "key_version": {"required": True}, - } - - _attribute_map = { - "vault_base_url": {"key": "vaultBaseUrl", "type": "str"}, - "key_name": {"key": "keyName", "type": "str"}, - "key_version": {"key": "keyVersion", "type": "str"}, - "identity": {"key": "identity", "type": "str"}, - } - - def __init__( - self, *, vault_base_url: str, key_name: str, key_version: str, identity: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword vault_base_url: The keyvault base url. Required. - :paramtype vault_base_url: str - :keyword key_name: The encryption key name. Required. - :paramtype key_name: str - :keyword key_version: The encryption key version. Required. - :paramtype key_version: str - :keyword identity: The keyvault managed identity. - :paramtype identity: str - """ - super().__init__(**kwargs) - self.vault_base_url = vault_base_url - self.key_name = key_name - self.key_version = key_version - self.identity = identity - - -class EnvironmentVariable(_serialization.Model): - """The environment variable to set within the container instance. - - All required parameters must be populated in order to send to server. - - :ivar name: The name of the environment variable. Required. - :vartype name: str - :ivar value: The value of the environment variable. - :vartype value: str - :ivar secure_value: The value of the secure environment variable. - :vartype secure_value: str - :ivar secure_value_reference: The reference of the secure environment variable. - :vartype secure_value_reference: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - "secure_value": {"key": "secureValue", "type": "str"}, - "secure_value_reference": {"key": "secureValueReference", "type": "str"}, - } - - def __init__( - self, - *, - name: str, - value: Optional[str] = None, - secure_value: Optional[str] = None, - secure_value_reference: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the environment variable. Required. - :paramtype name: str - :keyword value: The value of the environment variable. - :paramtype value: str - :keyword secure_value: The value of the secure environment variable. - :paramtype secure_value: str - :keyword secure_value_reference: The reference of the secure environment variable. - :paramtype secure_value_reference: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - self.secure_value = secure_value - self.secure_value_reference = secure_value_reference - - -class ErrorAdditionalInfo(_serialization.Model): - """The resource management error additional info. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: JSON - """ - - _validation = { - "type": {"readonly": True}, - "info": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "info": {"key": "info", "type": "object"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.info: Optional[JSON] = None - - -class ErrorDetail(_serialization.Model): - """The error detail. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: list[~azure.mgmt.containerinstance.models.ErrorDetail] - :ivar additional_info: The error additional info. - :vartype additional_info: list[~azure.mgmt.containerinstance.models.ErrorAdditionalInfo] - """ - - _validation = { - "code": {"readonly": True}, - "message": {"readonly": True}, - "target": {"readonly": True}, - "details": {"readonly": True}, - "additional_info": {"readonly": True}, - } - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[ErrorDetail]"}, - "additional_info": {"key": "additionalInfo", "type": "[ErrorAdditionalInfo]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.code: Optional[str] = None - self.message: Optional[str] = None - self.target: Optional[str] = None - self.details: Optional[list["_models.ErrorDetail"]] = None - self.additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = None - - -class ErrorResponse(_serialization.Model): - """Common error response for all Azure Resource Manager APIs to return error details for failed - operations. (This also follows the OData error response format.). - - :ivar error: The error object. - :vartype error: ~azure.mgmt.containerinstance.models.ErrorDetail - """ - - _attribute_map = { - "error": {"key": "error", "type": "ErrorDetail"}, - } - - def __init__(self, *, error: Optional["_models.ErrorDetail"] = None, **kwargs: Any) -> None: - """ - :keyword error: The error object. - :paramtype error: ~azure.mgmt.containerinstance.models.ErrorDetail - """ - super().__init__(**kwargs) - self.error = error - - -class Event(_serialization.Model): - """A container group or container instance event. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar count: The count of the event. - :vartype count: int - :ivar first_timestamp: The date-time of the earliest logged event. - :vartype first_timestamp: ~datetime.datetime - :ivar last_timestamp: The date-time of the latest logged event. - :vartype last_timestamp: ~datetime.datetime - :ivar name: The event name. - :vartype name: str - :ivar message: The event message. - :vartype message: str - :ivar type: The event type. - :vartype type: str - """ - - _validation = { - "count": {"readonly": True}, - "first_timestamp": {"readonly": True}, - "last_timestamp": {"readonly": True}, - "name": {"readonly": True}, - "message": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "count": {"key": "count", "type": "int"}, - "first_timestamp": {"key": "firstTimestamp", "type": "iso-8601"}, - "last_timestamp": {"key": "lastTimestamp", "type": "iso-8601"}, - "name": {"key": "name", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.count: Optional[int] = None - self.first_timestamp: Optional[datetime.datetime] = None - self.last_timestamp: Optional[datetime.datetime] = None - self.name: Optional[str] = None - self.message: Optional[str] = None - self.type: Optional[str] = None - - -class FileShare(_serialization.Model): - """File shares that can be mounted on container groups. - - :ivar name: - :vartype name: str - :ivar resource_group_name: - :vartype resource_group_name: str - :ivar storage_account_name: - :vartype storage_account_name: str - :ivar properties: - :vartype properties: ~azure.mgmt.containerinstance.models.FileShareProperties - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_group_name": {"key": "resourceGroupName", "type": "str"}, - "storage_account_name": {"key": "storageAccountName", "type": "str"}, - "properties": {"key": "properties", "type": "FileShareProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - resource_group_name: Optional[str] = None, - storage_account_name: Optional[str] = None, - properties: Optional["_models.FileShareProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: - :paramtype name: str - :keyword resource_group_name: - :paramtype resource_group_name: str - :keyword storage_account_name: - :paramtype storage_account_name: str - :keyword properties: - :paramtype properties: ~azure.mgmt.containerinstance.models.FileShareProperties - """ - super().__init__(**kwargs) - self.name = name - self.resource_group_name = resource_group_name - self.storage_account_name = storage_account_name - self.properties = properties - - -class FileShareProperties(_serialization.Model): - """FileShareProperties. - - :ivar share_access_type: Specifies how Container Groups can access the Azure file share i.e. - all CG will share same Azure file share or going to have exclusive file share. Known values - are: "Shared" and "Exclusive". - :vartype share_access_type: str or - ~azure.mgmt.containerinstance.models.AzureFileShareAccessType - :ivar share_access_tier: Access tier for specific share. GpV2 account can choose between - TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Learn - more at: - https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP#shareaccesstier. - Known values are: "Cool", "Hot", "Premium", and "TransactionOptimized". - :vartype share_access_tier: str or - ~azure.mgmt.containerinstance.models.AzureFileShareAccessTier - """ - - _attribute_map = { - "share_access_type": {"key": "shareAccessType", "type": "str"}, - "share_access_tier": {"key": "shareAccessTier", "type": "str"}, - } - - def __init__( - self, - *, - share_access_type: Optional[Union[str, "_models.AzureFileShareAccessType"]] = None, - share_access_tier: Union[str, "_models.AzureFileShareAccessTier"] = "TransactionOptimized", - **kwargs: Any - ) -> None: - """ - :keyword share_access_type: Specifies how Container Groups can access the Azure file share i.e. - all CG will share same Azure file share or going to have exclusive file share. Known values - are: "Shared" and "Exclusive". - :paramtype share_access_type: str or - ~azure.mgmt.containerinstance.models.AzureFileShareAccessType - :keyword share_access_tier: Access tier for specific share. GpV2 account can choose between - TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Learn - more at: - https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP#shareaccesstier. - Known values are: "Cool", "Hot", "Premium", and "TransactionOptimized". - :paramtype share_access_tier: str or - ~azure.mgmt.containerinstance.models.AzureFileShareAccessTier - """ - super().__init__(**kwargs) - self.share_access_type = share_access_type - self.share_access_tier = share_access_tier - - -class GitRepoVolume(_serialization.Model): - """Represents a volume that is populated with the contents of a git repository. - - All required parameters must be populated in order to send to server. - - :ivar directory: 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. - :vartype directory: str - :ivar repository: Repository URL. Required. - :vartype repository: str - :ivar revision: Commit hash for the specified revision. - :vartype revision: str - """ - - _validation = { - "repository": {"required": True}, - } - - _attribute_map = { - "directory": {"key": "directory", "type": "str"}, - "repository": {"key": "repository", "type": "str"}, - "revision": {"key": "revision", "type": "str"}, - } - - def __init__( - self, *, repository: str, directory: Optional[str] = None, revision: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword directory: 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. - :paramtype directory: str - :keyword repository: Repository URL. Required. - :paramtype repository: str - :keyword revision: Commit hash for the specified revision. - :paramtype revision: str - """ - super().__init__(**kwargs) - self.directory = directory - self.repository = repository - self.revision = revision - - -class GpuResource(_serialization.Model): - """The GPU resource. - - All required parameters must be populated in order to send to server. - - :ivar count: The count of the GPU resource. Required. - :vartype count: int - :ivar sku: The SKU of the GPU resource. Required. Known values are: "K80", "P100", and "V100". - :vartype sku: str or ~azure.mgmt.containerinstance.models.GpuSku - """ - - _validation = { - "count": {"required": True}, - "sku": {"required": True}, - } - - _attribute_map = { - "count": {"key": "count", "type": "int"}, - "sku": {"key": "sku", "type": "str"}, - } - - def __init__(self, *, count: int, sku: Union[str, "_models.GpuSku"], **kwargs: Any) -> None: - """ - :keyword count: The count of the GPU resource. Required. - :paramtype count: int - :keyword sku: The SKU of the GPU resource. Required. Known values are: "K80", "P100", and - "V100". - :paramtype sku: str or ~azure.mgmt.containerinstance.models.GpuSku - """ - super().__init__(**kwargs) - self.count = count - self.sku = sku - - -class HttpHeader(_serialization.Model): - """The HTTP header. - - :ivar name: The header name. - :vartype name: str - :ivar value: The header value. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The header name. - :paramtype name: str - :keyword value: The header value. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class IdentityAccessControl(_serialization.Model): - """The access control for an identity. - - :ivar access: The access level of the identity. Known values are: "All", "System", and "User". - :vartype access: str or ~azure.mgmt.containerinstance.models.IdentityAccessLevel - :ivar identity: An identity. - :vartype identity: str - """ - - _attribute_map = { - "access": {"key": "access", "type": "str"}, - "identity": {"key": "identity", "type": "str"}, - } - - def __init__( - self, - *, - access: Optional[Union[str, "_models.IdentityAccessLevel"]] = None, - identity: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword access: The access level of the identity. Known values are: "All", "System", and - "User". - :paramtype access: str or ~azure.mgmt.containerinstance.models.IdentityAccessLevel - :keyword identity: An identity. - :paramtype identity: str - """ - super().__init__(**kwargs) - self.access = access - self.identity = identity - - -class IdentityAcls(_serialization.Model): - """The access control levels of the identities. - - :ivar default_access: The default access level. Known values are: "All", "System", and "User". - :vartype default_access: str or ~azure.mgmt.containerinstance.models.IdentityAccessLevel - :ivar acls: The access control levels for each identity. - :vartype acls: list[~azure.mgmt.containerinstance.models.IdentityAccessControl] - """ - - _attribute_map = { - "default_access": {"key": "defaultAccess", "type": "str"}, - "acls": {"key": "acls", "type": "[IdentityAccessControl]"}, - } - - def __init__( - self, - *, - default_access: Optional[Union[str, "_models.IdentityAccessLevel"]] = None, - acls: Optional[list["_models.IdentityAccessControl"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword default_access: The default access level. Known values are: "All", "System", and - "User". - :paramtype default_access: str or ~azure.mgmt.containerinstance.models.IdentityAccessLevel - :keyword acls: The access control levels for each identity. - :paramtype acls: list[~azure.mgmt.containerinstance.models.IdentityAccessControl] - """ - super().__init__(**kwargs) - self.default_access = default_access - self.acls = acls - - -class ImageRegistryCredential(_serialization.Model): - """Image registry credential. - - All required parameters must be populated in order to send to server. - - :ivar server: The Docker image registry server without a protocol such as "http" and "https". - Required. - :vartype server: str - :ivar username: The username for the private registry. - :vartype username: str - :ivar password: The password for the private registry. - :vartype password: str - :ivar password_reference: The reference for the private registry password. - :vartype password_reference: str - :ivar identity: The identity for the private registry. - :vartype identity: str - :ivar identity_url: The identity URL for the private registry. - :vartype identity_url: str - """ - - _validation = { - "server": {"required": True}, - } - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "password_reference": {"key": "passwordReference", "type": "str"}, - "identity": {"key": "identity", "type": "str"}, - "identity_url": {"key": "identityUrl", "type": "str"}, - } - - def __init__( - self, - *, - server: str, - username: Optional[str] = None, - password: Optional[str] = None, - password_reference: Optional[str] = None, - identity: Optional[str] = None, - identity_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The Docker image registry server without a protocol such as "http" and - "https". Required. - :paramtype server: str - :keyword username: The username for the private registry. - :paramtype username: str - :keyword password: The password for the private registry. - :paramtype password: str - :keyword password_reference: The reference for the private registry password. - :paramtype password_reference: str - :keyword identity: The identity for the private registry. - :paramtype identity: str - :keyword identity_url: The identity URL for the private registry. - :paramtype identity_url: str - """ - super().__init__(**kwargs) - self.server = server - self.username = username - self.password = password - self.password_reference = password_reference - self.identity = identity - self.identity_url = identity_url - - -class InitContainerDefinition(_serialization.Model): - """The init container definition. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar name: The name for the init container. Required. - :vartype name: str - :ivar image: The image of the init container. - :vartype image: str - :ivar command: The command to execute within the init container in exec form. - :vartype command: list[str] - :ivar environment_variables: The environment variables to set in the init container. - :vartype environment_variables: list[~azure.mgmt.containerinstance.models.EnvironmentVariable] - :ivar instance_view: The instance view of the init container. Only valid in response. - :vartype instance_view: - ~azure.mgmt.containerinstance.models.InitContainerPropertiesDefinitionInstanceView - :ivar volume_mounts: The volume mounts available to the init container. - :vartype volume_mounts: list[~azure.mgmt.containerinstance.models.VolumeMount] - :ivar security_context: The container security properties. - :vartype security_context: ~azure.mgmt.containerinstance.models.SecurityContextDefinition - """ - - _validation = { - "name": {"required": True}, - "instance_view": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "image": {"key": "properties.image", "type": "str"}, - "command": {"key": "properties.command", "type": "[str]"}, - "environment_variables": {"key": "properties.environmentVariables", "type": "[EnvironmentVariable]"}, - "instance_view": {"key": "properties.instanceView", "type": "InitContainerPropertiesDefinitionInstanceView"}, - "volume_mounts": {"key": "properties.volumeMounts", "type": "[VolumeMount]"}, - "security_context": {"key": "properties.securityContext", "type": "SecurityContextDefinition"}, - } - - def __init__( - self, - *, - name: str, - image: Optional[str] = None, - command: Optional[list[str]] = None, - environment_variables: Optional[list["_models.EnvironmentVariable"]] = None, - volume_mounts: Optional[list["_models.VolumeMount"]] = None, - security_context: Optional["_models.SecurityContextDefinition"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name for the init container. Required. - :paramtype name: str - :keyword image: The image of the init container. - :paramtype image: str - :keyword command: The command to execute within the init container in exec form. - :paramtype command: list[str] - :keyword environment_variables: The environment variables to set in the init container. - :paramtype environment_variables: - list[~azure.mgmt.containerinstance.models.EnvironmentVariable] - :keyword volume_mounts: The volume mounts available to the init container. - :paramtype volume_mounts: list[~azure.mgmt.containerinstance.models.VolumeMount] - :keyword security_context: The container security properties. - :paramtype security_context: ~azure.mgmt.containerinstance.models.SecurityContextDefinition - """ - super().__init__(**kwargs) - self.name = name - self.image = image - self.command = command - self.environment_variables = environment_variables - self.instance_view: Optional["_models.InitContainerPropertiesDefinitionInstanceView"] = None - self.volume_mounts = volume_mounts - self.security_context = security_context - - -class InitContainerPropertiesDefinitionInstanceView(_serialization.Model): # pylint: disable=name-too-long - """The instance view of the init container. Only valid in response. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar restart_count: The number of times that the init container has been restarted. - :vartype restart_count: int - :ivar current_state: The current state of the init container. - :vartype current_state: ~azure.mgmt.containerinstance.models.ContainerState - :ivar previous_state: The previous state of the init container. - :vartype previous_state: ~azure.mgmt.containerinstance.models.ContainerState - :ivar events: The events of the init container. - :vartype events: list[~azure.mgmt.containerinstance.models.Event] - """ - - _validation = { - "restart_count": {"readonly": True}, - "current_state": {"readonly": True}, - "previous_state": {"readonly": True}, - "events": {"readonly": True}, - } - - _attribute_map = { - "restart_count": {"key": "restartCount", "type": "int"}, - "current_state": {"key": "currentState", "type": "ContainerState"}, - "previous_state": {"key": "previousState", "type": "ContainerState"}, - "events": {"key": "events", "type": "[Event]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.restart_count: Optional[int] = None - self.current_state: Optional["_models.ContainerState"] = None - self.previous_state: Optional["_models.ContainerState"] = None - self.events: Optional[list["_models.Event"]] = None - - -class IpAddress(_serialization.Model): - """IP address for the container group. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar ports: The list of ports exposed on the container group. Required. - :vartype ports: list[~azure.mgmt.containerinstance.models.Port] - :ivar type: Specifies if the IP is exposed to the public internet or private VNET. Required. - Known values are: "Public" and "Private". - :vartype type: str or ~azure.mgmt.containerinstance.models.ContainerGroupIpAddressType - :ivar ip: The IP exposed to the public internet. - :vartype ip: str - :ivar dns_name_label: The Dns name label for the IP. - :vartype dns_name_label: str - :ivar auto_generated_domain_name_label_scope: 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. Known values are: - "Unsecure", "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "Noreuse". - :vartype auto_generated_domain_name_label_scope: str or - ~azure.mgmt.containerinstance.models.DnsNameLabelReusePolicy - :ivar fqdn: The FQDN for the IP. - :vartype fqdn: str - """ - - _validation = { - "ports": {"required": True}, - "type": {"required": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "ports": {"key": "ports", "type": "[Port]"}, - "type": {"key": "type", "type": "str"}, - "ip": {"key": "ip", "type": "str"}, - "dns_name_label": {"key": "dnsNameLabel", "type": "str"}, - "auto_generated_domain_name_label_scope": {"key": "autoGeneratedDomainNameLabelScope", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - } - - def __init__( - self, - *, - ports: list["_models.Port"], - type: Union[str, "_models.ContainerGroupIpAddressType"], - ip: Optional[str] = None, - dns_name_label: Optional[str] = None, - auto_generated_domain_name_label_scope: Union[str, "_models.DnsNameLabelReusePolicy"] = "Unsecure", - **kwargs: Any - ) -> None: - """ - :keyword ports: The list of ports exposed on the container group. Required. - :paramtype ports: list[~azure.mgmt.containerinstance.models.Port] - :keyword type: Specifies if the IP is exposed to the public internet or private VNET. Required. - Known values are: "Public" and "Private". - :paramtype type: str or ~azure.mgmt.containerinstance.models.ContainerGroupIpAddressType - :keyword ip: The IP exposed to the public internet. - :paramtype ip: str - :keyword dns_name_label: The Dns name label for the IP. - :paramtype dns_name_label: str - :keyword auto_generated_domain_name_label_scope: 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. Known values are: - "Unsecure", "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "Noreuse". - :paramtype auto_generated_domain_name_label_scope: str or - ~azure.mgmt.containerinstance.models.DnsNameLabelReusePolicy - """ - super().__init__(**kwargs) - self.ports = ports - self.type = type - self.ip = ip - self.dns_name_label = dns_name_label - self.auto_generated_domain_name_label_scope = auto_generated_domain_name_label_scope - self.fqdn: Optional[str] = None - - -class ListResultContainerGroupProperties(_serialization.Model): - """Properties of container group part of list result. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar identity: The identity of the container group, if configured. - :vartype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity - :ivar provisioning_state: The provisioning state of the container group. This only appears in - the response. Known values are: "NotSpecified", "Accepted", "Pending", "Updating", "Creating", - "Repairing", "Unhealthy", "Failed", "Canceled", "Succeeded", "Deleting", "NotAccessible", and - "PreProvisioned". - :vartype provisioning_state: str or - ~azure.mgmt.containerinstance.models.ContainerGroupProvisioningState - :ivar secret_references: The secret references that will be referenced within the container - group. - :vartype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] - :ivar containers: The containers within the container group. Required. - :vartype containers: list[~azure.mgmt.containerinstance.models.Container] - :ivar image_registry_credentials: The image registry credentials by which the container group - is created from. - :vartype image_registry_credentials: - list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] - :ivar restart_policy: Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". - :vartype restart_policy: str or - ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy - :ivar ip_address: The IP address type of the container group. - :vartype ip_address: ~azure.mgmt.containerinstance.models.IpAddress - :ivar os_type: The operating system type required by the containers in the container group. - Required. Known values are: "Windows" and "Linux". - :vartype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes - :ivar volumes: The list of volumes that can be mounted by containers in this container group. - :vartype volumes: list[~azure.mgmt.containerinstance.models.Volume] - :ivar diagnostics: The diagnostic information for a container group. - :vartype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :ivar subnet_ids: The subnet resource IDs for a container group. - :vartype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] - :ivar dns_config: The DNS config information for a container group. - :vartype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration - :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", - "Dedicated", and "Confidential". - :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :ivar encryption_properties: The encryption properties for a container group. - :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :ivar init_containers: The init containers for a container group. - :vartype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :ivar extensions: extensions used by virtual kubelet. - :vartype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] - :ivar confidential_compute_properties: The properties for confidential container group. - :vartype confidential_compute_properties: - ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". - :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority - :ivar identity_acls: The access control levels of the identities. - :vartype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls - :ivar container_group_profile: The reference container group profile properties. - :vartype container_group_profile: - ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition - :ivar standby_pool_profile: The reference standby pool profile properties. - :vartype standby_pool_profile: - ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition - :ivar is_created_from_standby_pool: The flag to determine whether the container group is - created from standby pool. - :vartype is_created_from_standby_pool: bool - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "containers": {"required": True}, - "os_type": {"required": True}, - "is_created_from_standby_pool": {"readonly": True}, - } - - _attribute_map = { - "identity": {"key": "identity", "type": "ContainerGroupIdentity"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "secret_references": {"key": "properties.secretReferences", "type": "[SecretReference]"}, - "containers": {"key": "properties.containers", "type": "[Container]"}, - "image_registry_credentials": { - "key": "properties.imageRegistryCredentials", - "type": "[ImageRegistryCredential]", - }, - "restart_policy": {"key": "properties.restartPolicy", "type": "str"}, - "ip_address": {"key": "properties.ipAddress", "type": "IpAddress"}, - "os_type": {"key": "properties.osType", "type": "str"}, - "volumes": {"key": "properties.volumes", "type": "[Volume]"}, - "diagnostics": {"key": "properties.diagnostics", "type": "ContainerGroupDiagnostics"}, - "subnet_ids": {"key": "properties.subnetIds", "type": "[ContainerGroupSubnetId]"}, - "dns_config": {"key": "properties.dnsConfig", "type": "DnsConfiguration"}, - "sku": {"key": "properties.sku", "type": "str"}, - "encryption_properties": {"key": "properties.encryptionProperties", "type": "EncryptionProperties"}, - "init_containers": {"key": "properties.initContainers", "type": "[InitContainerDefinition]"}, - "extensions": {"key": "properties.extensions", "type": "[DeploymentExtensionSpec]"}, - "confidential_compute_properties": { - "key": "properties.confidentialComputeProperties", - "type": "ConfidentialComputeProperties", - }, - "priority": {"key": "properties.priority", "type": "str"}, - "identity_acls": {"key": "properties.identityAcls", "type": "IdentityAcls"}, - "container_group_profile": { - "key": "properties.containerGroupProfile", - "type": "ContainerGroupProfileReferenceDefinition", - }, - "standby_pool_profile": {"key": "properties.standbyPoolProfile", "type": "StandbyPoolProfileDefinition"}, - "is_created_from_standby_pool": {"key": "properties.isCreatedFromStandbyPool", "type": "bool"}, - } - - def __init__( - self, - *, - containers: list["_models.Container"], - os_type: Union[str, "_models.OperatingSystemTypes"], - identity: Optional["_models.ContainerGroupIdentity"] = None, - secret_references: Optional[list["_models.SecretReference"]] = None, - image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = None, - restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, - ip_address: Optional["_models.IpAddress"] = None, - volumes: Optional[list["_models.Volume"]] = None, - diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, - subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = None, - dns_config: Optional["_models.DnsConfiguration"] = None, - sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, - encryption_properties: Optional["_models.EncryptionProperties"] = None, - init_containers: Optional[list["_models.InitContainerDefinition"]] = None, - extensions: Optional[list["_models.DeploymentExtensionSpec"]] = None, - confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, - priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, - identity_acls: Optional["_models.IdentityAcls"] = None, - container_group_profile: Optional["_models.ContainerGroupProfileReferenceDefinition"] = None, - standby_pool_profile: Optional["_models.StandbyPoolProfileDefinition"] = None, - **kwargs: Any - ) -> None: - """ - :keyword identity: The identity of the container group, if configured. - :paramtype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity - :keyword secret_references: The secret references that will be referenced within the container - group. - :paramtype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] - :keyword containers: The containers within the container group. Required. - :paramtype containers: list[~azure.mgmt.containerinstance.models.Container] - :keyword image_registry_credentials: The image registry credentials by which the container - group is created from. - :paramtype image_registry_credentials: - list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] - :keyword restart_policy: Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". - :paramtype restart_policy: str or - ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy - :keyword ip_address: The IP address type of the container group. - :paramtype ip_address: ~azure.mgmt.containerinstance.models.IpAddress - :keyword os_type: The operating system type required by the containers in the container group. - Required. Known values are: "Windows" and "Linux". - :paramtype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes - :keyword volumes: The list of volumes that can be mounted by containers in this container - group. - :paramtype volumes: list[~azure.mgmt.containerinstance.models.Volume] - :keyword diagnostics: The diagnostic information for a container group. - :paramtype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :keyword subnet_ids: The subnet resource IDs for a container group. - :paramtype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] - :keyword dns_config: The DNS config information for a container group. - :paramtype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration - :keyword sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", - "Dedicated", and "Confidential". - :paramtype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :keyword encryption_properties: The encryption properties for a container group. - :paramtype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :keyword init_containers: The init containers for a container group. - :paramtype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :keyword extensions: extensions used by virtual kubelet. - :paramtype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] - :keyword confidential_compute_properties: The properties for confidential container group. - :paramtype confidential_compute_properties: - ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :keyword priority: The priority of the container group. Known values are: "Regular" and "Spot". - :paramtype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority - :keyword identity_acls: The access control levels of the identities. - :paramtype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls - :keyword container_group_profile: The reference container group profile properties. - :paramtype container_group_profile: - ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition - :keyword standby_pool_profile: The reference standby pool profile properties. - :paramtype standby_pool_profile: - ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition - """ - super().__init__(**kwargs) - self.identity = identity - self.provisioning_state: Optional[Union[str, "_models.ContainerGroupProvisioningState"]] = None - self.secret_references = secret_references - self.containers = containers - self.image_registry_credentials = image_registry_credentials - self.restart_policy = restart_policy - self.ip_address = ip_address - self.os_type = os_type - self.volumes = volumes - self.diagnostics = diagnostics - self.subnet_ids = subnet_ids - self.dns_config = dns_config - self.sku = sku - self.encryption_properties = encryption_properties - self.init_containers = init_containers - self.extensions = extensions - self.confidential_compute_properties = confidential_compute_properties - self.priority = priority - self.identity_acls = identity_acls - self.container_group_profile = container_group_profile - self.standby_pool_profile = standby_pool_profile - self.is_created_from_standby_pool: Optional[bool] = None - - -class ListResultContainerGroup(Resource, ListResultContainerGroupProperties): - """A container group part of the list result. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar identity: The identity of the container group, if configured. - :vartype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity - :ivar provisioning_state: The provisioning state of the container group. This only appears in - the response. Known values are: "NotSpecified", "Accepted", "Pending", "Updating", "Creating", - "Repairing", "Unhealthy", "Failed", "Canceled", "Succeeded", "Deleting", "NotAccessible", and - "PreProvisioned". - :vartype provisioning_state: str or - ~azure.mgmt.containerinstance.models.ContainerGroupProvisioningState - :ivar secret_references: The secret references that will be referenced within the container - group. - :vartype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] - :ivar containers: The containers within the container group. Required. - :vartype containers: list[~azure.mgmt.containerinstance.models.Container] - :ivar image_registry_credentials: The image registry credentials by which the container group - is created from. - :vartype image_registry_credentials: - list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] - :ivar restart_policy: Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". - :vartype restart_policy: str or - ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy - :ivar ip_address: The IP address type of the container group. - :vartype ip_address: ~azure.mgmt.containerinstance.models.IpAddress - :ivar os_type: The operating system type required by the containers in the container group. - Required. Known values are: "Windows" and "Linux". - :vartype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes - :ivar volumes: The list of volumes that can be mounted by containers in this container group. - :vartype volumes: list[~azure.mgmt.containerinstance.models.Volume] - :ivar diagnostics: The diagnostic information for a container group. - :vartype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :ivar subnet_ids: The subnet resource IDs for a container group. - :vartype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] - :ivar dns_config: The DNS config information for a container group. - :vartype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration - :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", - "Dedicated", and "Confidential". - :vartype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :ivar encryption_properties: The encryption properties for a container group. - :vartype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :ivar init_containers: The init containers for a container group. - :vartype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :ivar extensions: extensions used by virtual kubelet. - :vartype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] - :ivar confidential_compute_properties: The properties for confidential container group. - :vartype confidential_compute_properties: - ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". - :vartype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority - :ivar identity_acls: The access control levels of the identities. - :vartype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls - :ivar container_group_profile: The reference container group profile properties. - :vartype container_group_profile: - ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition - :ivar standby_pool_profile: The reference standby pool profile properties. - :vartype standby_pool_profile: - ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition - :ivar is_created_from_standby_pool: The flag to determine whether the container group is - created from standby pool. - :vartype is_created_from_standby_pool: bool - :ivar id: The resource id. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar zones: The zones for the container group. - :vartype zones: list[str] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "containers": {"required": True}, - "os_type": {"required": True}, - "is_created_from_standby_pool": {"readonly": True}, - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "identity": {"key": "identity", "type": "ContainerGroupIdentity"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "secret_references": {"key": "properties.secretReferences", "type": "[SecretReference]"}, - "containers": {"key": "properties.containers", "type": "[Container]"}, - "image_registry_credentials": { - "key": "properties.imageRegistryCredentials", - "type": "[ImageRegistryCredential]", - }, - "restart_policy": {"key": "properties.restartPolicy", "type": "str"}, - "ip_address": {"key": "properties.ipAddress", "type": "IpAddress"}, - "os_type": {"key": "properties.osType", "type": "str"}, - "volumes": {"key": "properties.volumes", "type": "[Volume]"}, - "diagnostics": {"key": "properties.diagnostics", "type": "ContainerGroupDiagnostics"}, - "subnet_ids": {"key": "properties.subnetIds", "type": "[ContainerGroupSubnetId]"}, - "dns_config": {"key": "properties.dnsConfig", "type": "DnsConfiguration"}, - "sku": {"key": "properties.sku", "type": "str"}, - "encryption_properties": {"key": "properties.encryptionProperties", "type": "EncryptionProperties"}, - "init_containers": {"key": "properties.initContainers", "type": "[InitContainerDefinition]"}, - "extensions": {"key": "properties.extensions", "type": "[DeploymentExtensionSpec]"}, - "confidential_compute_properties": { - "key": "properties.confidentialComputeProperties", - "type": "ConfidentialComputeProperties", - }, - "priority": {"key": "properties.priority", "type": "str"}, - "identity_acls": {"key": "properties.identityAcls", "type": "IdentityAcls"}, - "container_group_profile": { - "key": "properties.containerGroupProfile", - "type": "ContainerGroupProfileReferenceDefinition", - }, - "standby_pool_profile": {"key": "properties.standbyPoolProfile", "type": "StandbyPoolProfileDefinition"}, - "is_created_from_standby_pool": {"key": "properties.isCreatedFromStandbyPool", "type": "bool"}, - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - containers: list["_models.Container"], - os_type: Union[str, "_models.OperatingSystemTypes"], - identity: Optional["_models.ContainerGroupIdentity"] = None, - secret_references: Optional[list["_models.SecretReference"]] = None, - image_registry_credentials: Optional[list["_models.ImageRegistryCredential"]] = None, - restart_policy: Optional[Union[str, "_models.ContainerGroupRestartPolicy"]] = None, - ip_address: Optional["_models.IpAddress"] = None, - volumes: Optional[list["_models.Volume"]] = None, - diagnostics: Optional["_models.ContainerGroupDiagnostics"] = None, - subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = None, - dns_config: Optional["_models.DnsConfiguration"] = None, - sku: Optional[Union[str, "_models.ContainerGroupSku"]] = None, - encryption_properties: Optional["_models.EncryptionProperties"] = None, - init_containers: Optional[list["_models.InitContainerDefinition"]] = None, - extensions: Optional[list["_models.DeploymentExtensionSpec"]] = None, - confidential_compute_properties: Optional["_models.ConfidentialComputeProperties"] = None, - priority: Optional[Union[str, "_models.ContainerGroupPriority"]] = None, - identity_acls: Optional["_models.IdentityAcls"] = None, - container_group_profile: Optional["_models.ContainerGroupProfileReferenceDefinition"] = None, - standby_pool_profile: Optional["_models.StandbyPoolProfileDefinition"] = None, - location: Optional[str] = None, - tags: Optional[dict[str, str]] = None, - zones: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword identity: The identity of the container group, if configured. - :paramtype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity - :keyword secret_references: The secret references that will be referenced within the container - group. - :paramtype secret_references: list[~azure.mgmt.containerinstance.models.SecretReference] - :keyword containers: The containers within the container group. Required. - :paramtype containers: list[~azure.mgmt.containerinstance.models.Container] - :keyword image_registry_credentials: The image registry credentials by which the container - group is created from. - :paramtype image_registry_credentials: - list[~azure.mgmt.containerinstance.models.ImageRegistryCredential] - :keyword restart_policy: Restart policy for all containers within the container group. - - * ``Always`` Always restart - * ``OnFailure`` Restart on failure - * ``Never`` Never restart. Known values are: "Always", "OnFailure", and "Never". - :paramtype restart_policy: str or - ~azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy - :keyword ip_address: The IP address type of the container group. - :paramtype ip_address: ~azure.mgmt.containerinstance.models.IpAddress - :keyword os_type: The operating system type required by the containers in the container group. - Required. Known values are: "Windows" and "Linux". - :paramtype os_type: str or ~azure.mgmt.containerinstance.models.OperatingSystemTypes - :keyword volumes: The list of volumes that can be mounted by containers in this container - group. - :paramtype volumes: list[~azure.mgmt.containerinstance.models.Volume] - :keyword diagnostics: The diagnostic information for a container group. - :paramtype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics - :keyword subnet_ids: The subnet resource IDs for a container group. - :paramtype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] - :keyword dns_config: The DNS config information for a container group. - :paramtype dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration - :keyword sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", - "Dedicated", and "Confidential". - :paramtype sku: str or ~azure.mgmt.containerinstance.models.ContainerGroupSku - :keyword encryption_properties: The encryption properties for a container group. - :paramtype encryption_properties: ~azure.mgmt.containerinstance.models.EncryptionProperties - :keyword init_containers: The init containers for a container group. - :paramtype init_containers: list[~azure.mgmt.containerinstance.models.InitContainerDefinition] - :keyword extensions: extensions used by virtual kubelet. - :paramtype extensions: list[~azure.mgmt.containerinstance.models.DeploymentExtensionSpec] - :keyword confidential_compute_properties: The properties for confidential container group. - :paramtype confidential_compute_properties: - ~azure.mgmt.containerinstance.models.ConfidentialComputeProperties - :keyword priority: The priority of the container group. Known values are: "Regular" and "Spot". - :paramtype priority: str or ~azure.mgmt.containerinstance.models.ContainerGroupPriority - :keyword identity_acls: The access control levels of the identities. - :paramtype identity_acls: ~azure.mgmt.containerinstance.models.IdentityAcls - :keyword container_group_profile: The reference container group profile properties. - :paramtype container_group_profile: - ~azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition - :keyword standby_pool_profile: The reference standby pool profile properties. - :paramtype standby_pool_profile: - ~azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition - :keyword location: The resource location. - :paramtype location: str - :keyword tags: The resource tags. - :paramtype tags: dict[str, str] - :keyword zones: The zones for the container group. - :paramtype zones: list[str] - """ - super().__init__( - location=location, - tags=tags, - zones=zones, - identity=identity, - secret_references=secret_references, - containers=containers, - image_registry_credentials=image_registry_credentials, - restart_policy=restart_policy, - ip_address=ip_address, - os_type=os_type, - volumes=volumes, - diagnostics=diagnostics, - subnet_ids=subnet_ids, - dns_config=dns_config, - sku=sku, - encryption_properties=encryption_properties, - init_containers=init_containers, - extensions=extensions, - confidential_compute_properties=confidential_compute_properties, - priority=priority, - identity_acls=identity_acls, - container_group_profile=container_group_profile, - standby_pool_profile=standby_pool_profile, - **kwargs - ) - self.identity = identity - self.provisioning_state: Optional[Union[str, "_models.ContainerGroupProvisioningState"]] = None - self.secret_references = secret_references - self.containers = containers - self.image_registry_credentials = image_registry_credentials - self.restart_policy = restart_policy - self.ip_address = ip_address - self.os_type = os_type - self.volumes = volumes - self.diagnostics = diagnostics - self.subnet_ids = subnet_ids - self.dns_config = dns_config - self.sku = sku - self.encryption_properties = encryption_properties - self.init_containers = init_containers - self.extensions = extensions - self.confidential_compute_properties = confidential_compute_properties - self.priority = priority - self.identity_acls = identity_acls - self.container_group_profile = container_group_profile - self.standby_pool_profile = standby_pool_profile - self.is_created_from_standby_pool: Optional[bool] = None - self.id: Optional[str] = None - self.name: Optional[str] = None - self.type: Optional[str] = None - self.location = location - self.tags = tags - self.zones = zones - - -class LoadBalancer(_serialization.Model): - """LoadBalancer the CG profile will use to interact with CGs in a backend pool. - - :ivar backend_address_pools: List of Load Balancer Backend Address Pools. - :vartype backend_address_pools: - list[~azure.mgmt.containerinstance.models.LoadBalancerBackendAddressPool] - """ - - _attribute_map = { - "backend_address_pools": {"key": "backendAddressPools", "type": "[LoadBalancerBackendAddressPool]"}, - } - - def __init__( - self, *, backend_address_pools: Optional[list["_models.LoadBalancerBackendAddressPool"]] = None, **kwargs: Any - ) -> None: - """ - :keyword backend_address_pools: List of Load Balancer Backend Address Pools. - :paramtype backend_address_pools: - list[~azure.mgmt.containerinstance.models.LoadBalancerBackendAddressPool] - """ - super().__init__(**kwargs) - self.backend_address_pools = backend_address_pools - - -class LoadBalancerBackendAddressPool(_serialization.Model): - """NGroups load balancer backend address pool. - - :ivar resource: The Load Balancer backend address pool ARM resource Id. - :vartype resource: str - """ - - _attribute_map = { - "resource": {"key": "resource", "type": "str"}, - } - - def __init__(self, *, resource: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword resource: The Load Balancer backend address pool ARM resource Id. - :paramtype resource: str - """ - super().__init__(**kwargs) - self.resource = resource - - -class LogAnalytics(_serialization.Model): - """Container group log analytics information. - - All required parameters must be populated in order to send to server. - - :ivar workspace_id: The workspace id for log analytics. Required. - :vartype workspace_id: str - :ivar workspace_key: The workspace key for log analytics. Required. - :vartype workspace_key: str - :ivar log_type: The log type to be used. Known values are: "ContainerInsights" and - "ContainerInstanceLogs". - :vartype log_type: str or ~azure.mgmt.containerinstance.models.LogAnalyticsLogType - :ivar metadata: Metadata for log analytics. - :vartype metadata: dict[str, str] - :ivar workspace_resource_id: The workspace resource id for log analytics. - :vartype workspace_resource_id: str - """ - - _validation = { - "workspace_id": {"required": True}, - "workspace_key": {"required": True}, - } - - _attribute_map = { - "workspace_id": {"key": "workspaceId", "type": "str"}, - "workspace_key": {"key": "workspaceKey", "type": "str"}, - "log_type": {"key": "logType", "type": "str"}, - "metadata": {"key": "metadata", "type": "{str}"}, - "workspace_resource_id": {"key": "workspaceResourceId", "type": "str"}, - } - - def __init__( - self, - *, - workspace_id: str, - workspace_key: str, - log_type: Optional[Union[str, "_models.LogAnalyticsLogType"]] = None, - metadata: Optional[dict[str, str]] = None, - workspace_resource_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword workspace_id: The workspace id for log analytics. Required. - :paramtype workspace_id: str - :keyword workspace_key: The workspace key for log analytics. Required. - :paramtype workspace_key: str - :keyword log_type: The log type to be used. Known values are: "ContainerInsights" and - "ContainerInstanceLogs". - :paramtype log_type: str or ~azure.mgmt.containerinstance.models.LogAnalyticsLogType - :keyword metadata: Metadata for log analytics. - :paramtype metadata: dict[str, str] - :keyword workspace_resource_id: The workspace resource id for log analytics. - :paramtype workspace_resource_id: str - """ - super().__init__(**kwargs) - self.workspace_id = workspace_id - self.workspace_key = workspace_key - self.log_type = log_type - self.metadata = metadata - self.workspace_resource_id = workspace_resource_id - - -class Logs(_serialization.Model): - """The logs. - - :ivar content: The content of the log. - :vartype content: str - """ - - _attribute_map = { - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of the log. - :paramtype content: str - """ - super().__init__(**kwargs) - self.content = content - - -class NetworkProfile(_serialization.Model): - """A network profile for network settings of a ContainerGroupProfile. Used to manage load balancer - and application gateway backend pools, specifically updating the IP addresses of CGs within the - backend pool. - - :ivar load_balancer: LoadBalancer the CG profile will use to interact with CGs in a backend - pool. - :vartype load_balancer: ~azure.mgmt.containerinstance.models.LoadBalancer - :ivar application_gateway: Application Gateway the CG profile will use to interact with CGs in - a backend pool. - :vartype application_gateway: ~azure.mgmt.containerinstance.models.ApplicationGateway - """ - - _attribute_map = { - "load_balancer": {"key": "loadBalancer", "type": "LoadBalancer"}, - "application_gateway": {"key": "applicationGateway", "type": "ApplicationGateway"}, - } - - def __init__( - self, - *, - load_balancer: Optional["_models.LoadBalancer"] = None, - application_gateway: Optional["_models.ApplicationGateway"] = None, - **kwargs: Any - ) -> None: - """ - :keyword load_balancer: LoadBalancer the CG profile will use to interact with CGs in a backend - pool. - :paramtype load_balancer: ~azure.mgmt.containerinstance.models.LoadBalancer - :keyword application_gateway: Application Gateway the CG profile will use to interact with CGs - in a backend pool. - :paramtype application_gateway: ~azure.mgmt.containerinstance.models.ApplicationGateway - """ - super().__init__(**kwargs) - self.load_balancer = load_balancer - self.application_gateway = application_gateway - - -class NGroup(Resource): - """Describes the NGroups resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The resource id. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar zones: The zones for the container group. - :vartype zones: list[str] - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.containerinstance.models.SystemData - :ivar identity: The identity of the NGroup, if configured. - :vartype identity: ~azure.mgmt.containerinstance.models.NGroupIdentity - :ivar elastic_profile: The elastic profile. - :vartype elastic_profile: ~azure.mgmt.containerinstance.models.ElasticProfile - :ivar placement_profile: Provides options w.r.t allocation and management w.r.t certain - placement policies. These utilize capabilities provided by the underlying Azure infrastructure. - They are typically used for high availability scenarios. E.g., distributing CGs across fault - domains. - :vartype placement_profile: ~azure.mgmt.containerinstance.models.PlacementProfile - :ivar container_group_profiles: The Container Group Profiles that could be used in the NGroups - resource. - :vartype container_group_profiles: - list[~azure.mgmt.containerinstance.models.ContainerGroupProfileStub] - :ivar provisioning_state: The provisioning state, which only appears in the response. Known - values are: "Creating", "Updating", "Failed", "Succeeded", "Canceled", "Deleting", and - "Migrating". - :vartype provisioning_state: str or - ~azure.mgmt.containerinstance.models.NGroupProvisioningState - :ivar update_profile: Used by the customer to specify the way to update the Container Groups in - NGroup. - :vartype update_profile: ~azure.mgmt.containerinstance.models.UpdateProfile - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "zones": {"key": "zones", "type": "[str]"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "identity": {"key": "identity", "type": "NGroupIdentity"}, - "elastic_profile": {"key": "properties.elasticProfile", "type": "ElasticProfile"}, - "placement_profile": {"key": "properties.placementProfile", "type": "PlacementProfile"}, - "container_group_profiles": {"key": "properties.containerGroupProfiles", "type": "[ContainerGroupProfileStub]"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "update_profile": {"key": "properties.updateProfile", "type": "UpdateProfile"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[dict[str, str]] = None, - zones: Optional[list[str]] = None, - identity: Optional["_models.NGroupIdentity"] = None, - elastic_profile: Optional["_models.ElasticProfile"] = None, - placement_profile: Optional["_models.PlacementProfile"] = None, - container_group_profiles: Optional[list["_models.ContainerGroupProfileStub"]] = None, - update_profile: Optional["_models.UpdateProfile"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The resource location. - :paramtype location: str - :keyword tags: The resource tags. - :paramtype tags: dict[str, str] - :keyword zones: The zones for the container group. - :paramtype zones: list[str] - :keyword identity: The identity of the NGroup, if configured. - :paramtype identity: ~azure.mgmt.containerinstance.models.NGroupIdentity - :keyword elastic_profile: The elastic profile. - :paramtype elastic_profile: ~azure.mgmt.containerinstance.models.ElasticProfile - :keyword placement_profile: Provides options w.r.t allocation and management w.r.t certain - placement policies. These utilize capabilities provided by the underlying Azure infrastructure. - They are typically used for high availability scenarios. E.g., distributing CGs across fault - domains. - :paramtype placement_profile: ~azure.mgmt.containerinstance.models.PlacementProfile - :keyword container_group_profiles: The Container Group Profiles that could be used in the - NGroups resource. - :paramtype container_group_profiles: - list[~azure.mgmt.containerinstance.models.ContainerGroupProfileStub] - :keyword update_profile: Used by the customer to specify the way to update the Container Groups - in NGroup. - :paramtype update_profile: ~azure.mgmt.containerinstance.models.UpdateProfile - """ - super().__init__(location=location, tags=tags, zones=zones, **kwargs) - self.system_data: Optional["_models.SystemData"] = None - self.identity = identity - self.elastic_profile = elastic_profile - self.placement_profile = placement_profile - self.container_group_profiles = container_group_profiles - self.provisioning_state: Optional[Union[str, "_models.NGroupProvisioningState"]] = None - self.update_profile = update_profile - - -class NGroupCGPropertyContainer(_serialization.Model): - """Container properties that can be provided with NGroups object. - - :ivar name: container name. - :vartype name: str - :ivar properties: container properties. - :vartype properties: ~azure.mgmt.containerinstance.models.NGroupCGPropertyContainerProperties - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "properties": {"key": "properties", "type": "NGroupCGPropertyContainerProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - properties: Optional["_models.NGroupCGPropertyContainerProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: container name. - :paramtype name: str - :keyword properties: container properties. - :paramtype properties: ~azure.mgmt.containerinstance.models.NGroupCGPropertyContainerProperties - """ - super().__init__(**kwargs) - self.name = name - self.properties = properties - - -class NGroupCGPropertyContainerProperties(_serialization.Model): - """container properties. - - :ivar volume_mounts: - :vartype volume_mounts: list[~azure.mgmt.containerinstance.models.VolumeMount] - """ - - _attribute_map = { - "volume_mounts": {"key": "volumeMounts", "type": "[VolumeMount]"}, - } - - def __init__(self, *, volume_mounts: Optional[list["_models.VolumeMount"]] = None, **kwargs: Any) -> None: - """ - :keyword volume_mounts: - :paramtype volume_mounts: list[~azure.mgmt.containerinstance.models.VolumeMount] - """ - super().__init__(**kwargs) - self.volume_mounts = volume_mounts - - -class NGroupCGPropertyVolume(_serialization.Model): - """Contains information about the volumes that can be mounted by Containers in the Container - Groups. - - All required parameters must be populated in order to send to server. - - :ivar name: The name of the volume. Required. - :vartype name: str - :ivar azure_file: The Azure File volume. - :vartype azure_file: ~azure.mgmt.containerinstance.models.AzureFileVolume - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "azure_file": {"key": "azureFile", "type": "AzureFileVolume"}, - } - - def __init__(self, *, name: str, azure_file: Optional["_models.AzureFileVolume"] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the volume. Required. - :paramtype name: str - :keyword azure_file: The Azure File volume. - :paramtype azure_file: ~azure.mgmt.containerinstance.models.AzureFileVolume - """ - super().__init__(**kwargs) - self.name = name - self.azure_file = azure_file - - -class NGroupContainerGroupProperties(_serialization.Model): - """Container Group properties which can be set while creating or updating the NGroups. - - :ivar subnet_ids: Contains information about Virtual Network Subnet ARM Resource. - :vartype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] - :ivar volumes: Contains information about the volumes that can be mounted by Containers in the - Container Groups. - :vartype volumes: list[~azure.mgmt.containerinstance.models.NGroupCGPropertyVolume] - :ivar containers: Contains information about Container which can be set while creating or - updating the NGroups. - :vartype containers: list[~azure.mgmt.containerinstance.models.NGroupCGPropertyContainer] - """ - - _attribute_map = { - "subnet_ids": {"key": "subnetIds", "type": "[ContainerGroupSubnetId]"}, - "volumes": {"key": "volumes", "type": "[NGroupCGPropertyVolume]"}, - "containers": {"key": "containers", "type": "[NGroupCGPropertyContainer]"}, - } - - def __init__( - self, - *, - subnet_ids: Optional[list["_models.ContainerGroupSubnetId"]] = None, - volumes: Optional[list["_models.NGroupCGPropertyVolume"]] = None, - containers: Optional[list["_models.NGroupCGPropertyContainer"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword subnet_ids: Contains information about Virtual Network Subnet ARM Resource. - :paramtype subnet_ids: list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId] - :keyword volumes: Contains information about the volumes that can be mounted by Containers in - the Container Groups. - :paramtype volumes: list[~azure.mgmt.containerinstance.models.NGroupCGPropertyVolume] - :keyword containers: Contains information about Container which can be set while creating or - updating the NGroups. - :paramtype containers: list[~azure.mgmt.containerinstance.models.NGroupCGPropertyContainer] - """ - super().__init__(**kwargs) - self.subnet_ids = subnet_ids - self.volumes = volumes - self.containers = containers - - -class NGroupIdentity(_serialization.Model): - """Identity for the NGroup. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: The principal id of the NGroup identity. This property will only be - provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant id associated with the NGroup. This property will only be provided - for a system assigned identity. - :vartype tenant_id: str - :ivar type: The type of identity used for the NGroup. The type 'SystemAssigned, UserAssigned' - includes both an implicitly created identity and a set of user assigned identities. The type - 'None' will remove any identities from the NGroup. Known values are: "SystemAssigned", - "UserAssigned", "SystemAssigned, UserAssigned", and "None". - :vartype type: str or ~azure.mgmt.containerinstance.models.ResourceIdentityType - :ivar user_assigned_identities: The list of user identities associated with the NGroup. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.containerinstance.models.UserAssignedIdentities] - """ - - _validation = { - "principal_id": {"readonly": True}, - "tenant_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedIdentities}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, - user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: The type of identity used for the NGroup. The type 'SystemAssigned, - UserAssigned' includes both an implicitly created identity and a set of user assigned - identities. The type 'None' will remove any identities from the NGroup. Known values are: - "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", and "None". - :paramtype type: str or ~azure.mgmt.containerinstance.models.ResourceIdentityType - :keyword user_assigned_identities: The list of user identities associated with the NGroup. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.containerinstance.models.UserAssignedIdentities] - """ - super().__init__(**kwargs) - self.principal_id: Optional[str] = None - self.tenant_id: Optional[str] = None - self.type = type - self.user_assigned_identities = user_assigned_identities - - -class NGroupPatch(_serialization.Model): - """Describes the NGroups resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.containerinstance.models.SystemData - :ivar identity: The identity of the NGroup, if configured. - :vartype identity: ~azure.mgmt.containerinstance.models.NGroupIdentity - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar zones: The zones for the NGroup. - :vartype zones: list[str] - :ivar elastic_profile: The elastic profile. - :vartype elastic_profile: ~azure.mgmt.containerinstance.models.ElasticProfile - :ivar placement_profile: Provides options w.r.t allocation and management w.r.t certain - placement policies. These utilize capabilities provided by the underlying Azure infrastructure. - They are typically used for high availability scenarios. E.g., distributing CGs across fault - domains. - :vartype placement_profile: ~azure.mgmt.containerinstance.models.PlacementProfile - :ivar container_group_profiles: The Container Group Profiles that could be used in the NGroups - resource. - :vartype container_group_profiles: - list[~azure.mgmt.containerinstance.models.ContainerGroupProfileStub] - :ivar provisioning_state: The provisioning state, which only appears in the response. Known - values are: "Creating", "Updating", "Failed", "Succeeded", "Canceled", "Deleting", and - "Migrating". - :vartype provisioning_state: str or - ~azure.mgmt.containerinstance.models.NGroupProvisioningState - :ivar update_profile: Used by the customer to specify the way to update the Container Groups in - NGroup. - :vartype update_profile: ~azure.mgmt.containerinstance.models.UpdateProfile - """ - - _validation = { - "system_data": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "system_data": {"key": "systemData", "type": "SystemData"}, - "identity": {"key": "identity", "type": "NGroupIdentity"}, - "tags": {"key": "tags", "type": "{str}"}, - "zones": {"key": "zones", "type": "[str]"}, - "elastic_profile": {"key": "properties.elasticProfile", "type": "ElasticProfile"}, - "placement_profile": {"key": "properties.placementProfile", "type": "PlacementProfile"}, - "container_group_profiles": {"key": "properties.containerGroupProfiles", "type": "[ContainerGroupProfileStub]"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "update_profile": {"key": "properties.updateProfile", "type": "UpdateProfile"}, - } - - def __init__( - self, - *, - identity: Optional["_models.NGroupIdentity"] = None, - tags: Optional[dict[str, str]] = None, - zones: Optional[list[str]] = None, - elastic_profile: Optional["_models.ElasticProfile"] = None, - placement_profile: Optional["_models.PlacementProfile"] = None, - container_group_profiles: Optional[list["_models.ContainerGroupProfileStub"]] = None, - update_profile: Optional["_models.UpdateProfile"] = None, - **kwargs: Any - ) -> None: - """ - :keyword identity: The identity of the NGroup, if configured. - :paramtype identity: ~azure.mgmt.containerinstance.models.NGroupIdentity - :keyword tags: The resource tags. - :paramtype tags: dict[str, str] - :keyword zones: The zones for the NGroup. - :paramtype zones: list[str] - :keyword elastic_profile: The elastic profile. - :paramtype elastic_profile: ~azure.mgmt.containerinstance.models.ElasticProfile - :keyword placement_profile: Provides options w.r.t allocation and management w.r.t certain - placement policies. These utilize capabilities provided by the underlying Azure infrastructure. - They are typically used for high availability scenarios. E.g., distributing CGs across fault - domains. - :paramtype placement_profile: ~azure.mgmt.containerinstance.models.PlacementProfile - :keyword container_group_profiles: The Container Group Profiles that could be used in the - NGroups resource. - :paramtype container_group_profiles: - list[~azure.mgmt.containerinstance.models.ContainerGroupProfileStub] - :keyword update_profile: Used by the customer to specify the way to update the Container Groups - in NGroup. - :paramtype update_profile: ~azure.mgmt.containerinstance.models.UpdateProfile - """ - super().__init__(**kwargs) - self.system_data: Optional["_models.SystemData"] = None - self.identity = identity - self.tags = tags - self.zones = zones - self.elastic_profile = elastic_profile - self.placement_profile = placement_profile - self.container_group_profiles = container_group_profiles - self.provisioning_state: Optional[Union[str, "_models.NGroupProvisioningState"]] = None - self.update_profile = update_profile - - -class NGroupSkus(_serialization.Model): - """The container probe, for liveness or readiness. - - :ivar resource_type: The type of resource the sku is applied to. - :vartype resource_type: str - :ivar sku: The sku of the resource type. - :vartype sku: str - :ivar sku_capacity: The number of container groups of the NGroups. - :vartype sku_capacity: str - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "sku": {"key": "sku", "type": "str"}, - "sku_capacity": {"key": "skuCapacity", "type": "str"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - sku: Optional[str] = None, - sku_capacity: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: The type of resource the sku is applied to. - :paramtype resource_type: str - :keyword sku: The sku of the resource type. - :paramtype sku: str - :keyword sku_capacity: The number of container groups of the NGroups. - :paramtype sku_capacity: str - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.sku = sku - self.sku_capacity = sku_capacity - - -class NGroupsListResult(_serialization.Model): - """The NGroups list response that contains the NGroups properties. - - :ivar value: The list of NGroups. - :vartype value: list[~azure.mgmt.containerinstance.models.NGroup] - :ivar next_link: The URI to fetch the next page of NGroups. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[NGroup]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[list["_models.NGroup"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The list of NGroups. - :paramtype value: list[~azure.mgmt.containerinstance.models.NGroup] - :keyword next_link: The URI to fetch the next page of NGroups. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class NGroupsSkusList(_serialization.Model): - """List of SKU definitions. NGroups offer a single sku. - - :ivar value: The list of NGroups SKUs. - :vartype value: list[~azure.mgmt.containerinstance.models.NGroupSkus] - :ivar next_link: The URI to fetch the next page of NGroups SKUs. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[NGroupSkus]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[list["_models.NGroupSkus"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The list of NGroups SKUs. - :paramtype value: list[~azure.mgmt.containerinstance.models.NGroupSkus] - :keyword next_link: The URI to fetch the next page of NGroups SKUs. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class Operation(_serialization.Model): - """An operation for Azure Container Instance service. - - All required parameters must be populated in order to send to server. - - :ivar name: The name of the operation. Required. - :vartype name: str - :ivar display: The display information of the operation. Required. - :vartype display: ~azure.mgmt.containerinstance.models.OperationDisplay - :ivar properties: The additional properties. - :vartype properties: JSON - :ivar origin: The intended executor of the operation. Known values are: "User" and "System". - :vartype origin: str or ~azure.mgmt.containerinstance.models.ContainerInstanceOperationsOrigin - """ - - _validation = { - "name": {"required": True}, - "display": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "properties": {"key": "properties", "type": "object"}, - "origin": {"key": "origin", "type": "str"}, - } - - def __init__( - self, - *, - name: str, - display: "_models.OperationDisplay", - properties: Optional[JSON] = None, - origin: Optional[Union[str, "_models.ContainerInstanceOperationsOrigin"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the operation. Required. - :paramtype name: str - :keyword display: The display information of the operation. Required. - :paramtype display: ~azure.mgmt.containerinstance.models.OperationDisplay - :keyword properties: The additional properties. - :paramtype properties: JSON - :keyword origin: The intended executor of the operation. Known values are: "User" and "System". - :paramtype origin: str or - ~azure.mgmt.containerinstance.models.ContainerInstanceOperationsOrigin - """ - super().__init__(**kwargs) - self.name = name - self.display = display - self.properties = properties - self.origin = origin - - -class OperationDisplay(_serialization.Model): - """The display information of the operation. - - :ivar provider: The name of the provider of the operation. - :vartype provider: str - :ivar resource: The name of the resource type of the operation. - :vartype resource: str - :ivar operation: The friendly name of the operation. - :vartype operation: str - :ivar description: The description of the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: The name of the provider of the operation. - :paramtype provider: str - :keyword resource: The name of the resource type of the operation. - :paramtype resource: str - :keyword operation: The friendly name of the operation. - :paramtype operation: str - :keyword description: The description of the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationListResult(_serialization.Model): - """The operation list response that contains all operations for Azure Container Instance service. - - :ivar value: The list of operations. - :vartype value: list[~azure.mgmt.containerinstance.models.Operation] - :ivar next_link: The URI to fetch the next page of operations. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Operation]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[list["_models.Operation"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The list of operations. - :paramtype value: list[~azure.mgmt.containerinstance.models.Operation] - :keyword next_link: The URI to fetch the next page of operations. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class PlacementProfile(_serialization.Model): - """Provides options w.r.t allocation and management w.r.t certain placement policies. These - utilize capabilities provided by the underlying Azure infrastructure. They are typically used - for high availability scenarios. E.g., distributing CGs across fault domains. - - :ivar fault_domain_count: The number of fault domains to be used to spread CGs in the NGroups - resource. This can only be specified during NGroup creation and is immutable after that. - :vartype fault_domain_count: int - """ - - _attribute_map = { - "fault_domain_count": {"key": "faultDomainCount", "type": "int"}, - } - - def __init__(self, *, fault_domain_count: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword fault_domain_count: The number of fault domains to be used to spread CGs in the - NGroups resource. This can only be specified during NGroup creation and is immutable after - that. - :paramtype fault_domain_count: int - """ - super().__init__(**kwargs) - self.fault_domain_count = fault_domain_count - - -class Port(_serialization.Model): - """The port exposed on the container group. - - All required parameters must be populated in order to send to server. - - :ivar protocol: The protocol associated with the port. Known values are: "TCP" and "UDP". - :vartype protocol: str or ~azure.mgmt.containerinstance.models.ContainerGroupNetworkProtocol - :ivar port: The port number. Required. - :vartype port: int - """ - - _validation = { - "port": {"required": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - } - - def __init__( - self, - *, - port: int, - protocol: Optional[Union[str, "_models.ContainerGroupNetworkProtocol"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword protocol: The protocol associated with the port. Known values are: "TCP" and "UDP". - :paramtype protocol: str or ~azure.mgmt.containerinstance.models.ContainerGroupNetworkProtocol - :keyword port: The port number. Required. - :paramtype port: int - """ - super().__init__(**kwargs) - self.protocol = protocol - self.port = port - - -class ResourceLimits(_serialization.Model): - """The resource limits. - - :ivar memory_in_gb: The memory limit in GB of this container instance. - :vartype memory_in_gb: float - :ivar cpu: The CPU limit of this container instance. - :vartype cpu: float - :ivar gpu: The GPU limit of this container instance. - :vartype gpu: ~azure.mgmt.containerinstance.models.GpuResource - """ - - _attribute_map = { - "memory_in_gb": {"key": "memoryInGB", "type": "float"}, - "cpu": {"key": "cpu", "type": "float"}, - "gpu": {"key": "gpu", "type": "GpuResource"}, - } - - def __init__( - self, - *, - memory_in_gb: Optional[float] = None, - cpu: Optional[float] = None, - gpu: Optional["_models.GpuResource"] = None, - **kwargs: Any - ) -> None: - """ - :keyword memory_in_gb: The memory limit in GB of this container instance. - :paramtype memory_in_gb: float - :keyword cpu: The CPU limit of this container instance. - :paramtype cpu: float - :keyword gpu: The GPU limit of this container instance. - :paramtype gpu: ~azure.mgmt.containerinstance.models.GpuResource - """ - super().__init__(**kwargs) - self.memory_in_gb = memory_in_gb - self.cpu = cpu - self.gpu = gpu - - -class ResourceRequests(_serialization.Model): - """The resource requests. - - All required parameters must be populated in order to send to server. - - :ivar memory_in_gb: The memory request in GB of this container instance. Required. - :vartype memory_in_gb: float - :ivar cpu: The CPU request of this container instance. Required. - :vartype cpu: float - :ivar gpu: The GPU request of this container instance. - :vartype gpu: ~azure.mgmt.containerinstance.models.GpuResource - """ - - _validation = { - "memory_in_gb": {"required": True}, - "cpu": {"required": True}, - } - - _attribute_map = { - "memory_in_gb": {"key": "memoryInGB", "type": "float"}, - "cpu": {"key": "cpu", "type": "float"}, - "gpu": {"key": "gpu", "type": "GpuResource"}, - } - - def __init__( - self, *, memory_in_gb: float, cpu: float, gpu: Optional["_models.GpuResource"] = None, **kwargs: Any - ) -> None: - """ - :keyword memory_in_gb: The memory request in GB of this container instance. Required. - :paramtype memory_in_gb: float - :keyword cpu: The CPU request of this container instance. Required. - :paramtype cpu: float - :keyword gpu: The GPU request of this container instance. - :paramtype gpu: ~azure.mgmt.containerinstance.models.GpuResource - """ - super().__init__(**kwargs) - self.memory_in_gb = memory_in_gb - self.cpu = cpu - self.gpu = gpu - - -class ResourceRequirements(_serialization.Model): - """The resource requirements. - - All required parameters must be populated in order to send to server. - - :ivar requests: The resource requests of this container instance. Required. - :vartype requests: ~azure.mgmt.containerinstance.models.ResourceRequests - :ivar limits: The resource limits of this container instance. - :vartype limits: ~azure.mgmt.containerinstance.models.ResourceLimits - """ - - _validation = { - "requests": {"required": True}, - } - - _attribute_map = { - "requests": {"key": "requests", "type": "ResourceRequests"}, - "limits": {"key": "limits", "type": "ResourceLimits"}, - } - - def __init__( - self, *, requests: "_models.ResourceRequests", limits: Optional["_models.ResourceLimits"] = None, **kwargs: Any - ) -> None: - """ - :keyword requests: The resource requests of this container instance. Required. - :paramtype requests: ~azure.mgmt.containerinstance.models.ResourceRequests - :keyword limits: The resource limits of this container instance. - :paramtype limits: ~azure.mgmt.containerinstance.models.ResourceLimits - """ - super().__init__(**kwargs) - self.requests = requests - self.limits = limits - - -class SecretReference(_serialization.Model): - """A secret reference. - - All required parameters must be populated in order to send to server. - - :ivar name: The identifier of the secret reference. Required. - :vartype name: str - :ivar identity: The ARM resource id of the managed identity that has access to the secret in - the key vault. Required. - :vartype identity: str - :ivar secret_reference_uri: The URI to the secret in key vault. Required. - :vartype secret_reference_uri: str - """ - - _validation = { - "name": {"required": True}, - "identity": {"required": True}, - "secret_reference_uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "identity": {"key": "identity", "type": "str"}, - "secret_reference_uri": {"key": "secretReferenceUri", "type": "str"}, - } - - def __init__(self, *, name: str, identity: str, secret_reference_uri: str, **kwargs: Any) -> None: - """ - :keyword name: The identifier of the secret reference. Required. - :paramtype name: str - :keyword identity: The ARM resource id of the managed identity that has access to the secret in - the key vault. Required. - :paramtype identity: str - :keyword secret_reference_uri: The URI to the secret in key vault. Required. - :paramtype secret_reference_uri: str - """ - super().__init__(**kwargs) - self.name = name - self.identity = identity - self.secret_reference_uri = secret_reference_uri - - -class SecurityContextCapabilitiesDefinition(_serialization.Model): - """The capabilities to add or drop from a container. - - :ivar add: The capabilities to add to the container. - :vartype add: list[str] - :ivar drop: The capabilities to drop from the container. - :vartype drop: list[str] - """ - - _attribute_map = { - "add": {"key": "add", "type": "[str]"}, - "drop": {"key": "drop", "type": "[str]"}, - } - - def __init__(self, *, add: Optional[list[str]] = None, drop: Optional[list[str]] = None, **kwargs: Any) -> None: - """ - :keyword add: The capabilities to add to the container. - :paramtype add: list[str] - :keyword drop: The capabilities to drop from the container. - :paramtype drop: list[str] - """ - super().__init__(**kwargs) - self.add = add - self.drop = drop - - -class SecurityContextDefinition(_serialization.Model): - """The security context for the container. - - :ivar privileged: The flag to determine if the container permissions is elevated to Privileged. - :vartype privileged: bool - :ivar allow_privilege_escalation: A boolean value indicating whether the init process can - elevate its privileges. - :vartype allow_privilege_escalation: bool - :ivar capabilities: The capabilities to add or drop from a container. - :vartype capabilities: - ~azure.mgmt.containerinstance.models.SecurityContextCapabilitiesDefinition - :ivar run_as_group: Sets the User GID for the container. - :vartype run_as_group: int - :ivar run_as_user: Sets the User UID for the container. - :vartype run_as_user: int - :ivar seccomp_profile: a base64 encoded string containing the contents of the JSON in the - seccomp profile. - :vartype seccomp_profile: str - """ - - _attribute_map = { - "privileged": {"key": "privileged", "type": "bool"}, - "allow_privilege_escalation": {"key": "allowPrivilegeEscalation", "type": "bool"}, - "capabilities": {"key": "capabilities", "type": "SecurityContextCapabilitiesDefinition"}, - "run_as_group": {"key": "runAsGroup", "type": "int"}, - "run_as_user": {"key": "runAsUser", "type": "int"}, - "seccomp_profile": {"key": "seccompProfile", "type": "str"}, - } - - def __init__( - self, - *, - privileged: Optional[bool] = None, - allow_privilege_escalation: Optional[bool] = None, - capabilities: Optional["_models.SecurityContextCapabilitiesDefinition"] = None, - run_as_group: Optional[int] = None, - run_as_user: Optional[int] = None, - seccomp_profile: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword privileged: The flag to determine if the container permissions is elevated to - Privileged. - :paramtype privileged: bool - :keyword allow_privilege_escalation: A boolean value indicating whether the init process can - elevate its privileges. - :paramtype allow_privilege_escalation: bool - :keyword capabilities: The capabilities to add or drop from a container. - :paramtype capabilities: - ~azure.mgmt.containerinstance.models.SecurityContextCapabilitiesDefinition - :keyword run_as_group: Sets the User GID for the container. - :paramtype run_as_group: int - :keyword run_as_user: Sets the User UID for the container. - :paramtype run_as_user: int - :keyword seccomp_profile: a base64 encoded string containing the contents of the JSON in the - seccomp profile. - :paramtype seccomp_profile: str - """ - super().__init__(**kwargs) - self.privileged = privileged - self.allow_privilege_escalation = allow_privilege_escalation - self.capabilities = capabilities - self.run_as_group = run_as_group - self.run_as_user = run_as_user - self.seccomp_profile = seccomp_profile - - -class StandbyPoolProfileDefinition(_serialization.Model): - """The standby pool profile reference. - - :ivar 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}'. - :vartype id: str - :ivar fail_container_group_create_on_reuse_failure: The flag to determine whether ACI should - fail the create request if the container group can not be obtained from standby pool. - :vartype fail_container_group_create_on_reuse_failure: bool - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "fail_container_group_create_on_reuse_failure": { - "key": "failContainerGroupCreateOnReuseFailure", - "type": "bool", - }, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - fail_container_group_create_on_reuse_failure: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword 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}'. - :paramtype id: str - :keyword fail_container_group_create_on_reuse_failure: The flag to determine whether ACI should - fail the create request if the container group can not be obtained from standby pool. - :paramtype fail_container_group_create_on_reuse_failure: bool - """ - super().__init__(**kwargs) - self.id = id - self.fail_container_group_create_on_reuse_failure = fail_container_group_create_on_reuse_failure - - -class StorageProfile(_serialization.Model): - """Storage profile for storage related settings of a container group profile. - - :ivar file_shares: - :vartype file_shares: list[~azure.mgmt.containerinstance.models.FileShare] - """ - - _attribute_map = { - "file_shares": {"key": "fileShares", "type": "[FileShare]"}, - } - - def __init__(self, *, file_shares: Optional[list["_models.FileShare"]] = None, **kwargs: Any) -> None: - """ - :keyword file_shares: - :paramtype file_shares: list[~azure.mgmt.containerinstance.models.FileShare] - """ - super().__init__(**kwargs) - self.file_shares = file_shares - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or ~azure.mgmt.containerinstance.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or ~azure.mgmt.containerinstance.models.CreatedByType - :ivar last_modified_at: The timestamp of resource last modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or ~azure.mgmt.containerinstance.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or ~azure.mgmt.containerinstance.models.CreatedByType - :keyword last_modified_at: The timestamp of resource last modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class UpdateProfile(_serialization.Model): - """Used by the customer to specify the way to update the Container Groups in NGroup. - - :ivar update_mode: Known values are: "Manual" and "Rolling". - :vartype update_mode: str or ~azure.mgmt.containerinstance.models.NGroupUpdateMode - :ivar rolling_update_profile: This profile allows the customers to customize the rolling - update. - :vartype rolling_update_profile: - ~azure.mgmt.containerinstance.models.UpdateProfileRollingUpdateProfile - """ - - _attribute_map = { - "update_mode": {"key": "updateMode", "type": "str"}, - "rolling_update_profile": {"key": "rollingUpdateProfile", "type": "UpdateProfileRollingUpdateProfile"}, - } - - def __init__( - self, - *, - update_mode: Optional[Union[str, "_models.NGroupUpdateMode"]] = None, - rolling_update_profile: Optional["_models.UpdateProfileRollingUpdateProfile"] = None, - **kwargs: Any - ) -> None: - """ - :keyword update_mode: Known values are: "Manual" and "Rolling". - :paramtype update_mode: str or ~azure.mgmt.containerinstance.models.NGroupUpdateMode - :keyword rolling_update_profile: This profile allows the customers to customize the rolling - update. - :paramtype rolling_update_profile: - ~azure.mgmt.containerinstance.models.UpdateProfileRollingUpdateProfile - """ - super().__init__(**kwargs) - self.update_mode = update_mode - self.rolling_update_profile = rolling_update_profile - - -class UpdateProfileRollingUpdateProfile(_serialization.Model): - """This profile allows the customers to customize the rolling update. - - :ivar max_batch_percent: Maximum percentage of total Container Groups which can be updated - simultaneously by rolling update in one batch. - :vartype max_batch_percent: int - :ivar max_unhealthy_percent: Maximum percentage of the updated Container Groups which can be in - unhealthy state after each batch is updated. - :vartype max_unhealthy_percent: int - :ivar pause_time_between_batches: The wait time between batches after completing the one batch - of the rolling update and starting the next batch. The time duration should be specified in ISO - 8601 format for duration. - :vartype pause_time_between_batches: str - :ivar in_place_update: Default is false. If set to true, the CGs will be updated in-place - instead of creating new CG and deleting old ones. - :vartype in_place_update: bool - """ - - _attribute_map = { - "max_batch_percent": {"key": "maxBatchPercent", "type": "int"}, - "max_unhealthy_percent": {"key": "maxUnhealthyPercent", "type": "int"}, - "pause_time_between_batches": {"key": "pauseTimeBetweenBatches", "type": "str"}, - "in_place_update": {"key": "inPlaceUpdate", "type": "bool"}, - } - - def __init__( - self, - *, - max_batch_percent: Optional[int] = None, - max_unhealthy_percent: Optional[int] = None, - pause_time_between_batches: Optional[str] = None, - in_place_update: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword max_batch_percent: Maximum percentage of total Container Groups which can be updated - simultaneously by rolling update in one batch. - :paramtype max_batch_percent: int - :keyword max_unhealthy_percent: Maximum percentage of the updated Container Groups which can be - in unhealthy state after each batch is updated. - :paramtype max_unhealthy_percent: int - :keyword pause_time_between_batches: The wait time between batches after completing the one - batch of the rolling update and starting the next batch. The time duration should be specified - in ISO 8601 format for duration. - :paramtype pause_time_between_batches: str - :keyword in_place_update: Default is false. If set to true, the CGs will be updated in-place - instead of creating new CG and deleting old ones. - :paramtype in_place_update: bool - """ - super().__init__(**kwargs) - self.max_batch_percent = max_batch_percent - self.max_unhealthy_percent = max_unhealthy_percent - self.pause_time_between_batches = pause_time_between_batches - self.in_place_update = in_place_update - - -class Usage(_serialization.Model): - """A single usage result. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Id of the usage result. - :vartype id: str - :ivar unit: Unit of the usage result. - :vartype unit: str - :ivar current_value: The current usage of the resource. - :vartype current_value: int - :ivar limit: The maximum permitted usage of the resource. - :vartype limit: int - :ivar name: The name object of the resource. - :vartype name: ~azure.mgmt.containerinstance.models.UsageName - """ - - _validation = { - "id": {"readonly": True}, - "unit": {"readonly": True}, - "current_value": {"readonly": True}, - "limit": {"readonly": True}, - "name": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "current_value": {"key": "currentValue", "type": "int"}, - "limit": {"key": "limit", "type": "int"}, - "name": {"key": "name", "type": "UsageName"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.unit: Optional[str] = None - self.current_value: Optional[int] = None - self.limit: Optional[int] = None - self.name: Optional["_models.UsageName"] = None - - -class UsageListResult(_serialization.Model): - """The response containing the usage data. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: The usage data. - :vartype value: list[~azure.mgmt.containerinstance.models.Usage] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[Usage]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value: Optional[list["_models.Usage"]] = None - - -class UsageName(_serialization.Model): - """The name object of the resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: The name of the resource. - :vartype value: str - :ivar localized_value: The localized name of the resource. - :vartype localized_value: str - """ - - _validation = { - "value": {"readonly": True}, - "localized_value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "localized_value": {"key": "localizedValue", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value: Optional[str] = None - self.localized_value: Optional[str] = None - - -class UserAssignedIdentities(_serialization.Model): - """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}'. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: The principal id of user assigned identity. - :vartype principal_id: str - :ivar client_id: The client id of user assigned identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id: Optional[str] = None - self.client_id: Optional[str] = None - - -class Volume(_serialization.Model): - """The properties of the volume. - - All required parameters must be populated in order to send to server. - - :ivar name: The name of the volume. Required. - :vartype name: str - :ivar azure_file: The Azure File volume. - :vartype azure_file: ~azure.mgmt.containerinstance.models.AzureFileVolume - :ivar empty_dir: The empty directory volume. - :vartype empty_dir: JSON - :ivar secret: The secret volume. - :vartype secret: dict[str, str] - :ivar secret_reference: The secret reference volume. - :vartype secret_reference: dict[str, str] - :ivar git_repo: The git repo volume. - :vartype git_repo: ~azure.mgmt.containerinstance.models.GitRepoVolume - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "azure_file": {"key": "azureFile", "type": "AzureFileVolume"}, - "empty_dir": {"key": "emptyDir", "type": "object"}, - "secret": {"key": "secret", "type": "{str}"}, - "secret_reference": {"key": "secretReference", "type": "{str}"}, - "git_repo": {"key": "gitRepo", "type": "GitRepoVolume"}, - } - - def __init__( - self, - *, - name: str, - azure_file: Optional["_models.AzureFileVolume"] = None, - empty_dir: Optional[JSON] = None, - secret: Optional[dict[str, str]] = None, - secret_reference: Optional[dict[str, str]] = None, - git_repo: Optional["_models.GitRepoVolume"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the volume. Required. - :paramtype name: str - :keyword azure_file: The Azure File volume. - :paramtype azure_file: ~azure.mgmt.containerinstance.models.AzureFileVolume - :keyword empty_dir: The empty directory volume. - :paramtype empty_dir: JSON - :keyword secret: The secret volume. - :paramtype secret: dict[str, str] - :keyword secret_reference: The secret reference volume. - :paramtype secret_reference: dict[str, str] - :keyword git_repo: The git repo volume. - :paramtype git_repo: ~azure.mgmt.containerinstance.models.GitRepoVolume - """ - super().__init__(**kwargs) - self.name = name - self.azure_file = azure_file - self.empty_dir = empty_dir - self.secret = secret - self.secret_reference = secret_reference - self.git_repo = git_repo - - -class VolumeMount(_serialization.Model): - """The properties of the volume mount. - - All required parameters must be populated in order to send to server. - - :ivar name: The name of the volume mount. Required. - :vartype name: str - :ivar mount_path: The path within the container where the volume should be mounted. Must not - contain colon (:). Required. - :vartype mount_path: str - :ivar read_only: The flag indicating whether the volume mount is read-only. - :vartype read_only: bool - """ - - _validation = { - "name": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - } - - def __init__(self, *, name: str, mount_path: str, read_only: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the volume mount. Required. - :paramtype name: str - :keyword mount_path: The path within the container where the volume should be mounted. Must not - contain colon (:). Required. - :paramtype mount_path: str - :keyword read_only: The flag indicating whether the volume mount is read-only. - :paramtype read_only: bool - """ - super().__init__(**kwargs) - self.name = name - self.mount_path = mount_path - self.read_only = read_only diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_patch.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_patch.py index f7dd32510333..87676c65a8f0 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_patch.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_patch.py @@ -1,14 +1,15 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -from typing import List -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/__init__.py index 88d90a09aa65..4530e3413347 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,28 +12,28 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._container_groups_operations import ContainerGroupsOperations # type: ignore from ._operations import Operations # type: ignore -from ._location_operations import LocationOperations # type: ignore -from ._containers_operations import ContainersOperations # type: ignore -from ._subnet_service_association_link_operations import SubnetServiceAssociationLinkOperations # type: ignore -from ._ngroups_operations import NGroupsOperations # type: ignore -from ._cg_profiles_operations import CGProfilesOperations # type: ignore -from ._cg_profile_operations import CGProfileOperations # type: ignore +from ._operations import ContainerGroupsOperations # type: ignore +from ._operations import NGroupsOperations # type: ignore +from ._operations import CGProfileOperations # type: ignore +from ._operations import ContainersOperations # type: ignore +from ._operations import CGProfilesOperations # type: ignore +from ._operations import LocationOperations # type: ignore +from ._operations import SubnetServiceAssociationLinkOperations # type: ignore from ._patch import __all__ as _patch_all from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ - "ContainerGroupsOperations", "Operations", - "LocationOperations", - "ContainersOperations", - "SubnetServiceAssociationLinkOperations", + "ContainerGroupsOperations", "NGroupsOperations", - "CGProfilesOperations", "CGProfileOperations", + "ContainersOperations", + "CGProfilesOperations", + "LocationOperations", + "SubnetServiceAssociationLinkOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profile_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profile_operations.py deleted file mode 100644 index 2a3eafbc15f0..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profile_operations.py +++ /dev/null @@ -1,877 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import ContainerInstanceManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_create_or_update_request( - resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupProfileName": _SERIALIZER.url( - "container_group_profile_name", - container_group_profile_name, - "str", - max_length=63, - min_length=1, - pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupProfileName": _SERIALIZER.url( - "container_group_profile_name", - container_group_profile_name, - "str", - max_length=63, - min_length=1, - pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupProfileName": _SERIALIZER.url( - "container_group_profile_name", - container_group_profile_name, - "str", - max_length=63, - min_length=1, - pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupProfileName": _SERIALIZER.url( - "container_group_profile_name", - container_group_profile_name, - "str", - max_length=63, - min_length=1, - pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_all_revisions_request( - resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupProfileName": _SERIALIZER.url( - "container_group_profile_name", - container_group_profile_name, - "str", - max_length=63, - min_length=1, - pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_by_revision_number_request( - resource_group_name: str, - container_group_profile_name: str, - revision_number: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions/{revisionNumber}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupProfileName": _SERIALIZER.url( - "container_group_profile_name", - container_group_profile_name, - "str", - max_length=63, - min_length=1, - pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), - "revisionNumber": _SERIALIZER.url("revision_number", revision_number, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CGProfileOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s - :attr:`cg_profile` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - def create_or_update( - self, - resource_group_name: str, - container_group_profile_name: str, - container_group_profile: _models.ContainerGroupProfile, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Create or Update a ContainerGroupProfile. - - Create a CGProfile if it doesn't exist or update an existing CGProfile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param container_group_profile: The ContainerGroupProfile object. Required. - :type container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - container_group_profile_name: str, - container_group_profile: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Create or Update a ContainerGroupProfile. - - Create a CGProfile if it doesn't exist or update an existing CGProfile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param container_group_profile: The ContainerGroupProfile object. Required. - :type container_group_profile: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - container_group_profile_name: str, - container_group_profile: Union[_models.ContainerGroupProfile, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Create or Update a ContainerGroupProfile. - - Create a CGProfile if it doesn't exist or update an existing CGProfile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param container_group_profile: The ContainerGroupProfile object. Is either a - ContainerGroupProfile type or a IO[bytes] type. Required. - :type container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfile or - IO[bytes] - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_group_profile, (IOBase, bytes)): - _content = container_group_profile - else: - _json = self._serialize.body(container_group_profile, "ContainerGroupProfile") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["x-ms-correlation-request-id"] = self._deserialize( - "str", response.headers.get("x-ms-correlation-request-id") - ) - - deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def update( - self, - resource_group_name: str, - container_group_profile_name: str, - properties: _models.ContainerGroupProfilePatch, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Container group profile PATCH REST API. - - Update a specified container group profile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param properties: The container group profile properties that need to be updated. Required. - :type properties: ~azure.mgmt.containerinstance.models.ContainerGroupProfilePatch - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update( - self, - resource_group_name: str, - container_group_profile_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Container group profile PATCH REST API. - - Update a specified container group profile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param properties: The container group profile properties that need to be updated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update( - self, - resource_group_name: str, - container_group_profile_name: str, - properties: Union[_models.ContainerGroupProfilePatch, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Container group profile PATCH REST API. - - Update a specified container group profile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param properties: The container group profile properties that need to be updated. Is either a - ContainerGroupProfilePatch type or a IO[bytes] type. Required. - :type properties: ~azure.mgmt.containerinstance.models.ContainerGroupProfilePatch or IO[bytes] - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "ContainerGroupProfilePatch") - - _request = build_update_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["x-ms-correlation-request-id"] = self._deserialize( - "str", response.headers.get("x-ms-correlation-request-id") - ) - - deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Display information about a specified ContainerGroupProfile. - - Get the properties of the specified container group profile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any - ) -> None: - """Container group profile DELETE REST API. - - Deletes a container group profile. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def list_all_revisions( - self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any - ) -> ItemPaged["_models.ContainerGroupProfile"]: - """Get a list of all the revisions of the specified container group profile in the given - subscription and resource 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :return: An iterator like instance of either ContainerGroupProfile or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_all_revisions_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_by_revision_number( - self, resource_group_name: str, container_group_profile_name: str, revision_number: str, **kwargs: Any - ) -> _models.ContainerGroupProfile: - """Get the properties of the specified revision of the container group profile. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_profile_name: ContainerGroupProfile name. Required. - :type container_group_profile_name: str - :param revision_number: The revision number of the container group profile. Required. - :type revision_number: str - :return: ContainerGroupProfile or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) - - _request = build_get_by_revision_number_request( - resource_group_name=resource_group_name, - container_group_profile_name=container_group_profile_name, - revision_number=revision_number, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerGroupProfile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profiles_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profiles_operations.py deleted file mode 100644 index 14ac72b71ee9..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_cg_profiles_operations.py +++ /dev/null @@ -1,278 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import ContainerInstanceManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroupProfiles" - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_resource_group_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CGProfilesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s - :attr:`cg_profiles` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ContainerGroupProfile"]: - """List container group profiles in a subscription. - - Gets a list of all container group profiles under a subscription. - - :return: An iterator like instance of either ContainerGroupProfile or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> ItemPaged["_models.ContainerGroupProfile"]: - """List container group profiles in a resource group. - - Gets a list of all container group profiles under a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either ContainerGroupProfile or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupProfileListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupProfileListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_groups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_groups_operations.py deleted file mode 100644 index c570d798644c..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_container_groups_operations.py +++ /dev/null @@ -1,1387 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerInstanceManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups" - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_resource_group_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_outbound_network_dependencies_endpoints_request( # pylint: disable=name-too-long - resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ContainerGroupsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s - :attr:`container_groups` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, **kwargs: Any) -> ItemPaged["_models.ListResultContainerGroup"]: - """Get a list of container groups in the specified subscription. - - 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. - - :return: An iterator like instance of either ListResultContainerGroup or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ListResultContainerGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> ItemPaged["_models.ListResultContainerGroup"]: - """Get a list of container groups in the specified subscription and resource group. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either ListResultContainerGroup or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ListResultContainerGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroupListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerGroupListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> _models.ContainerGroup: - """Get the properties of the specified container group. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :return: ContainerGroup or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerGroup", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - container_group_name: str, - container_group: Union[_models.ContainerGroup, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_group, (IOBase, bytes)): - _content = container_group - else: - _json = self._serialize.body(container_group, "ContainerGroup") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - container_group_name: str, - container_group: _models.ContainerGroup, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerGroup]: - """Create or update container groups. - - Create or update container groups with specified configurations. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_group: The properties of the container group to be created or updated. - Required. - :type container_group: ~azure.mgmt.containerinstance.models.ContainerGroup - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerGroup or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - container_group_name: str, - container_group: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerGroup]: - """Create or update container groups. - - Create or update container groups with specified configurations. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_group: The properties of the container group to be created or updated. - Required. - :type container_group: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerGroup or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - container_group_name: str, - container_group: Union[_models.ContainerGroup, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerGroup]: - """Create or update container groups. - - Create or update container groups with specified configurations. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_group: The properties of the container group to be created or updated. Is - either a ContainerGroup type or a IO[bytes] type. Required. - :type container_group: ~azure.mgmt.containerinstance.models.ContainerGroup or IO[bytes] - :return: An instance of LROPoller that returns either ContainerGroup or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - container_group=container_group, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerGroup", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerGroup].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerGroup]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def update( - self, - resource_group_name: str, - container_group_name: str, - resource: _models.Resource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerGroup: - """Update container groups. - - Updates container group tags with specified values. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param resource: The container group resource with just the tags to be updated. Required. - :type resource: ~azure.mgmt.containerinstance.models.Resource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerGroup or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update( - self, - resource_group_name: str, - container_group_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerGroup: - """Update container groups. - - Updates container group tags with specified values. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param resource: The container group resource with just the tags to be updated. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerGroup or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update( - self, - resource_group_name: str, - container_group_name: str, - resource: Union[_models.Resource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerGroup: - """Update container groups. - - Updates container group tags with specified values. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param resource: The container group resource with just the tags to be updated. Is either a - Resource type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.containerinstance.models.Resource or IO[bytes] - :return: ContainerGroup or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "Resource") - - _request = build_update_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerGroup", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _delete_initial(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, container_group_name: str, **kwargs: Any - ) -> LROPoller[_models.ContainerGroup]: - """Delete the specified container group. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :return: An instance of LROPoller that returns either ContainerGroup or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerGroup", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerGroup].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerGroup]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _restart_initial(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_restart(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> LROPoller[None]: - """Restarts all containers in a container group. - - Restarts all containers in a container group in place. If container image has updates, new - image will be downloaded. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def stop( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, container_group_name: str, **kwargs: Any - ) -> None: - """Stops all containers in a container group. - - Stops all containers in a container group. Compute resources will be deallocated and billing - will stop. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - def _start_initial(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> LROPoller[None]: - """Starts all containers in a container group. - - Starts all containers in a container group. Compute resources will be allocated and billing - will start. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def get_outbound_network_dependencies_endpoints( # pylint: disable=name-too-long - self, resource_group_name: str, container_group_name: str, **kwargs: Any - ) -> List[str]: - """Get all network dependencies for container group. - - 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. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :return: list of str or the result of cls(response) - :rtype: list[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[List[str]] = kwargs.pop("cls", None) - - _request = build_get_outbound_network_dependencies_endpoints_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_containers_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_containers_operations.py deleted file mode 100644 index a0b7c12472cb..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_containers_operations.py +++ /dev/null @@ -1,465 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import ContainerInstanceManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_logs_request( - resource_group_name: str, - container_group_name: str, - container_name: str, - subscription_id: str, - *, - tail: Optional[int] = None, - timestamps: Optional[bool] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), - "containerName": _SERIALIZER.url("container_name", container_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if tail is not None: - _params["tail"] = _SERIALIZER.query("tail", tail, "int") - if timestamps is not None: - _params["timestamps"] = _SERIALIZER.query("timestamps", timestamps, "bool") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_execute_command_request( - resource_group_name: str, container_group_name: str, container_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), - "containerName": _SERIALIZER.url("container_name", container_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_attach_request( - resource_group_name: str, container_group_name: str, container_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), - "containerName": _SERIALIZER.url("container_name", container_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ContainersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s - :attr:`containers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_logs( - self, - resource_group_name: str, - container_group_name: str, - container_name: str, - tail: Optional[int] = None, - timestamps: Optional[bool] = None, - **kwargs: Any - ) -> _models.Logs: - """Get the logs for a specified container instance. - - Get the logs for a specified container instance in a specified resource group and container - group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_name: The name of the container instance. Required. - :type container_name: str - :param tail: 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. Default value is None. - :type tail: int - :param timestamps: If true, adds a timestamp at the beginning of every line of log output. If - not provided, defaults to false. Default value is None. - :type timestamps: bool - :return: Logs or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.Logs - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Logs] = kwargs.pop("cls", None) - - _request = build_list_logs_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - container_name=container_name, - subscription_id=self._config.subscription_id, - tail=tail, - timestamps=timestamps, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Logs", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def execute_command( - self, - resource_group_name: str, - container_group_name: str, - container_name: str, - container_exec_request: _models.ContainerExecRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerExecResponse: - """Executes a command in a specific container instance. - - Executes a command for a specific container instance in a specified resource group and - container group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_name: The name of the container instance. Required. - :type container_name: str - :param container_exec_request: The request for the exec command. Required. - :type container_exec_request: ~azure.mgmt.containerinstance.models.ContainerExecRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerExecResponse or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def execute_command( - self, - resource_group_name: str, - container_group_name: str, - container_name: str, - container_exec_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ContainerExecResponse: - """Executes a command in a specific container instance. - - Executes a command for a specific container instance in a specified resource group and - container group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_name: The name of the container instance. Required. - :type container_name: str - :param container_exec_request: The request for the exec command. Required. - :type container_exec_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ContainerExecResponse or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def execute_command( - self, - resource_group_name: str, - container_group_name: str, - container_name: str, - container_exec_request: Union[_models.ContainerExecRequest, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerExecResponse: - """Executes a command in a specific container instance. - - Executes a command for a specific container instance in a specified resource group and - container group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_name: The name of the container instance. Required. - :type container_name: str - :param container_exec_request: The request for the exec command. Is either a - ContainerExecRequest type or a IO[bytes] type. Required. - :type container_exec_request: ~azure.mgmt.containerinstance.models.ContainerExecRequest or - IO[bytes] - :return: ContainerExecResponse or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerExecResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_exec_request, (IOBase, bytes)): - _content = container_exec_request - else: - _json = self._serialize.body(container_exec_request, "ContainerExecRequest") - - _request = build_execute_command_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - container_name=container_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerExecResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def attach( - self, resource_group_name: str, container_group_name: str, container_name: str, **kwargs: Any - ) -> _models.ContainerAttachResponse: - """Attach to the output of a specific container instance. - - Attach to the output stream of a specific container instance in a specified resource group and - container group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_group_name: The name of the container group. Required. - :type container_group_name: str - :param container_name: The name of the container instance. Required. - :type container_name: str - :return: ContainerAttachResponse or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.ContainerAttachResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerAttachResponse] = kwargs.pop("cls", None) - - _request = build_attach_request( - resource_group_name=resource_group_name, - container_group_name=container_group_name, - container_name=container_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerAttachResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_location_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_location_operations.py deleted file mode 100644 index 6e448d64d8a2..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_location_operations.py +++ /dev/null @@ -1,378 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import ContainerInstanceManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_usage_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str", min_length=1), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_cached_images_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str", min_length=1), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_capabilities_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str", min_length=1), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class LocationOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s - :attr:`location` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_usage(self, location: str, **kwargs: Any) -> ItemPaged["_models.Usage"]: - """Get the usage for a subscription. - - :param location: The name of the Azure region. Required. - :type location: str - :return: An iterator like instance of either Usage or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.Usage] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.UsageListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_usage_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("UsageListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_cached_images(self, location: str, **kwargs: Any) -> ItemPaged["_models.CachedImages"]: - """Get the list of cached images. - - Get the list of cached images on specific OS type for a subscription in a region. - - :param location: The name of the Azure region. Required. - :type location: str - :return: An iterator like instance of either CachedImages or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.CachedImages] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CachedImagesListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_cached_images_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CachedImagesListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_capabilities(self, location: str, **kwargs: Any) -> ItemPaged["_models.Capabilities"]: - """Get the list of capabilities of the location. - - Get the list of CPU/memory/GPU capabilities of a region. - - :param location: The name of the Azure region. Required. - :type location: str - :return: An iterator like instance of either Capabilities or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.Capabilities] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CapabilitiesListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_capabilities_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CapabilitiesListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_ngroups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_ngroups_operations.py deleted file mode 100644 index 0ff80f06f337..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_ngroups_operations.py +++ /dev/null @@ -1,1431 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerInstanceManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "ngroupsName": _SERIALIZER.url( - "ngroups_name", - ngroups_name, - "str", - max_length=63, - min_length=1, - pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "ngroupsName": _SERIALIZER.url( - "ngroups_name", - ngroups_name, - "str", - max_length=63, - min_length=1, - pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "ngroupsName": _SERIALIZER.url( - "ngroups_name", - ngroups_name, - "str", - max_length=63, - min_length=1, - pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "ngroupsName": _SERIALIZER.url( - "ngroups_name", - ngroups_name, - "str", - max_length=63, - min_length=1, - pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/start", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "ngroupsName": _SERIALIZER.url( - "ngroups_name", - ngroups_name, - "str", - max_length=63, - min_length=1, - pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/stop", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "ngroupsName": _SERIALIZER.url( - "ngroups_name", - ngroups_name, - "str", - max_length=63, - min_length=1, - pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/restart", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "ngroupsName": _SERIALIZER.url( - "ngroups_name", - ngroups_name, - "str", - max_length=63, - min_length=1, - pattern=r"^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_resource_group_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/ngroups") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class NGroupsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s - :attr:`ngroups` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> _models.NGroup: - """NGroups GET REST API. - - Get the properties of the specified NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :return: NGroup or the result of cls(response) - :rtype: ~azure.mgmt.containerinstance.models.NGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NGroup", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroup, IO[bytes]], **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(n_group, (IOBase, bytes)): - _content = n_group - else: - _json = self._serialize.body(n_group, "NGroup") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - ngroups_name: str, - n_group: _models.NGroup, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.NGroup]: - """NGroup PUT REST API. - - Create or update a NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :param n_group: The NGroup object. Required. - :type n_group: ~azure.mgmt.containerinstance.models.NGroup - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either NGroup or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - ngroups_name: str, - n_group: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.NGroup]: - """NGroup PUT REST API. - - Create or update a NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :param n_group: The NGroup object. Required. - :type n_group: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either NGroup or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroup, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.NGroup]: - """NGroup PUT REST API. - - Create or update a NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :param n_group: The NGroup object. Is either a NGroup type or a IO[bytes] type. Required. - :type n_group: ~azure.mgmt.containerinstance.models.NGroup or IO[bytes] - :return: An instance of LROPoller that returns either NGroup or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - n_group=n_group, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = self._deserialize("NGroup", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.NGroup].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.NGroup]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_initial( - self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroupPatch, IO[bytes]], **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(n_group, (IOBase, bytes)): - _content = n_group - else: - _json = self._serialize.body(n_group, "NGroupPatch") - - _request = build_update_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - if response.status_code == 202: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - ngroups_name: str, - n_group: _models.NGroupPatch, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.NGroup]: - """NGroups PATCH REST API. - - Update a specified NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :param n_group: The NGroup object. Required. - :type n_group: ~azure.mgmt.containerinstance.models.NGroupPatch - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either NGroup or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - ngroups_name: str, - n_group: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.NGroup]: - """NGroups PATCH REST API. - - Update a specified NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :param n_group: The NGroup object. Required. - :type n_group: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either NGroup or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, resource_group_name: str, ngroups_name: str, n_group: Union[_models.NGroupPatch, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.NGroup]: - """NGroups PATCH REST API. - - Update a specified NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :param n_group: The NGroup object. Is either a NGroupPatch type or a IO[bytes] type. Required. - :type n_group: ~azure.mgmt.containerinstance.models.NGroupPatch or IO[bytes] - :return: An instance of LROPoller that returns either NGroup or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - n_group=n_group, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = self._deserialize("NGroup", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.NGroup].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.NGroup]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> LROPoller[None]: - """NGroups Delete REST API. - - Deletes the NGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> LROPoller[None]: - """Starts all container groups in the specified NGroups resource. - - Starts all container groups in the specified NGroups resource. Compute resources will be - allocated and billing will start. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def stop( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, ngroups_name: str, **kwargs: Any - ) -> None: - """Stops all container groups in the specified NGroups resource. - - Stops all container groups in the specified NGroups resource. Compute resources will be - deallocated and billing will stop. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - def _restart_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_restart(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> LROPoller[None]: - """Restarts all container groups in the specified NGroups resource. - - Restarts all container groups in the specified NGroups resource in place. If container image - has updates, new image will be downloaded. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ngroups_name: The NGroups name. Required. - :type ngroups_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( - resource_group_name=resource_group_name, - ngroups_name=ngroups_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.NGroup"]: - """GET NGroups under a resource group REST API. - - Gets a list of all NGroups resources under a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either NGroup or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.NGroupsListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("NGroupsListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, **kwargs: Any) -> ItemPaged["_models.NGroup"]: - """List NGroups in a subscription. - - Gets a list of all NGroups resources under a subscription. - - :return: An iterator like instance of either NGroup or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.NGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.NGroupsListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("NGroupsListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_operations.py index cd89b6b76dca..b3b0ad4dbb9b 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_operations.py @@ -1,12 +1,15 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar +from io import IOBase +import json +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import PipelineClient @@ -16,28 +19,34 @@ ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, + StreamClosedError, + StreamConsumedError, map_error, ) from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod from azure.core.rest import HttpRequest, HttpResponse from azure.core.tracing.decorator import distributed_trace from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models as _models -from .._configuration import ContainerInstanceManagementClientConfiguration +from .._configuration import ContainerInstanceClientConfiguration +from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +JSON = MutableMapping[str, Any] List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -def build_list_request(**kwargs: Any) -> HttpRequest: +def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) @@ -45,7 +54,7 @@ def build_list_request(**kwargs: Any) -> HttpRequest: accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.ContainerInstance/operations") + _url = "/providers/Microsoft.ContainerInstance/operations" # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -56,40 +65,4991 @@ def build_list_request(**kwargs: Any) -> HttpRequest: return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) +def build_container_groups_get_request( + resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_groups_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_groups_update_request( + resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_groups_delete_request( + resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_groups_restart_request( + resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_container_groups_stop_request( + resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_container_groups_start_request( + resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_container_groups_get_outbound_network_dependencies_endpoints_request( # pylint: disable=name-too-long + resource_group_name: str, container_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_groups_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_groups_list_by_resource_group_request( # pylint: disable=name-too-long + resource_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_ngroups_get_request( + resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "ngroupsName": _SERIALIZER.url("ngroups_name", ngroups_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_ngroups_create_or_update_request( + resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "ngroupsName": _SERIALIZER.url("ngroups_name", ngroups_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_ngroups_update_request( + resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "ngroupsName": _SERIALIZER.url("ngroups_name", ngroups_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_ngroups_delete_request( + resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "ngroupsName": _SERIALIZER.url("ngroups_name", ngroups_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_ngroups_list_by_resource_group_request( # pylint: disable=name-too-long + resource_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_ngroups_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/ngroups" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_ngroups_start_request( + resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/start" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "ngroupsName": _SERIALIZER.url("ngroups_name", ngroups_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_ngroups_stop_request( + resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/stop" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "ngroupsName": _SERIALIZER.url("ngroups_name", ngroups_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_ngroups_restart_request( + resource_group_name: str, ngroups_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/restart" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "ngroupsName": _SERIALIZER.url("ngroups_name", ngroups_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_cg_profile_get_by_revision_number_request( # pylint: disable=name-too-long + resource_group_name: str, + container_group_profile_name: str, + revision_number: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions/{revisionNumber}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupProfileName": _SERIALIZER.url( + "container_group_profile_name", container_group_profile_name, "str" + ), + "revisionNumber": _SERIALIZER.url("revision_number", revision_number, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_cg_profile_list_all_revisions_request( # pylint: disable=name-too-long + resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupProfileName": _SERIALIZER.url( + "container_group_profile_name", container_group_profile_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_cg_profile_get_request( + resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupProfileName": _SERIALIZER.url( + "container_group_profile_name", container_group_profile_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_cg_profile_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupProfileName": _SERIALIZER.url( + "container_group_profile_name", container_group_profile_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_cg_profile_update_request( + resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupProfileName": _SERIALIZER.url( + "container_group_profile_name", container_group_profile_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_cg_profile_delete_request( + resource_group_name: str, container_group_profile_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupProfileName": _SERIALIZER.url( + "container_group_profile_name", container_group_profile_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_containers_list_logs_request( + resource_group_name: str, + container_group_name: str, + container_name: str, + subscription_id: str, + *, + tail: Optional[int] = None, + timestamps: Optional[bool] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), + "containerName": _SERIALIZER.url("container_name", container_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if tail is not None: + _params["tail"] = _SERIALIZER.query("tail", tail, "int") + if timestamps is not None: + _params["timestamps"] = _SERIALIZER.query("timestamps", timestamps, "bool") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_containers_execute_command_request( + resource_group_name: str, container_group_name: str, container_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), + "containerName": _SERIALIZER.url("container_name", container_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_containers_attach_request( + resource_group_name: str, container_group_name: str, container_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerGroupName": _SERIALIZER.url("container_group_name", container_group_name, "str"), + "containerName": _SERIALIZER.url("container_name", container_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_cg_profiles_list_by_subscription_request( # pylint: disable=name-too-long + subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroupProfiles" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_cg_profiles_list_by_resource_group_request( # pylint: disable=name-too-long + resource_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_location_list_usage_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "location": _SERIALIZER.url("location", location, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_location_list_cached_images_request( # pylint: disable=name-too-long + location: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "location": _SERIALIZER.url("location", location, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_location_list_capabilities_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "location": _SERIALIZER.url("location", location, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_subnet_service_association_link_delete_request( # pylint: disable=name-too-long + resource_group_name: str, virtual_network_name: str, subnet_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "virtualNetworkName": _SERIALIZER.url("virtual_network_name", virtual_network_name, "str"), + "subnetName": _SERIALIZER.url("subnet_name", subnet_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + class Operations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s - :attr:`operations` attribute. + :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :attr:`operations` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged["_models.Operation"]: + """List the operations for the provider. + + :return: An iterator like instance of Operation + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.Operation] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Operation]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_operations_list_request( + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Operation], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ContainerGroupsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :attr:`container_groups` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> _models.ContainerGroup: + """Get the properties of the specified container group. + + 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :return: ContainerGroup. The ContainerGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) + + _request = build_container_groups_get_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerGroup, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + container_group_name: str, + container_group: Union[_models.ContainerGroup, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(container_group, (IOBase, bytes)): + _content = container_group + else: + _content = json.dumps(container_group, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_groups_create_or_update_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + container_group_name: str, + container_group: _models.ContainerGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ContainerGroup]: + """Create or update container groups. + + Create or update container groups with specified configurations. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_group: The properties of the container group to be created or updated. + Required. + :type container_group: ~azure.mgmt.containerinstance.models.ContainerGroup + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ContainerGroup. The ContainerGroup is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + container_group_name: str, + container_group: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ContainerGroup]: + """Create or update container groups. + + Create or update container groups with specified configurations. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_group: The properties of the container group to be created or updated. + Required. + :type container_group: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ContainerGroup. The ContainerGroup is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + container_group_name: str, + container_group: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ContainerGroup]: + """Create or update container groups. + + Create or update container groups with specified configurations. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_group: The properties of the container group to be created or updated. + Required. + :type container_group: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ContainerGroup. The ContainerGroup is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + container_group_name: str, + container_group: Union[_models.ContainerGroup, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.ContainerGroup]: + """Create or update container groups. + + Create or update container groups with specified configurations. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_group: The properties of the container group to be created or updated. Is one + of the following types: ContainerGroup, JSON, IO[bytes] Required. + :type container_group: ~azure.mgmt.containerinstance.models.ContainerGroup or JSON or IO[bytes] + :return: An instance of LROPoller that returns ContainerGroup. The ContainerGroup is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + container_group=container_group, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ContainerGroup, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ContainerGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ContainerGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @overload + def update( + self, + resource_group_name: str, + container_group_name: str, + resource: _models.Resource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroup: + """Update container groups. + + Updates container group tags with specified values. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param resource: The container group resource with just the tags to be updated. Required. + :type resource: ~azure.mgmt.containerinstance.models.Resource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroup. The ContainerGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + container_group_name: str, + resource: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroup: + """Update container groups. + + Updates container group tags with specified values. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param resource: The container group resource with just the tags to be updated. Required. + :type resource: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroup. The ContainerGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + container_group_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroup: + """Update container groups. + + Updates container group tags with specified values. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param resource: The container group resource with just the tags to be updated. Required. + :type resource: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroup. The ContainerGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + resource_group_name: str, + container_group_name: str, + resource: Union[_models.Resource, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ContainerGroup: + """Update container groups. + + Updates container group tags with specified values. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param resource: The container group resource with just the tags to be updated. Is one of the + following types: Resource, JSON, IO[bytes] Required. + :type resource: ~azure.mgmt.containerinstance.models.Resource or JSON or IO[bytes] + :return: ContainerGroup. The ContainerGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(resource, (IOBase, bytes)): + _content = resource + else: + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_groups_update_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerGroup, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _delete_initial(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_groups_delete_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, container_group_name: str, **kwargs: Any + ) -> LROPoller[_models.ContainerGroup]: + """Delete the specified container group. + + 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :return: An instance of LROPoller that returns ContainerGroup. The ContainerGroup is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.ContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerGroup] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ContainerGroup, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ContainerGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ContainerGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _restart_initial(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_groups_restart_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_restart(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> LROPoller[None]: + """Restarts all containers in a container group. + + Restarts all containers in a container group in place. If container image has updates, new + image will be downloaded. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._restart_initial( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def stop( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, container_group_name: str, **kwargs: Any + ) -> None: + """Stops all containers in a container group. + + Stops all containers in a container group. Compute resources will be deallocated and billing + will stop. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_container_groups_stop_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + def _start_initial(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_groups_start_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_start(self, resource_group_name: str, container_group_name: str, **kwargs: Any) -> LROPoller[None]: + """Starts all containers in a container group. + + Starts all containers in a container group. Compute resources will be allocated and billing + will start. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._start_initial( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def get_outbound_network_dependencies_endpoints( # pylint: disable=name-too-long + self, resource_group_name: str, container_group_name: str, **kwargs: Any + ) -> List[str]: + """Get all network dependencies for container group. + + 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :return: list of str + :rtype: list[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[str]] = kwargs.pop("cls", None) + + _request = build_container_groups_get_outbound_network_dependencies_endpoints_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(List[str], response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged["_models.ListResultContainerGroup"]: + """Get a list of container groups in the specified subscription. + + 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. + + :return: An iterator like instance of ListResultContainerGroup + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ListResultContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ListResultContainerGroup]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_groups_list_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ListResultContainerGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> ItemPaged["_models.ListResultContainerGroup"]: + """Get a list of container groups in the specified subscription and resource group. + + 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of ListResultContainerGroup + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ListResultContainerGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ListResultContainerGroup]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_groups_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ListResultContainerGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class NGroupsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :attr:`ngroups` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> _models.NGroup: + """NGroups GET REST API. + + Get the properties of the specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: NGroup. The NGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.NGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) + + _request = build_ngroups_get_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NGroup, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + ngroups_name: str, + n_group: Union[_models.NGroup, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(n_group, (IOBase, bytes)): + _content = n_group + else: + _content = json.dumps(n_group, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_ngroups_create_or_update_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 200: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: _models.NGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroup + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: Union[_models.NGroup, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroup PUT REST API. + + Create or update a NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Is one of the following types: NGroup, JSON, IO[bytes] + Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroup or JSON or IO[bytes] + :return: An instance of LROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + n_group=n_group, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + deserialized = _deserialize(_models.NGroup, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.NGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.NGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_initial( + self, + resource_group_name: str, + ngroups_name: str, + n_group: Union[_models.NGroupPatch, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(n_group, (IOBase, bytes)): + _content = n_group + else: + _content = json.dumps(n_group, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_ngroups_update_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 200: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: _models.NGroupPatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroupPatch + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Required. + :type n_group: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: Union[_models.NGroupPatch, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.NGroup]: + """NGroups PATCH REST API. + + Update a specified NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :param n_group: The NGroup object. Is one of the following types: NGroupPatch, JSON, IO[bytes] + Required. + :type n_group: ~azure.mgmt.containerinstance.models.NGroupPatch or JSON or IO[bytes] + :return: An instance of LROPoller that returns NGroup. The NGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NGroup] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + n_group=n_group, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + deserialized = _deserialize(_models.NGroup, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.NGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.NGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_ngroups_delete_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> LROPoller[None]: + """NGroups Delete REST API. + + Deletes the NGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.NGroup"]: + """GET NGroups under a resource group REST API. + + Gets a list of all NGroups resources under a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of NGroup + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.NGroup]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_ngroups_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.NGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged["_models.NGroup"]: + """List NGroups in a subscription. + + Gets a list of all NGroups resources under a subscription. + + :return: An iterator like instance of NGroup + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.NGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.NGroup]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_ngroups_list_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.NGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + def _start_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_ngroups_start_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_start(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> LROPoller[None]: + """Starts all container groups in the specified NGroups resource. + + Starts all container groups in the specified NGroups resource. Compute resources will be + allocated and billing will start. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._start_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def stop( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, ngroups_name: str, **kwargs: Any + ) -> None: + """Stops all container groups in the specified NGroups resource. + + Stops all container groups in the specified NGroups resource. Compute resources will be + deallocated and billing will stop. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_ngroups_stop_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + def _restart_initial(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_ngroups_restart_request( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_restart(self, resource_group_name: str, ngroups_name: str, **kwargs: Any) -> LROPoller[None]: + """Restarts all container groups in the specified NGroups resource. + + Restarts all container groups in the specified NGroups resource in place. If container image + has updates, new image will be downloaded. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ngroups_name: The NGroups name. Required. + :type ngroups_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._restart_initial( + resource_group_name=resource_group_name, + ngroups_name=ngroups_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class CGProfileOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :attr:`cg_profile` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get_by_revision_number( + self, resource_group_name: str, container_group_profile_name: str, revision_number: str, **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Get the properties of the specified revision of the container group profile. + + 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param revision_number: The revision number of the container group profile. Required. + :type revision_number: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) + + _request = build_cg_profile_get_by_revision_number_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + revision_number=revision_number, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerGroupProfile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_all_revisions( + self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any + ) -> ItemPaged["_models.ContainerGroupProfile"]: + """Get a list of all the revisions of the specified container group profile in the given + subscription and resource 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. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :return: An iterator like instance of ContainerGroupProfile + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerGroupProfile]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_cg_profile_list_all_revisions_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerGroupProfile], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def get( + self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Display information about a specified ContainerGroupProfile. + + Get the properties of the specified container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) + + _request = build_cg_profile_get_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerGroupProfile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + container_group_profile_name: str, + container_group_profile: _models.ContainerGroupProfile, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Create or Update a ContainerGroupProfile. + + Create a CGProfile if it doesn't exist or update an existing CGProfile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param container_group_profile: The ContainerGroupProfile object. Required. + :type container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + container_group_profile_name: str, + container_group_profile: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Create or Update a ContainerGroupProfile. + + Create a CGProfile if it doesn't exist or update an existing CGProfile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param container_group_profile: The ContainerGroupProfile object. Required. + :type container_group_profile: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + container_group_profile_name: str, + container_group_profile: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Create or Update a ContainerGroupProfile. + + Create a CGProfile if it doesn't exist or update an existing CGProfile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param container_group_profile: The ContainerGroupProfile object. Required. + :type container_group_profile: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + container_group_profile_name: str, + container_group_profile: Union[_models.ContainerGroupProfile, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Create or Update a ContainerGroupProfile. + + Create a CGProfile if it doesn't exist or update an existing CGProfile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param container_group_profile: The ContainerGroupProfile object. Is one of the following + types: ContainerGroupProfile, JSON, IO[bytes] Required. + :type container_group_profile: ~azure.mgmt.containerinstance.models.ContainerGroupProfile or + JSON or IO[bytes] + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(container_group_profile, (IOBase, bytes)): + _content = container_group_profile + else: + _content = json.dumps(container_group_profile, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_cg_profile_create_or_update_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerGroupProfile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: _models.ContainerGroupProfilePatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Container group profile PATCH REST API. + + Update a specified container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param properties: The container group profile properties that need to be updated. Required. + :type properties: ~azure.mgmt.containerinstance.models.ContainerGroupProfilePatch + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Container group profile PATCH REST API. + + Update a specified container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param properties: The container group profile properties that need to be updated. Required. + :type properties: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Container group profile PATCH REST API. + + Update a specified container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param properties: The container group profile properties that need to be updated. Required. + :type properties: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: Union[_models.ContainerGroupProfilePatch, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ContainerGroupProfile: + """Container group profile PATCH REST API. + + Update a specified container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :param properties: The container group profile properties that need to be updated. Is one of + the following types: ContainerGroupProfilePatch, JSON, IO[bytes] Required. + :type properties: ~azure.mgmt.containerinstance.models.ContainerGroupProfilePatch or JSON or + IO[bytes] + :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerGroupProfile] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(properties, (IOBase, bytes)): + _content = properties + else: + _content = json.dumps(properties, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_cg_profile_update_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerGroupProfile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, container_group_profile_name: str, **kwargs: Any + ) -> None: + """Container group profile DELETE REST API. + + Deletes a container group profile. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_profile_name: ContainerGroupProfile name. Required. + :type container_group_profile_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_cg_profile_delete_request( + resource_group_name=resource_group_name, + container_group_profile_name=container_group_profile_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + +class ContainersOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :attr:`containers` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list_logs( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + *, + tail: Optional[int] = None, + timestamps: Optional[bool] = None, + **kwargs: Any + ) -> _models.Logs: + """Get the logs for a specified container instance. + + Get the logs for a specified container instance in a specified resource group and container + group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_name: The name of the container instance. Required. + :type container_name: str + :keyword tail: 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. Default value is None. + :paramtype tail: int + :keyword timestamps: If true, adds a timestamp at the beginning of every line of log output. If + not provided, defaults to false. Default value is None. + :paramtype timestamps: bool + :return: Logs. The Logs is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.Logs + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Logs] = kwargs.pop("cls", None) + + _request = build_containers_list_logs_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + container_name=container_name, + subscription_id=self._config.subscription_id, + tail=tail, + timestamps=timestamps, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Logs, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def execute_command( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + container_exec_request: _models.ContainerExecRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerExecResponse: + """Executes a command in a specific container instance. + + Executes a command for a specific container instance in a specified resource group and + container group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_name: The name of the container instance. Required. + :type container_name: str + :param container_exec_request: The request for the exec command. Required. + :type container_exec_request: ~azure.mgmt.containerinstance.models.ContainerExecRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerExecResponse. The ContainerExecResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def execute_command( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + container_exec_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerExecResponse: + """Executes a command in a specific container instance. + + Executes a command for a specific container instance in a specified resource group and + container group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_name: The name of the container instance. Required. + :type container_name: str + :param container_exec_request: The request for the exec command. Required. + :type container_exec_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerExecResponse. The ContainerExecResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def execute_command( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + container_exec_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ContainerExecResponse: + """Executes a command in a specific container instance. + + Executes a command for a specific container instance in a specified resource group and + container group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_name: The name of the container instance. Required. + :type container_name: str + :param container_exec_request: The request for the exec command. Required. + :type container_exec_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ContainerExecResponse. The ContainerExecResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def execute_command( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + container_exec_request: Union[_models.ContainerExecRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ContainerExecResponse: + """Executes a command in a specific container instance. + + Executes a command for a specific container instance in a specified resource group and + container group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_name: The name of the container instance. Required. + :type container_name: str + :param container_exec_request: The request for the exec command. Is one of the following types: + ContainerExecRequest, JSON, IO[bytes] Required. + :type container_exec_request: ~azure.mgmt.containerinstance.models.ContainerExecRequest or JSON + or IO[bytes] + :return: ContainerExecResponse. The ContainerExecResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerExecResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(container_exec_request, (IOBase, bytes)): + _content = container_exec_request + else: + _content = json.dumps(container_exec_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_containers_execute_command_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + container_name=container_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerExecResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def attach( + self, resource_group_name: str, container_group_name: str, container_name: str, **kwargs: Any + ) -> _models.ContainerAttachResponse: + """Attach to the output of a specific container instance. + + Attach to the output stream of a specific container instance in a specified resource group and + container group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_group_name: The name of the container group. Required. + :type container_group_name: str + :param container_name: The name of the container instance. Required. + :type container_name: str + :return: ContainerAttachResponse. The ContainerAttachResponse is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.ContainerAttachResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAttachResponse] = kwargs.pop("cls", None) + + _request = build_containers_attach_request( + resource_group_name=resource_group_name, + container_group_name=container_group_name, + container_name=container_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerAttachResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class CGProfilesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :attr:`cg_profiles` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ContainerGroupProfile"]: + """List container group profiles in a subscription. + + Gets a list of all container group profiles under a subscription. + + :return: An iterator like instance of ContainerGroupProfile + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerGroupProfile]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_cg_profiles_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerGroupProfile], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> ItemPaged["_models.ContainerGroupProfile"]: + """List container group profiles in a resource group. + + Gets a list of all container group profiles under a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of ContainerGroupProfile + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.ContainerGroupProfile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerGroupProfile]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_cg_profiles_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerGroupProfile], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class LocationOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :attr:`location` attribute. """ - models = _models - def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def list(self, **kwargs: Any) -> ItemPaged["_models.Operation"]: - """List the operations for Azure Container Instance service. + def list_usage(self, location: str, **kwargs: Any) -> ItemPaged["_models.Usage"]: + """Get the usage for a subscription. - :return: An iterator like instance of either Operation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.Operation] + :param location: The location name. Required. + :type location: str + :return: An iterator like instance of Usage + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.Usage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Usage]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_location_list_usage_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Usage], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_cached_images(self, location: str, **kwargs: Any) -> ItemPaged["_models.CachedImages"]: + """Get the list of cached images. + + Get the list of cached images on specific OS type for a subscription in a region. + + :param location: The location name. Required. + :type location: str + :return: An iterator like instance of CachedImages + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.CachedImages] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.CachedImages]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_location_list_cached_images_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.CachedImages], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_capabilities(self, location: str, **kwargs: Any) -> ItemPaged["_models.Capabilities"]: + """Get the list of capabilities of the location. + + Get the list of CPU/memory/GPU capabilities of a region. + + :param location: The location name. Required. + :type location: str + :return: An iterator like instance of Capabilities + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.Capabilities] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None) + cls: ClsType[List[_models.Capabilities]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -102,12 +5062,19 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.Operation"]: def prepare_request(next_link=None): if not next_link: - _request = build_list_request( - api_version=api_version, + _request = build_location_list_capabilities_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) else: # make call to next link with the client's api-version @@ -122,16 +5089,24 @@ def prepare_request(next_link=None): _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + return _request def extract_data(pipeline_response): - deserialized = self._deserialize("OperationListResult", pipeline_response) - list_of_elem = deserialized.value + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Capabilities], + deserialized.get("value", []), + ) if cls: list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) + return deserialized.get("nextLink") or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) @@ -144,8 +5119,157 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data) + + +class SubnetServiceAssociationLinkOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :attr:`subnet_service_association_link` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + def _delete_initial( + self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_subnet_service_association_link_delete_request( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Delete container group virtual network association links. + + Delete container group virtual network association links. The operation does not delete other + resources provided by the user. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_patch.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_patch.py index f7dd32510333..87676c65a8f0 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_patch.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_patch.py @@ -1,14 +1,15 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -from typing import List -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_subnet_service_association_link_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_subnet_service_association_link_operations.py deleted file mode 100644 index 628e0922a411..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_subnet_service_association_link_operations.py +++ /dev/null @@ -1,208 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Iterator, Optional, TypeVar, Union, cast - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerInstanceManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_delete_request( - resource_group_name: str, virtual_network_name: str, subnet_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "virtualNetworkName": _SERIALIZER.url("virtual_network_name", virtual_network_name, "str"), - "subnetName": _SERIALIZER.url("subnet_name", subnet_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class SubnetServiceAssociationLinkOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s - :attr:`subnet_service_association_link` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - def _delete_initial( - self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subnet_name=subnet_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete container group virtual network association links. - - Delete container group virtual network association links. The operation does not delete other - resources provided by the user. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subnet_name=subnet_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/code_report_typespec.json b/sdk/containerinstance/azure-mgmt-containerinstance/code_report_typespec.json new file mode 100644 index 000000000000..67a5240c5d7b --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/code_report_typespec.json @@ -0,0 +1,17009 @@ +{ + "azure.mgmt.containerinstance": { + "class_nodes": { + "ContainerInstanceManagementClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "container_groups": { + "attr_type": "ContainerGroupsOperations" + }, + "operations": { + "attr_type": "Operations" + }, + "location": { + "attr_type": "LocationOperations" + }, + "containers": { + "attr_type": "ContainersOperations" + }, + "subnet_service_association_link": { + "attr_type": "SubnetServiceAssociationLinkOperations" + }, + "ngroups": { + "attr_type": "NGroupsOperations" + }, + "cg_profiles": { + "attr_type": "CGProfilesOperations" + }, + "cg_profile": { + "attr_type": "CGProfileOperations" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.containerinstance.operations": { + "class_nodes": { + "CGProfileOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "type": "ContainerGroupProfile", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_by_revision_number": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_number": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_all_revisions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "ContainerGroupProfilePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "CGProfilesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerGroupsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "type": "ContainerGroup", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_restart": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_outbound_network_dependencies_endpoints": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "Resource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ContainersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "attach": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "execute_command": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "type": "ContainerExecRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "list_logs": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tail": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "timestamps": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "LocationOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_cached_images": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_capabilities": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_usage": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "NGroupsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "NGroup", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_restart": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "NGroupPatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "Operations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "SubnetServiceAssociationLinkOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "virtual_network_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subnet_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + } + }, + "function_nodes": {} + }, + "azure.mgmt.containerinstance.models": { + "class_nodes": { + "ApiEntityReference": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": "id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ApplicationGateway": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "backend_address_pools": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource": { + "attr_type": "resource" + }, + "backend_address_pools": { + "attr_type": "backend_address_pools" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ApplicationGatewayBackendAddressPool": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource": { + "attr_type": "resource" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AzureFileShareAccessTier": { + "type": "Enum", + "methods": {}, + "properties": { + "COOL": "COOL", + "HOT": "HOT", + "PREMIUM": "PREMIUM", + "TRANSACTION_OPTIMIZED": "TRANSACTION_OPTIMIZED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AzureFileShareAccessType": { + "type": "Enum", + "methods": {}, + "properties": { + "EXCLUSIVE": "EXCLUSIVE", + "SHARED": "SHARED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AzureFileVolume": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "share_name": { + "default": null, + "param_type": "keyword_only" + }, + "storage_account_name": { + "default": null, + "param_type": "keyword_only" + }, + "read_only": { + "default": "none", + "param_type": "keyword_only" + }, + "storage_account_key": { + "default": "none", + "param_type": "keyword_only" + }, + "storage_account_key_reference": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "share_name": { + "attr_type": "share_name" + }, + "read_only": { + "attr_type": "read_only" + }, + "storage_account_name": { + "attr_type": "storage_account_name" + }, + "storage_account_key": { + "attr_type": "storage_account_key" + }, + "storage_account_key_reference": { + "attr_type": "storage_account_key_reference" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CachedImages": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "os_type": { + "default": null, + "param_type": "keyword_only" + }, + "image": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "os_type": { + "attr_type": "os_type" + }, + "image": { + "attr_type": "image" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CachedImagesListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Capabilities": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource_type": { + "attr_type": null + }, + "os_type": { + "attr_type": null + }, + "location": { + "attr_type": null + }, + "ip_address_type": { + "attr_type": null + }, + "gpu": { + "attr_type": null + }, + "capabilities": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CapabilitiesCapabilities": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "max_memory_in_gb": { + "attr_type": null + }, + "max_cpu": { + "attr_type": null + }, + "max_gpu_count": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CapabilitiesListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CloudErrorBody": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "code": { + "default": "none", + "param_type": "keyword_only" + }, + "message": { + "default": "none", + "param_type": "keyword_only" + }, + "target": { + "default": "none", + "param_type": "keyword_only" + }, + "details": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": "code" + }, + "message": { + "attr_type": "message" + }, + "target": { + "attr_type": "target" + }, + "details": { + "attr_type": "details" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConfidentialComputeProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "cce_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "cce_policy": { + "attr_type": "cce_policy" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConfigMap": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_value_pairs": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "key_value_pairs": { + "attr_type": "key_value_pairs" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Container": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "image": { + "default": "none", + "param_type": "keyword_only" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "ports": { + "default": "none", + "param_type": "keyword_only" + }, + "environment_variables": { + "default": "none", + "param_type": "keyword_only" + }, + "resources": { + "default": "none", + "param_type": "keyword_only" + }, + "volume_mounts": { + "default": "none", + "param_type": "keyword_only" + }, + "liveness_probe": { + "default": "none", + "param_type": "keyword_only" + }, + "readiness_probe": { + "default": "none", + "param_type": "keyword_only" + }, + "security_context": { + "default": "none", + "param_type": "keyword_only" + }, + "config_map": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "image": { + "attr_type": "image" + }, + "command": { + "attr_type": "command" + }, + "ports": { + "attr_type": "ports" + }, + "environment_variables": { + "attr_type": "environment_variables" + }, + "instance_view": { + "attr_type": null + }, + "resources": { + "attr_type": "resources" + }, + "volume_mounts": { + "attr_type": "volume_mounts" + }, + "liveness_probe": { + "attr_type": "liveness_probe" + }, + "readiness_probe": { + "attr_type": "readiness_probe" + }, + "security_context": { + "attr_type": "security_context" + }, + "config_map": { + "attr_type": "config_map" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerAttachResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "web_socket_uri": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "web_socket_uri": { + "attr_type": "web_socket_uri" + }, + "password": { + "attr_type": "password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerExec": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "command": { + "attr_type": "command" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerExecRequest": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "terminal_size": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "command": { + "attr_type": "command" + }, + "terminal_size": { + "attr_type": "terminal_size" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerExecRequestTerminalSize": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "rows": { + "default": "none", + "param_type": "keyword_only" + }, + "cols": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "rows": { + "attr_type": "rows" + }, + "cols": { + "attr_type": "cols" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerExecResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "web_socket_uri": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "web_socket_uri": { + "attr_type": "web_socket_uri" + }, + "password": { + "attr_type": "password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroup": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "secret_references": { + "default": "none", + "param_type": "keyword_only" + }, + "image_registry_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "restart_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "ip_address": { + "default": "none", + "param_type": "keyword_only" + }, + "os_type": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "diagnostics": { + "default": "none", + "param_type": "keyword_only" + }, + "subnet_ids": { + "default": "none", + "param_type": "keyword_only" + }, + "dns_config": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "encryption_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "extensions": { + "default": "none", + "param_type": "keyword_only" + }, + "confidential_compute_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "priority": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_acls": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "standby_pool_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "zones": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "provisioning_state": { + "attr_type": null + }, + "secret_references": { + "attr_type": "secret_references" + }, + "containers": { + "attr_type": "containers" + }, + "image_registry_credentials": { + "attr_type": "image_registry_credentials" + }, + "restart_policy": { + "attr_type": "restart_policy" + }, + "ip_address": { + "attr_type": "ip_address" + }, + "os_type": { + "attr_type": "os_type" + }, + "volumes": { + "attr_type": "volumes" + }, + "instance_view": { + "attr_type": null + }, + "diagnostics": { + "attr_type": "diagnostics" + }, + "subnet_ids": { + "attr_type": "subnet_ids" + }, + "dns_config": { + "attr_type": "dns_config" + }, + "sku": { + "attr_type": "sku" + }, + "encryption_properties": { + "attr_type": "encryption_properties" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "extensions": { + "attr_type": "extensions" + }, + "confidential_compute_properties": { + "attr_type": "confidential_compute_properties" + }, + "priority": { + "attr_type": "priority" + }, + "identity_acls": { + "attr_type": "identity_acls" + }, + "container_group_profile": { + "attr_type": "container_group_profile" + }, + "standby_pool_profile": { + "attr_type": "standby_pool_profile" + }, + "is_created_from_standby_pool": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "zones": { + "attr_type": "zones" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupDiagnostics": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "log_analytics": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "log_analytics": { + "attr_type": "log_analytics" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "user_assigned_identities": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": { + "attr_type": null + }, + "tenant_id": { + "attr_type": null + }, + "type": { + "attr_type": "type" + }, + "user_assigned_identities": { + "attr_type": "user_assigned_identities" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupIpAddressType": { + "type": "Enum", + "methods": {}, + "properties": { + "PRIVATE": "PRIVATE", + "PUBLIC": "PUBLIC", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupNetworkProtocol": { + "type": "Enum", + "methods": {}, + "properties": { + "TCP": "TCP", + "UDP": "UDP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupPriority": { + "type": "Enum", + "methods": {}, + "properties": { + "REGULAR": "REGULAR", + "SPOT": "SPOT", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "zones": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "encryption_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "extensions": { + "default": "none", + "param_type": "keyword_only" + }, + "image_registry_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "restart_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "shutdown_grace_period": { + "default": "none", + "param_type": "keyword_only" + }, + "ip_address": { + "default": "none", + "param_type": "keyword_only" + }, + "time_to_live": { + "default": "none", + "param_type": "keyword_only" + }, + "os_type": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "diagnostics": { + "default": "none", + "param_type": "keyword_only" + }, + "priority": { + "default": "none", + "param_type": "keyword_only" + }, + "confidential_compute_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "security_context": { + "default": "none", + "param_type": "keyword_only" + }, + "use_krypton": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "system_data": { + "attr_type": null + }, + "sku": { + "attr_type": "sku" + }, + "encryption_properties": { + "attr_type": "encryption_properties" + }, + "containers": { + "attr_type": "containers" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "extensions": { + "attr_type": "extensions" + }, + "image_registry_credentials": { + "attr_type": "image_registry_credentials" + }, + "restart_policy": { + "attr_type": "restart_policy" + }, + "shutdown_grace_period": { + "attr_type": "shutdown_grace_period" + }, + "ip_address": { + "attr_type": "ip_address" + }, + "time_to_live": { + "attr_type": "time_to_live" + }, + "os_type": { + "attr_type": "os_type" + }, + "volumes": { + "attr_type": "volumes" + }, + "diagnostics": { + "attr_type": "diagnostics" + }, + "priority": { + "attr_type": "priority" + }, + "confidential_compute_properties": { + "attr_type": "confidential_compute_properties" + }, + "security_context": { + "attr_type": "security_context" + }, + "revision": { + "attr_type": null + }, + "registered_revisions": { + "attr_type": null + }, + "use_krypton": { + "attr_type": "use_krypton" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "zones": { + "attr_type": "zones" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupProfileListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupProfilePatch": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupProfileReferenceDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "revision": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": "id" + }, + "revision": { + "attr_type": "revision" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupProfileStub": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "revision": { + "default": "none", + "param_type": "keyword_only" + }, + "network_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "storage_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource": { + "attr_type": "resource" + }, + "revision": { + "attr_type": "revision" + }, + "network_profile": { + "attr_type": "network_profile" + }, + "storage_profile": { + "attr_type": "storage_profile" + }, + "container_group_properties": { + "attr_type": "container_group_properties" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "secret_references": { + "default": "none", + "param_type": "keyword_only" + }, + "image_registry_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "restart_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "ip_address": { + "default": "none", + "param_type": "keyword_only" + }, + "os_type": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "diagnostics": { + "default": "none", + "param_type": "keyword_only" + }, + "subnet_ids": { + "default": "none", + "param_type": "keyword_only" + }, + "dns_config": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "encryption_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "extensions": { + "default": "none", + "param_type": "keyword_only" + }, + "confidential_compute_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "priority": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_acls": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "standby_pool_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "provisioning_state": { + "attr_type": null + }, + "secret_references": { + "attr_type": "secret_references" + }, + "containers": { + "attr_type": "containers" + }, + "image_registry_credentials": { + "attr_type": "image_registry_credentials" + }, + "restart_policy": { + "attr_type": "restart_policy" + }, + "ip_address": { + "attr_type": "ip_address" + }, + "os_type": { + "attr_type": "os_type" + }, + "volumes": { + "attr_type": "volumes" + }, + "instance_view": { + "attr_type": null + }, + "diagnostics": { + "attr_type": "diagnostics" + }, + "subnet_ids": { + "attr_type": "subnet_ids" + }, + "dns_config": { + "attr_type": "dns_config" + }, + "sku": { + "attr_type": "sku" + }, + "encryption_properties": { + "attr_type": "encryption_properties" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "extensions": { + "attr_type": "extensions" + }, + "confidential_compute_properties": { + "attr_type": "confidential_compute_properties" + }, + "priority": { + "attr_type": "priority" + }, + "identity_acls": { + "attr_type": "identity_acls" + }, + "container_group_profile": { + "attr_type": "container_group_profile" + }, + "standby_pool_profile": { + "attr_type": "standby_pool_profile" + }, + "is_created_from_standby_pool": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupPropertiesInstanceView": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "events": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerGroupProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCEPTED": "ACCEPTED", + "CANCELED": "CANCELED", + "CREATING": "CREATING", + "DELETING": "DELETING", + "FAILED": "FAILED", + "NOT_ACCESSIBLE": "NOT_ACCESSIBLE", + "NOT_SPECIFIED": "NOT_SPECIFIED", + "PENDING": "PENDING", + "PRE_PROVISIONED": "PRE_PROVISIONED", + "REPAIRING": "REPAIRING", + "SUCCEEDED": "SUCCEEDED", + "UNHEALTHY": "UNHEALTHY", + "UPDATING": "UPDATING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupRestartPolicy": { + "type": "Enum", + "methods": {}, + "properties": { + "ALWAYS": "ALWAYS", + "NEVER": "NEVER", + "ON_FAILURE": "ON_FAILURE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupSku": { + "type": "Enum", + "methods": {}, + "properties": { + "CONFIDENTIAL": "CONFIDENTIAL", + "DEDICATED": "DEDICATED", + "NOT_SPECIFIED": "NOT_SPECIFIED", + "STANDARD": "STANDARD", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupSubnetId": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "default": null, + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": "id" + }, + "name": { + "attr_type": "name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerHttpGet": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "default": null, + "param_type": "keyword_only" + }, + "path": { + "default": "none", + "param_type": "keyword_only" + }, + "scheme": { + "default": "none", + "param_type": "keyword_only" + }, + "http_headers": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "path": { + "attr_type": "path" + }, + "port": { + "attr_type": "port" + }, + "scheme": { + "attr_type": "scheme" + }, + "http_headers": { + "attr_type": "http_headers" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerInstanceOperationsOrigin": { + "type": "Enum", + "methods": {}, + "properties": { + "SYSTEM": "SYSTEM", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerNetworkProtocol": { + "type": "Enum", + "methods": {}, + "properties": { + "TCP": "TCP", + "UDP": "UDP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerPort": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "default": null, + "param_type": "keyword_only" + }, + "protocol": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "protocol": { + "attr_type": "protocol" + }, + "port": { + "attr_type": "port" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerProbe": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exec_property": { + "default": "none", + "param_type": "keyword_only" + }, + "http_get": { + "default": "none", + "param_type": "keyword_only" + }, + "initial_delay_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "period_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "failure_threshold": { + "default": "none", + "param_type": "keyword_only" + }, + "success_threshold": { + "default": "none", + "param_type": "keyword_only" + }, + "timeout_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "exec_property": { + "attr_type": "exec_property" + }, + "http_get": { + "attr_type": "http_get" + }, + "initial_delay_seconds": { + "attr_type": "initial_delay_seconds" + }, + "period_seconds": { + "attr_type": "period_seconds" + }, + "failure_threshold": { + "attr_type": "failure_threshold" + }, + "success_threshold": { + "attr_type": "success_threshold" + }, + "timeout_seconds": { + "attr_type": "timeout_seconds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerPropertiesInstanceView": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "restart_count": { + "attr_type": null + }, + "current_state": { + "attr_type": null + }, + "previous_state": { + "attr_type": null + }, + "events": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerState": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "state": { + "attr_type": null + }, + "start_time": { + "attr_type": null + }, + "exit_code": { + "attr_type": null + }, + "finish_time": { + "attr_type": null + }, + "detail_status": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CreatedByType": { + "type": "Enum", + "methods": {}, + "properties": { + "APPLICATION": "APPLICATION", + "KEY": "KEY", + "MANAGED_IDENTITY": "MANAGED_IDENTITY", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DeploymentExtensionSpec": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "extension_type": { + "default": "none", + "param_type": "keyword_only" + }, + "version": { + "default": "none", + "param_type": "keyword_only" + }, + "settings": { + "default": "none", + "param_type": "keyword_only" + }, + "protected_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "extension_type": { + "attr_type": "extension_type" + }, + "version": { + "attr_type": "version" + }, + "settings": { + "attr_type": "settings" + }, + "protected_settings": { + "attr_type": "protected_settings" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DnsConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name_servers": { + "default": null, + "param_type": "keyword_only" + }, + "search_domains": { + "default": "none", + "param_type": "keyword_only" + }, + "options": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name_servers": { + "attr_type": "name_servers" + }, + "search_domains": { + "attr_type": "search_domains" + }, + "options": { + "attr_type": "options" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DnsNameLabelReusePolicy": { + "type": "Enum", + "methods": {}, + "properties": { + "NOREUSE": "NOREUSE", + "RESOURCE_GROUP_REUSE": "RESOURCE_GROUP_REUSE", + "SUBSCRIPTION_REUSE": "SUBSCRIPTION_REUSE", + "TENANT_REUSE": "TENANT_REUSE", + "UNSECURE": "UNSECURE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ElasticProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "desired_count": { + "default": "none", + "param_type": "keyword_only" + }, + "maintain_desired_count": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_naming_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "desired_count": { + "attr_type": "desired_count" + }, + "maintain_desired_count": { + "attr_type": "maintain_desired_count" + }, + "container_group_naming_policy": { + "attr_type": "container_group_naming_policy" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ElasticProfileContainerGroupNamingPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "guid_naming_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "guid_naming_policy": { + "attr_type": "guid_naming_policy" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "prefix": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "prefix": { + "attr_type": "prefix" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "EncryptionProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "vault_base_url": { + "default": null, + "param_type": "keyword_only" + }, + "key_name": { + "default": null, + "param_type": "keyword_only" + }, + "key_version": { + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "vault_base_url": { + "attr_type": "vault_base_url" + }, + "key_name": { + "attr_type": "key_name" + }, + "key_version": { + "attr_type": "key_version" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "EnvironmentVariable": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "secure_value": { + "default": "none", + "param_type": "keyword_only" + }, + "secure_value_reference": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "secure_value": { + "attr_type": "secure_value" + }, + "secure_value_reference": { + "attr_type": "secure_value_reference" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorAdditionalInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": null + }, + "info": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorDetail": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "target": { + "attr_type": null + }, + "details": { + "attr_type": null + }, + "additional_info": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "error": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": { + "attr_type": "error" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Event": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "count": { + "attr_type": null + }, + "first_timestamp": { + "attr_type": null + }, + "last_timestamp": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "FileShare": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "resource_group_name": { + "default": "none", + "param_type": "keyword_only" + }, + "storage_account_name": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "resource_group_name": { + "attr_type": "resource_group_name" + }, + "storage_account_name": { + "attr_type": "storage_account_name" + }, + "properties": { + "attr_type": "properties" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "FileShareProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "share_access_type": { + "default": "none", + "param_type": "keyword_only" + }, + "share_access_tier": { + "default": "str", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "share_access_type": { + "attr_type": "share_access_type" + }, + "share_access_tier": { + "attr_type": "share_access_tier" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GitRepoVolume": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "repository": { + "default": null, + "param_type": "keyword_only" + }, + "directory": { + "default": "none", + "param_type": "keyword_only" + }, + "revision": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "directory": { + "attr_type": "directory" + }, + "repository": { + "attr_type": "repository" + }, + "revision": { + "attr_type": "revision" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GpuResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "count": { + "default": null, + "param_type": "keyword_only" + }, + "sku": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "count": { + "attr_type": "count" + }, + "sku": { + "attr_type": "sku" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GpuSku": { + "type": "Enum", + "methods": {}, + "properties": { + "K80": "K80", + "P100": "P100", + "V100": "V100", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "HttpHeader": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IdentityAccessControl": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "access": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "access": { + "attr_type": "access" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IdentityAccessLevel": { + "type": "Enum", + "methods": {}, + "properties": { + "ALL": "ALL", + "SYSTEM": "SYSTEM", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "IdentityAcls": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default_access": { + "default": "none", + "param_type": "keyword_only" + }, + "acls": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "default_access": { + "attr_type": "default_access" + }, + "acls": { + "attr_type": "acls" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ImageRegistryCredential": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "server": { + "default": null, + "param_type": "keyword_only" + }, + "username": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "password_reference": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_url": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server": { + "attr_type": "server" + }, + "username": { + "attr_type": "username" + }, + "password": { + "attr_type": "password" + }, + "password_reference": { + "attr_type": "password_reference" + }, + "identity": { + "attr_type": "identity" + }, + "identity_url": { + "attr_type": "identity_url" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "InitContainerDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "image": { + "default": "none", + "param_type": "keyword_only" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "environment_variables": { + "default": "none", + "param_type": "keyword_only" + }, + "volume_mounts": { + "default": "none", + "param_type": "keyword_only" + }, + "security_context": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "image": { + "attr_type": "image" + }, + "command": { + "attr_type": "command" + }, + "environment_variables": { + "attr_type": "environment_variables" + }, + "instance_view": { + "attr_type": null + }, + "volume_mounts": { + "attr_type": "volume_mounts" + }, + "security_context": { + "attr_type": "security_context" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "InitContainerPropertiesDefinitionInstanceView": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "restart_count": { + "attr_type": null + }, + "current_state": { + "attr_type": null + }, + "previous_state": { + "attr_type": null + }, + "events": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IpAddress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ports": { + "default": null, + "param_type": "keyword_only" + }, + "type": { + "default": null, + "param_type": "keyword_only" + }, + "ip": { + "default": "none", + "param_type": "keyword_only" + }, + "dns_name_label": { + "default": "none", + "param_type": "keyword_only" + }, + "auto_generated_domain_name_label_scope": { + "default": "str", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "ports": { + "attr_type": "ports" + }, + "type": { + "attr_type": "type" + }, + "ip": { + "attr_type": "ip" + }, + "dns_name_label": { + "attr_type": "dns_name_label" + }, + "auto_generated_domain_name_label_scope": { + "attr_type": "auto_generated_domain_name_label_scope" + }, + "fqdn": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ListResultContainerGroup": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "default": null, + "param_type": "keyword_only" + }, + "os_type": { + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "secret_references": { + "default": "none", + "param_type": "keyword_only" + }, + "image_registry_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "restart_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "ip_address": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "diagnostics": { + "default": "none", + "param_type": "keyword_only" + }, + "subnet_ids": { + "default": "none", + "param_type": "keyword_only" + }, + "dns_config": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "encryption_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "extensions": { + "default": "none", + "param_type": "keyword_only" + }, + "confidential_compute_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "priority": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_acls": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "standby_pool_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "zones": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "provisioning_state": { + "attr_type": null + }, + "secret_references": { + "attr_type": "secret_references" + }, + "containers": { + "attr_type": "containers" + }, + "image_registry_credentials": { + "attr_type": "image_registry_credentials" + }, + "restart_policy": { + "attr_type": "restart_policy" + }, + "ip_address": { + "attr_type": "ip_address" + }, + "os_type": { + "attr_type": "os_type" + }, + "volumes": { + "attr_type": "volumes" + }, + "diagnostics": { + "attr_type": "diagnostics" + }, + "subnet_ids": { + "attr_type": "subnet_ids" + }, + "dns_config": { + "attr_type": "dns_config" + }, + "sku": { + "attr_type": "sku" + }, + "encryption_properties": { + "attr_type": "encryption_properties" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "extensions": { + "attr_type": "extensions" + }, + "confidential_compute_properties": { + "attr_type": "confidential_compute_properties" + }, + "priority": { + "attr_type": "priority" + }, + "identity_acls": { + "attr_type": "identity_acls" + }, + "container_group_profile": { + "attr_type": "container_group_profile" + }, + "standby_pool_profile": { + "attr_type": "standby_pool_profile" + }, + "is_created_from_standby_pool": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "zones": { + "attr_type": "zones" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ListResultContainerGroupProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "default": null, + "param_type": "keyword_only" + }, + "os_type": { + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "secret_references": { + "default": "none", + "param_type": "keyword_only" + }, + "image_registry_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "restart_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "ip_address": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "diagnostics": { + "default": "none", + "param_type": "keyword_only" + }, + "subnet_ids": { + "default": "none", + "param_type": "keyword_only" + }, + "dns_config": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "encryption_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "extensions": { + "default": "none", + "param_type": "keyword_only" + }, + "confidential_compute_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "priority": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_acls": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "standby_pool_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "provisioning_state": { + "attr_type": null + }, + "secret_references": { + "attr_type": "secret_references" + }, + "containers": { + "attr_type": "containers" + }, + "image_registry_credentials": { + "attr_type": "image_registry_credentials" + }, + "restart_policy": { + "attr_type": "restart_policy" + }, + "ip_address": { + "attr_type": "ip_address" + }, + "os_type": { + "attr_type": "os_type" + }, + "volumes": { + "attr_type": "volumes" + }, + "diagnostics": { + "attr_type": "diagnostics" + }, + "subnet_ids": { + "attr_type": "subnet_ids" + }, + "dns_config": { + "attr_type": "dns_config" + }, + "sku": { + "attr_type": "sku" + }, + "encryption_properties": { + "attr_type": "encryption_properties" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "extensions": { + "attr_type": "extensions" + }, + "confidential_compute_properties": { + "attr_type": "confidential_compute_properties" + }, + "priority": { + "attr_type": "priority" + }, + "identity_acls": { + "attr_type": "identity_acls" + }, + "container_group_profile": { + "attr_type": "container_group_profile" + }, + "standby_pool_profile": { + "attr_type": "standby_pool_profile" + }, + "is_created_from_standby_pool": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LoadBalancer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "backend_address_pools": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "backend_address_pools": { + "attr_type": "backend_address_pools" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LoadBalancerBackendAddressPool": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource": { + "attr_type": "resource" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LogAnalytics": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "workspace_id": { + "default": null, + "param_type": "keyword_only" + }, + "workspace_key": { + "default": null, + "param_type": "keyword_only" + }, + "log_type": { + "default": "none", + "param_type": "keyword_only" + }, + "metadata": { + "default": "none", + "param_type": "keyword_only" + }, + "workspace_resource_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "workspace_id": { + "attr_type": "workspace_id" + }, + "workspace_key": { + "attr_type": "workspace_key" + }, + "log_type": { + "attr_type": "log_type" + }, + "metadata": { + "attr_type": "metadata" + }, + "workspace_resource_id": { + "attr_type": "workspace_resource_id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LogAnalyticsLogType": { + "type": "Enum", + "methods": {}, + "properties": { + "CONTAINER_INSIGHTS": "CONTAINER_INSIGHTS", + "CONTAINER_INSTANCE_LOGS": "CONTAINER_INSTANCE_LOGS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Logs": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "content": { + "attr_type": "content" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroup": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "zones": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "elastic_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "placement_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_profiles": { + "default": "none", + "param_type": "keyword_only" + }, + "update_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "system_data": { + "attr_type": null + }, + "identity": { + "attr_type": "identity" + }, + "elastic_profile": { + "attr_type": "elastic_profile" + }, + "placement_profile": { + "attr_type": "placement_profile" + }, + "container_group_profiles": { + "attr_type": "container_group_profiles" + }, + "provisioning_state": { + "attr_type": null + }, + "update_profile": { + "attr_type": "update_profile" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "zones": { + "attr_type": "zones" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupCGPropertyContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "properties": { + "attr_type": "properties" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupCGPropertyContainerProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "volume_mounts": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "volume_mounts": { + "attr_type": "volume_mounts" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupCGPropertyVolume": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "azure_file": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "azure_file": { + "attr_type": "azure_file" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupContainerGroupProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subnet_ids": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "subnet_ids": { + "attr_type": "subnet_ids" + }, + "volumes": { + "attr_type": "volumes" + }, + "containers": { + "attr_type": "containers" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "user_assigned_identities": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": { + "attr_type": null + }, + "tenant_id": { + "attr_type": null + }, + "type": { + "attr_type": "type" + }, + "user_assigned_identities": { + "attr_type": "user_assigned_identities" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupPatch": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "zones": { + "default": "none", + "param_type": "keyword_only" + }, + "elastic_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "placement_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "container_group_profiles": { + "default": "none", + "param_type": "keyword_only" + }, + "update_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "system_data": { + "attr_type": null + }, + "identity": { + "attr_type": "identity" + }, + "tags": { + "attr_type": "tags" + }, + "zones": { + "attr_type": "zones" + }, + "elastic_profile": { + "attr_type": "elastic_profile" + }, + "placement_profile": { + "attr_type": "placement_profile" + }, + "container_group_profiles": { + "attr_type": "container_group_profiles" + }, + "provisioning_state": { + "attr_type": null + }, + "update_profile": { + "attr_type": "update_profile" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "CREATING": "CREATING", + "DELETING": "DELETING", + "FAILED": "FAILED", + "MIGRATING": "MIGRATING", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "NGroupSkus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_type": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "sku_capacity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource_type": { + "attr_type": "resource_type" + }, + "sku": { + "attr_type": "sku" + }, + "sku_capacity": { + "attr_type": "sku_capacity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupUpdateMode": { + "type": "Enum", + "methods": {}, + "properties": { + "MANUAL": "MANUAL", + "ROLLING": "ROLLING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "NGroupsListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NGroupsSkusList": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NetworkProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "load_balancer": { + "default": "none", + "param_type": "keyword_only" + }, + "application_gateway": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "load_balancer": { + "attr_type": "load_balancer" + }, + "application_gateway": { + "attr_type": "application_gateway" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OperatingSystemTypes": { + "type": "Enum", + "methods": {}, + "properties": { + "LINUX": "LINUX", + "WINDOWS": "WINDOWS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Operation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "display": { + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "origin": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "display": { + "attr_type": "display" + }, + "properties": { + "attr_type": "properties" + }, + "origin": { + "attr_type": "origin" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OperationDisplay": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "provider": { + "default": "none", + "param_type": "keyword_only" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "operation": { + "default": "none", + "param_type": "keyword_only" + }, + "description": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provider": { + "attr_type": "provider" + }, + "resource": { + "attr_type": "resource" + }, + "operation": { + "attr_type": "operation" + }, + "description": { + "attr_type": "description" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OperationListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PlacementProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "fault_domain_count": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "fault_domain_count": { + "attr_type": "fault_domain_count" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Port": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "default": null, + "param_type": "keyword_only" + }, + "protocol": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "protocol": { + "attr_type": "protocol" + }, + "port": { + "attr_type": "port" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Resource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "zones": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "zones": { + "attr_type": "zones" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceIdentityType": { + "type": "Enum", + "methods": {}, + "properties": { + "NONE": "NONE", + "SYSTEM_ASSIGNED": "SYSTEM_ASSIGNED", + "SYSTEM_ASSIGNED_USER_ASSIGNED": "SYSTEM_ASSIGNED_USER_ASSIGNED", + "USER_ASSIGNED": "USER_ASSIGNED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ResourceLimits": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "memory_in_gb": { + "default": "none", + "param_type": "keyword_only" + }, + "cpu": { + "default": "none", + "param_type": "keyword_only" + }, + "gpu": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "memory_in_gb": { + "attr_type": "memory_in_gb" + }, + "cpu": { + "attr_type": "cpu" + }, + "gpu": { + "attr_type": "gpu" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceRequests": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "memory_in_gb": { + "default": null, + "param_type": "keyword_only" + }, + "cpu": { + "default": null, + "param_type": "keyword_only" + }, + "gpu": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "memory_in_gb": { + "attr_type": "memory_in_gb" + }, + "cpu": { + "attr_type": "cpu" + }, + "gpu": { + "attr_type": "gpu" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceRequirements": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "requests": { + "default": null, + "param_type": "keyword_only" + }, + "limits": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "requests": { + "attr_type": "requests" + }, + "limits": { + "attr_type": "limits" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Scheme": { + "type": "Enum", + "methods": {}, + "properties": { + "HTTP": "HTTP", + "HTTPS": "HTTPS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SecretReference": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "default": null, + "param_type": "keyword_only" + }, + "secret_reference_uri": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "identity": { + "attr_type": "identity" + }, + "secret_reference_uri": { + "attr_type": "secret_reference_uri" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SecurityContextCapabilitiesDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "add": { + "default": "none", + "param_type": "keyword_only" + }, + "drop": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "add": { + "attr_type": "add" + }, + "drop": { + "attr_type": "drop" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SecurityContextDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "privileged": { + "default": "none", + "param_type": "keyword_only" + }, + "allow_privilege_escalation": { + "default": "none", + "param_type": "keyword_only" + }, + "capabilities": { + "default": "none", + "param_type": "keyword_only" + }, + "run_as_group": { + "default": "none", + "param_type": "keyword_only" + }, + "run_as_user": { + "default": "none", + "param_type": "keyword_only" + }, + "seccomp_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "privileged": { + "attr_type": "privileged" + }, + "allow_privilege_escalation": { + "attr_type": "allow_privilege_escalation" + }, + "capabilities": { + "attr_type": "capabilities" + }, + "run_as_group": { + "attr_type": "run_as_group" + }, + "run_as_user": { + "attr_type": "run_as_user" + }, + "seccomp_profile": { + "attr_type": "seccomp_profile" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "StandbyPoolProfileDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "fail_container_group_create_on_reuse_failure": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": "id" + }, + "fail_container_group_create_on_reuse_failure": { + "attr_type": "fail_container_group_create_on_reuse_failure" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "StorageProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_shares": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "file_shares": { + "attr_type": "file_shares" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SystemData": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "created_by": { + "default": "none", + "param_type": "keyword_only" + }, + "created_by_type": { + "default": "none", + "param_type": "keyword_only" + }, + "created_at": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_by": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_by_type": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_at": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_by": { + "attr_type": "created_by" + }, + "created_by_type": { + "attr_type": "created_by_type" + }, + "created_at": { + "attr_type": "created_at" + }, + "last_modified_by": { + "attr_type": "last_modified_by" + }, + "last_modified_by_type": { + "attr_type": "last_modified_by_type" + }, + "last_modified_at": { + "attr_type": "last_modified_at" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UpdateProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "update_mode": { + "default": "none", + "param_type": "keyword_only" + }, + "rolling_update_profile": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "update_mode": { + "attr_type": "update_mode" + }, + "rolling_update_profile": { + "attr_type": "rolling_update_profile" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UpdateProfileRollingUpdateProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "max_batch_percent": { + "default": "none", + "param_type": "keyword_only" + }, + "max_unhealthy_percent": { + "default": "none", + "param_type": "keyword_only" + }, + "pause_time_between_batches": { + "default": "none", + "param_type": "keyword_only" + }, + "in_place_update": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "max_batch_percent": { + "attr_type": "max_batch_percent" + }, + "max_unhealthy_percent": { + "attr_type": "max_unhealthy_percent" + }, + "pause_time_between_batches": { + "attr_type": "pause_time_between_batches" + }, + "in_place_update": { + "attr_type": "in_place_update" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Usage": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "unit": { + "attr_type": null + }, + "current_value": { + "attr_type": null + }, + "limit": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UsageListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UsageName": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": null + }, + "localized_value": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UserAssignedIdentities": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": { + "attr_type": null + }, + "client_id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Volume": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "azure_file": { + "default": "none", + "param_type": "keyword_only" + }, + "empty_dir": { + "default": "none", + "param_type": "keyword_only" + }, + "secret": { + "default": "none", + "param_type": "keyword_only" + }, + "secret_reference": { + "default": "none", + "param_type": "keyword_only" + }, + "git_repo": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "azure_file": { + "attr_type": "azure_file" + }, + "empty_dir": { + "attr_type": "empty_dir" + }, + "secret": { + "attr_type": "secret" + }, + "secret_reference": { + "attr_type": "secret_reference" + }, + "git_repo": { + "attr_type": "git_repo" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "VolumeMount": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "mount_path": { + "default": null, + "param_type": "keyword_only" + }, + "read_only": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "mount_path": { + "attr_type": "mount_path" + }, + "read_only": { + "attr_type": "read_only" + }, + "additional_properties": { + "attr_type": null + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.containerinstance.aio": { + "class_nodes": { + "ContainerInstanceManagementClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "container_groups": { + "attr_type": "ContainerGroupsOperations" + }, + "operations": { + "attr_type": "Operations" + }, + "location": { + "attr_type": "LocationOperations" + }, + "containers": { + "attr_type": "ContainersOperations" + }, + "subnet_service_association_link": { + "attr_type": "SubnetServiceAssociationLinkOperations" + }, + "ngroups": { + "attr_type": "NGroupsOperations" + }, + "cg_profiles": { + "attr_type": "CGProfilesOperations" + }, + "cg_profile": { + "attr_type": "CGProfileOperations" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.containerinstance.aio.operations": { + "class_nodes": { + "CGProfileOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "type": "ContainerGroupProfile", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_by_revision_number": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_number": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_all_revisions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "ContainerGroupProfilePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "CGProfilesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerGroupsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "type": "ContainerGroup", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_restart": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_outbound_network_dependencies_endpoints": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "Resource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ContainersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "attach": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "execute_command": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "type": "ContainerExecRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "list_logs": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tail": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "timestamps": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "LocationOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_cached_images": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_capabilities": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_usage": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "NGroupsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "NGroup", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_restart": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "NGroupPatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "Operations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "SubnetServiceAssociationLinkOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "virtual_network_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subnet_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + } + }, + "function_nodes": {} + } +} \ No newline at end of file diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/cached_images_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/cached_images_list.py index aafe56fd3685..1d3bb605daa8 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/cached_images_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/cached_images_list.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.location.list_cached_images( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/CachedImagesList.json +# x-ms-original-file: 2025-09-01/CachedImagesList.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py index c55dc853a6e4..b5a86396d86f 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.location.list_capabilities( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/CapabilitiesList.json +# x-ms-original-file: 2025-09-01/CapabilitiesList.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py index a7a001b071fc..4f4aa365bb05 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.containers.attach( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerAttach.json +# x-ms-original-file: 2025-09-01/ContainerAttach.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py index b1f9635ba3c5..987593c0b617 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.containers.execute_command( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerExec.json +# x-ms-original-file: 2025-09-01/ContainerExec.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_confidential.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_confidential.py index 1269b41e20df..1c4725918305 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_confidential.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_confidential.py @@ -3,13 +3,13 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +26,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.begin_create_or_update( @@ -63,6 +63,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupCreateConfidential.json +# x-ms-original-file: 2025-09-01/ContainerGroupCreateConfidential.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_or_update_standby_pool.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_or_update_standby_pool.py index 3ef0b721255c..7d1640eb95e4 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_or_update_standby_pool.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_or_update_standby_pool.py @@ -3,13 +3,13 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +26,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.begin_create_or_update( @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupCreateOrUpdateStandbyPool.json +# x-ms-original-file: 2025-09-01/ContainerGroupCreateOrUpdateStandbyPool.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_encryption_properties.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_encryption_properties.py index 8d467d75edf2..23019c17bdf8 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_encryption_properties.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_encryption_properties.py @@ -3,13 +3,13 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +26,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.begin_create_or_update( @@ -70,6 +70,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupEncryptionProperties.json +# x-ms-original-file: 2025-09-01/ContainerGroupEncryptionProperties.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_extensions.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_extensions.py index 96bbd45ca1eb..d08ccfab4388 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_extensions.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_extensions.py @@ -3,13 +3,13 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +26,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.begin_create_or_update( @@ -78,6 +78,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupExtensions.json +# x-ms-original-file: 2025-09-01/ContainerGroupExtensions.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_create_confidential.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_create_confidential.py index fe43b50086a0..b47c532cdd0b 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_create_confidential.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_create_confidential.py @@ -3,13 +3,13 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,225 +26,44 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.cg_profile.create_or_update( resource_group_name="demo", container_group_profile_name="demo1", container_group_profile={ - "confidentialComputeProperties": {"ccePolicy": "str"}, - "containers": [ - { - "name": "str", - "command": ["str"], - "configMap": {"keyValuePairs": {"str": "str"}}, - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", + "location": "westeurope", + "properties": { + "confidentialComputeProperties": { + "ccePolicy": "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19" + }, + "containers": [ + { + "name": "accdemo", + "properties": { + "command": [], + "environmentVariables": [], + "image": "confiimage", + "ports": [{"port": 8000}], + "resources": {"requests": {"cpu": 1, "memoryInGB": 1.5}}, + "securityContext": {"capabilities": {"add": ["CAP_NET_ADMIN"]}, "privileged": False}, }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "livenessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "ports": [{"port": 0, "protocol": "str"}], - "readinessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "resources": { - "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, - "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "diagnostics": { - "logAnalytics": { - "workspaceId": "str", - "workspaceKey": "str", - "logType": "str", - "metadata": {"str": "str"}, - "workspaceResourceId": "str", - } - }, - "encryptionProperties": {"keyName": "str", "keyVersion": "str", "vaultBaseUrl": "str", "identity": "str"}, - "extensions": [ - {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} - ], - "id": "str", - "imageRegistryCredentials": [ - { - "server": "str", - "identity": "str", - "identityUrl": "str", - "password": "str", - "passwordReference": "str", - "username": "str", - } - ], - "initContainers": [ - { - "name": "str", - "command": ["str"], - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "ipAddress": { - "ports": [{"port": 0, "protocol": "str"}], - "type": "str", - "autoGeneratedDomainNameLabelScope": "Unsecure", - "dnsNameLabel": "str", - "fqdn": "str", - "ip": "str", - }, - "location": "str", - "name": "str", - "osType": "str", - "priority": "str", - "registeredRevisions": [0], - "restartPolicy": "str", - "revision": 0, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "shutdownGracePeriod": "2020-02-20 00:00:00", - "sku": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", + } + ], + "imageRegistryCredentials": [], + "ipAddress": {"ports": [{"port": 8000, "protocol": "TCP"}], "type": "Public"}, + "osType": "Linux", + "sku": "Confidential", }, - "tags": {"str": "str"}, - "timeToLive": "2020-02-20 00:00:00", - "type": "str", - "useKrypton": bool, - "volumes": [ - { - "name": "str", - "azureFile": { - "shareName": "str", - "storageAccountName": "str", - "readOnly": bool, - "storageAccountKey": "str", - "storageAccountKeyReference": "str", - }, - "emptyDir": {}, - "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, - "secret": {"str": "str"}, - "secretReference": {"str": "str"}, - } - ], - "zones": ["str"], + "zones": ["1"], }, ) print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfileCreateOrUpdate_CreateConfidential.json +# x-ms-original-file: 2025-09-01/ContainerGroupProfileCreateOrUpdate_CreateConfidential.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_encryption_properties.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_encryption_properties.py index 044a30a5a6c5..4e72897d5453 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_encryption_properties.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_encryption_properties.py @@ -3,13 +3,13 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,225 +26,45 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.cg_profile.create_or_update( resource_group_name="demo", container_group_profile_name="demo1", container_group_profile={ - "confidentialComputeProperties": {"ccePolicy": "str"}, - "containers": [ - { - "name": "str", - "command": ["str"], - "configMap": {"keyValuePairs": {"str": "str"}}, - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", + "location": "eastus2", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [{"port": 80}], + "resources": {"requests": {"cpu": 1, "memoryInGB": 1.5}}, }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "livenessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "ports": [{"port": 0, "protocol": "str"}], - "readinessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "resources": { - "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, - "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "diagnostics": { - "logAnalytics": { - "workspaceId": "str", - "workspaceKey": "str", - "logType": "str", - "metadata": {"str": "str"}, - "workspaceResourceId": "str", - } - }, - "encryptionProperties": {"keyName": "str", "keyVersion": "str", "vaultBaseUrl": "str", "identity": "str"}, - "extensions": [ - {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} - ], - "id": "str", - "imageRegistryCredentials": [ - { - "server": "str", - "identity": "str", - "identityUrl": "str", - "password": "str", - "passwordReference": "str", - "username": "str", - } - ], - "initContainers": [ - { - "name": "str", - "command": ["str"], - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "ipAddress": { - "ports": [{"port": 0, "protocol": "str"}], - "type": "str", - "autoGeneratedDomainNameLabelScope": "Unsecure", - "dnsNameLabel": "str", - "fqdn": "str", - "ip": "str", - }, - "location": "str", - "name": "str", - "osType": "str", - "priority": "str", - "registeredRevisions": [0], - "restartPolicy": "str", - "revision": 0, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "shutdownGracePeriod": "2020-02-20 00:00:00", - "sku": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", + } + ], + "encryptionProperties": { + "identity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity", + "keyName": "test-key", + "keyVersion": "", + "vaultBaseUrl": "https://testkeyvault.vault.azure.net", + }, + "imageRegistryCredentials": [], + "ipAddress": {"ports": [{"port": 80, "protocol": "TCP"}], "type": "Public"}, + "osType": "Linux", }, - "tags": {"str": "str"}, - "timeToLive": "2020-02-20 00:00:00", - "type": "str", - "useKrypton": bool, - "volumes": [ - { - "name": "str", - "azureFile": { - "shareName": "str", - "storageAccountName": "str", - "readOnly": bool, - "storageAccountKey": "str", - "storageAccountKeyReference": "str", - }, - "emptyDir": {}, - "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, - "secret": {"str": "str"}, - "secretReference": {"str": "str"}, - } - ], - "zones": ["str"], + "zones": ["1"], }, ) print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfileCreateOrUpdate_EncryptionProperties.json +# x-ms-original-file: 2025-09-01/ContainerGroupProfileCreateOrUpdate_EncryptionProperties.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_extensions.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_extensions.py index 867af407a904..b1f73e3e8162 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_extensions.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_extensions.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,225 +25,54 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.cg_profile.create_or_update( resource_group_name="demo", container_group_profile_name="demo1", container_group_profile={ - "confidentialComputeProperties": {"ccePolicy": "str"}, - "containers": [ - { - "name": "str", - "command": ["str"], - "configMap": {"keyValuePairs": {"str": "str"}}, - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", + "location": "eastus2", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [{"port": 80}], + "resources": {"requests": {"cpu": 1, "memoryInGB": 1.5}}, }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", + } + ], + "extensions": [ + { + "name": "kube-proxy", + "properties": { + "extensionType": "kube-proxy", + "protectedSettings": {"kubeConfig": ""}, + "settings": {"clusterCidr": "10.240.0.0/16", "kubeVersion": "v1.9.10"}, + "version": "1.0", }, - "restartCount": 0, }, - "livenessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "ports": [{"port": 0, "protocol": "str"}], - "readinessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "resources": { - "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, - "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, + { + "name": "vk-realtime-metrics", + "properties": {"extensionType": "realtime-metrics", "version": "1.0"}, }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "diagnostics": { - "logAnalytics": { - "workspaceId": "str", - "workspaceKey": "str", - "logType": "str", - "metadata": {"str": "str"}, - "workspaceResourceId": "str", - } + ], + "imageRegistryCredentials": [], + "ipAddress": {"ports": [{"port": 80, "protocol": "TCP"}], "type": "Private"}, + "osType": "Linux", }, - "encryptionProperties": {"keyName": "str", "keyVersion": "str", "vaultBaseUrl": "str", "identity": "str"}, - "extensions": [ - {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} - ], - "id": "str", - "imageRegistryCredentials": [ - { - "server": "str", - "identity": "str", - "identityUrl": "str", - "password": "str", - "passwordReference": "str", - "username": "str", - } - ], - "initContainers": [ - { - "name": "str", - "command": ["str"], - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "ipAddress": { - "ports": [{"port": 0, "protocol": "str"}], - "type": "str", - "autoGeneratedDomainNameLabelScope": "Unsecure", - "dnsNameLabel": "str", - "fqdn": "str", - "ip": "str", - }, - "location": "str", - "name": "str", - "osType": "str", - "priority": "str", - "registeredRevisions": [0], - "restartPolicy": "str", - "revision": 0, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "shutdownGracePeriod": "2020-02-20 00:00:00", - "sku": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "timeToLive": "2020-02-20 00:00:00", - "type": "str", - "useKrypton": bool, - "volumes": [ - { - "name": "str", - "azureFile": { - "shareName": "str", - "storageAccountName": "str", - "readOnly": bool, - "storageAccountKey": "str", - "storageAccountKeyReference": "str", - }, - "emptyDir": {}, - "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, - "secret": {"str": "str"}, - "secretReference": {"str": "str"}, - } - ], - "zones": ["str"], + "zones": ["1"], }, ) print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfileCreateOrUpdate_Extensions.json +# x-ms-original-file: 2025-09-01/ContainerGroupProfileCreateOrUpdate_Extensions.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_get_by_revision_number.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_get_by_revision_number.py index 42a297be1b78..8908dff8ceed 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_get_by_revision_number.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_get_by_revision_number.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.cg_profile.get_by_revision_number( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfileGetByRevisionNumber.json +# x-ms-original-file: 2025-09-01/ContainerGroupProfileGetByRevisionNumber.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_list_all_revisions.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_list_all_revisions.py index 74d0a42c69e4..bb2eddc2d20b 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_list_all_revisions.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_list_all_revisions.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.cg_profile.list_all_revisions( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfileListAllRevisions.json +# x-ms-original-file: 2025-09-01/ContainerGroupProfileListAllRevisions.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_create_or_update.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_create_or_update.py index 2323e0c2e3a7..798eaa654824 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_create_or_update.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_create_or_update.py @@ -3,13 +3,13 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,225 +26,68 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.cg_profile.create_or_update( resource_group_name="demo", container_group_profile_name="demo1", container_group_profile={ - "confidentialComputeProperties": {"ccePolicy": "str"}, - "containers": [ - { - "name": "str", - "command": ["str"], - "configMap": {"keyValuePairs": {"str": "str"}}, - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", + "location": "west us", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [{"port": 80}], + "resources": {"requests": {"cpu": 1, "gpu": {"count": 1, "sku": "K80"}, "memoryInGB": 1.5}}, + "volumeMounts": [ + {"mountPath": "/mnt/volume1", "name": "volume1", "readOnly": False}, + {"mountPath": "/mnt/volume2", "name": "volume2", "readOnly": False}, + {"mountPath": "/mnt/volume3", "name": "volume3", "readOnly": True}, + ], }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", + } + ], + "diagnostics": { + "logAnalytics": { + "logType": "ContainerInsights", + "metadata": {"pod-uuid": "test-metadata-value"}, + "workspaceId": "workspaceid", + "workspaceKey": "workspaceKey", + "workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/microsoft.operationalinsights/workspaces/workspace", + } + }, + "imageRegistryCredentials": [], + "ipAddress": {"ports": [{"port": 80, "protocol": "TCP"}], "type": "Public"}, + "osType": "Linux", + "volumes": [ + { + "azureFile": { + "shareName": "shareName", + "storageAccountKey": "accountKey", + "storageAccountName": "accountName", }, - "restartCount": 0, + "name": "volume1", }, - "livenessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "ports": [{"port": 0, "protocol": "str"}], - "readinessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "resources": { - "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, - "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, + {"emptyDir": {}, "name": "volume2"}, + { + "name": "volume3", + "secret": {"secretKey1": "SecretValue1InBase64", "secretKey2": "SecretValue2InBase64"}, }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "diagnostics": { - "logAnalytics": { - "workspaceId": "str", - "workspaceKey": "str", - "logType": "str", - "metadata": {"str": "str"}, - "workspaceResourceId": "str", - } + ], }, - "encryptionProperties": {"keyName": "str", "keyVersion": "str", "vaultBaseUrl": "str", "identity": "str"}, - "extensions": [ - {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} - ], - "id": "str", - "imageRegistryCredentials": [ - { - "server": "str", - "identity": "str", - "identityUrl": "str", - "password": "str", - "passwordReference": "str", - "username": "str", - } - ], - "initContainers": [ - { - "name": "str", - "command": ["str"], - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "ipAddress": { - "ports": [{"port": 0, "protocol": "str"}], - "type": "str", - "autoGeneratedDomainNameLabelScope": "Unsecure", - "dnsNameLabel": "str", - "fqdn": "str", - "ip": "str", - }, - "location": "str", - "name": "str", - "osType": "str", - "priority": "str", - "registeredRevisions": [0], - "restartPolicy": "str", - "revision": 0, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "shutdownGracePeriod": "2020-02-20 00:00:00", - "sku": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "timeToLive": "2020-02-20 00:00:00", - "type": "str", - "useKrypton": bool, - "volumes": [ - { - "name": "str", - "azureFile": { - "shareName": "str", - "storageAccountName": "str", - "readOnly": bool, - "storageAccountKey": "str", - "storageAccountKeyReference": "str", - }, - "emptyDir": {}, - "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, - "secret": {"str": "str"}, - "secretReference": {"str": "str"}, - } - ], - "zones": ["str"], + "zones": ["1"], }, ) print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesCreateOrUpdate.json +# x-ms-original-file: 2025-09-01/ContainerGroupProfilesCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_delete.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_delete.py index 6d8562499041..12cb2b8c13d4 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_delete.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_delete.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) client.cg_profile.delete( @@ -37,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesDelete.json +# x-ms-original-file: 2025-09-01/ContainerGroupProfilesDelete.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get.py index bc1913110a13..460ec115b1ff 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.cg_profile.get( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesGet.json +# x-ms-original-file: 2025-09-01/ContainerGroupProfilesGet.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get_priority.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get_priority.py index 40d0fa0ac995..7ca76ec35e86 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get_priority.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get_priority.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.cg_profile.get( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesGetPriority.json +# x-ms-original-file: 2025-09-01/ContainerGroupProfilesGetPriority.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list.py index 937d5fa214ae..d19e2dcf319f 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.cg_profiles.list_by_subscription() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesList.json +# x-ms-original-file: 2025-09-01/ContainerGroupProfilesList.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list_by_resource_group.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list_by_resource_group.py index 299a34cd8bae..8a4904d01b94 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list_by_resource_group.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list_by_resource_group.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.cg_profiles.list_by_resource_group( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesListByResourceGroup.json +# x-ms-original-file: 2025-09-01/ContainerGroupProfilesListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_patch.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_patch.py index 6f3ac2cf503d..86409722c4a7 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_patch.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_patch.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.cg_profile.update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupProfilesPatch.json +# x-ms-original-file: 2025-09-01/ContainerGroupProfilesPatch.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_usage.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_usage.py index 384c5037897c..1cb4d8eee63d 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_usage.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_usage.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.location.list_usage( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupUsage.json +# x-ms-original-file: 2025-09-01/ContainerGroupUsage.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update.py index 186a4ab5f7a5..f6b75179e032 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update.py @@ -3,13 +3,13 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +26,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.begin_create_or_update( @@ -108,6 +108,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsCreateOrUpdate.json +# x-ms-original-file: 2025-09-01/ContainerGroupsCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_secret_reference.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_secret_reference.py index 49c5997b9bfd..7adf88496f88 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_secret_reference.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_secret_reference.py @@ -3,13 +3,13 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +26,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.begin_create_or_update( @@ -137,6 +137,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsCreateOrUpdateSecretReference.json +# x-ms-original-file: 2025-09-01/ContainerGroupsCreateOrUpdateSecretReference.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_priority.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_priority.py index cf5826d967ae..0944522ac4ab 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_priority.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_priority.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.begin_create_or_update( @@ -57,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsCreatePriority.json +# x-ms-original-file: 2025-09-01/ContainerGroupsCreatePriority.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_delete.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_delete.py index b72a70b70db5..9714d64e1dc9 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_delete.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_delete.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.begin_delete( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsDelete.json +# x-ms-original-file: 2025-09-01/ContainerGroupsDelete.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_failed.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_failed.py index bae371d7793b..ccb9ad556a0f 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_failed.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_failed.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.get( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsGet_Failed.json +# x-ms-original-file: 2025-09-01/ContainerGroupsGet_Failed.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_priority.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_priority.py index f2504593a8de..6e5972898f40 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_priority.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_priority.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.get( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsGetPriority.json +# x-ms-original-file: 2025-09-01/ContainerGroupsGetPriority.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_succeeded.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_succeeded.py index bbc6ac5f6d30..3ce89294ae4d 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_succeeded.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_succeeded.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.get( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsGet_Succeeded.json +# x-ms-original-file: 2025-09-01/ContainerGroupsGet_Succeeded.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list.py index d9918545f56c..f4d043a465e4 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.list() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsList.json +# x-ms-original-file: 2025-09-01/ContainerGroupsList.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list_by_resource_group.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list_by_resource_group.py index 8d575dea1af4..5d98a127c333 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list_by_resource_group.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list_by_resource_group.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.list_by_resource_group( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsListByResourceGroup.json +# x-ms-original-file: 2025-09-01/ContainerGroupsListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_restart.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_restart.py index 822b412833b9..8054536d7303 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_restart.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_restart.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) client.container_groups.begin_restart( @@ -37,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsRestart.json +# x-ms-original-file: 2025-09-01/ContainerGroupsRestart.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_start.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_start.py index db667744c8be..f6b90b5d6513 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_start.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_start.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) client.container_groups.begin_start( @@ -37,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsStart.json +# x-ms-original-file: 2025-09-01/ContainerGroupsStart.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_stop.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_stop.py index 0bb6cb063636..87c902493b54 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_stop.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_stop.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) client.container_groups.stop( @@ -37,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsStop.json +# x-ms-original-file: 2025-09-01/ContainerGroupsStop.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_update.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_update.py index 21163140792d..f94bcc40a9e0 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_update.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_update.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,26 +25,19 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_groups.update( resource_group_name="demoResource", container_group_name="demo1", - resource={ - "id": "str", - "location": "str", - "name": "str", - "tags": {"str": "str"}, - "type": "str", - "zones": ["str"], - }, + resource={"tags": {"tag1key": "tag1Value", "tag2key": "tag2Value"}}, ) print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerGroupsUpdate.json +# x-ms-original-file: 2025-09-01/ContainerGroupsUpdate.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_list_logs.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_list_logs.py index 34c661b7e256..797334f30ec2 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_list_logs.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_list_logs.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.containers.list_logs( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/ContainerListLogs.json +# x-ms-original-file: 2025-09-01/ContainerListLogs.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py index 173c618cb50f..cdb2b2d5e9e4 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,7 +25,7 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/OperationsList.json +# x-ms-original-file: 2025-09-01/OperationsList.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/subnet_service_association_link_delete.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/subnet_service_association_link_delete.py index bec82be24dca..1556d1d8f6cb 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/subnet_service_association_link_delete.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/subnet_service_association_link_delete.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = ContainerInstanceManagementClient( + client = ContainerInstanceClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) client.subnet_service_association_link.begin_delete( @@ -38,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/stable/2025-09-01/examples/SubnetServiceAssociationLinkDelete.json +# x-ms-original-file: 2025-09-01/SubnetServiceAssociationLinkDelete.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/conftest.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/conftest.py index 5ea11ac61dff..2097f76c8bb2 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/conftest.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/conftest.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import os @@ -21,26 +21,14 @@ # For security, please avoid record sensitive identity information in recordings @pytest.fixture(scope="session", autouse=True) def add_sanitizers(test_proxy): - containerinstancemanagement_subscription_id = os.environ.get( - "AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000" - ) - containerinstancemanagement_tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") - containerinstancemanagement_client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000") - containerinstancemanagement_client_secret = os.environ.get( - "AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000" - ) - add_general_regex_sanitizer( - regex=containerinstancemanagement_subscription_id, value="00000000-0000-0000-0000-000000000000" - ) - add_general_regex_sanitizer( - regex=containerinstancemanagement_tenant_id, value="00000000-0000-0000-0000-000000000000" - ) - add_general_regex_sanitizer( - regex=containerinstancemanagement_client_id, value="00000000-0000-0000-0000-000000000000" - ) - add_general_regex_sanitizer( - regex=containerinstancemanagement_client_secret, value="00000000-0000-0000-0000-000000000000" - ) + containerinstance_subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + containerinstance_tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") + containerinstance_client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000") + containerinstance_client_secret = os.environ.get("AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=containerinstance_subscription_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=containerinstance_tenant_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=containerinstance_client_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=containerinstance_client_secret, value="00000000-0000-0000-0000-000000000000") add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]") add_header_regex_sanitizer(key="Cookie", value="cookie;") diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations.py new file mode 100644 index 000000000000..c497368fef23 --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations.py @@ -0,0 +1,313 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.containerinstance import ContainerInstanceClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerInstanceCGProfileOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerInstanceClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profile_get_by_revision_number(self, resource_group): + response = self.client.cg_profile.get_by_revision_number( + resource_group_name=resource_group.name, + container_group_profile_name="str", + revision_number="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profile_list_all_revisions(self, resource_group): + response = self.client.cg_profile.list_all_revisions( + resource_group_name=resource_group.name, + container_group_profile_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profile_get(self, resource_group): + response = self.client.cg_profile.get( + resource_group_name=resource_group.name, + container_group_profile_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profile_create_or_update(self, resource_group): + response = self.client.cg_profile.create_or_update( + resource_group_name=resource_group.name, + container_group_profile_name="str", + container_group_profile={ + "id": "str", + "location": "str", + "name": "str", + "properties": { + "containers": [ + { + "name": "str", + "properties": { + "command": ["str"], + "configMap": {"keyValuePairs": {"str": "str"}}, + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "livenessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "ports": [{"port": 0, "protocol": "str"}], + "readinessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "resources": { + "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, + "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + }, + } + ], + "osType": "str", + "confidentialComputeProperties": {"ccePolicy": "str"}, + "diagnostics": { + "logAnalytics": { + "workspaceId": "str", + "workspaceKey": "str", + "logType": "str", + "metadata": {"str": "str"}, + "workspaceResourceId": "str", + } + }, + "encryptionProperties": { + "keyName": "str", + "keyVersion": "str", + "vaultBaseUrl": "str", + "identity": "str", + }, + "extensions": [ + { + "name": "str", + "properties": { + "extensionType": "str", + "version": "str", + "protectedSettings": {}, + "settings": {}, + }, + } + ], + "imageRegistryCredentials": [ + { + "server": "str", + "identity": "str", + "identityUrl": "str", + "password": "str", + "passwordReference": "str", + "username": "str", + } + ], + "initContainers": [ + { + "name": "str", + "properties": { + "command": ["str"], + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + }, + } + ], + "ipAddress": { + "ports": [{"port": 0, "protocol": "str"}], + "type": "str", + "autoGeneratedDomainNameLabelScope": "str", + "dnsNameLabel": "str", + "fqdn": "str", + "ip": "str", + }, + "priority": "str", + "registeredRevisions": [0], + "restartPolicy": "str", + "revision": 0, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "shutdownGracePeriod": "2020-02-20 00:00:00", + "sku": "str", + "timeToLive": "2020-02-20 00:00:00", + "useKrypton": bool, + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + "emptyDir": {}, + "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, + "secret": {"str": "str"}, + "secretReference": {"str": "str"}, + } + ], + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profile_update(self, resource_group): + response = self.client.cg_profile.update( + resource_group_name=resource_group.name, + container_group_profile_name="str", + properties={"tags": {"str": "str"}}, + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cg_profile_delete(self, resource_group): + response = self.client.cg_profile.delete( + resource_group_name=resource_group.name, + container_group_profile_name="str", + ) + + # please add some check logic here by yourself + # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations_async.py new file mode 100644 index 000000000000..627842392b7d --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations_async.py @@ -0,0 +1,314 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.containerinstance.aio import ContainerInstanceClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerInstanceCGProfileOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profile_get_by_revision_number(self, resource_group): + response = await self.client.cg_profile.get_by_revision_number( + resource_group_name=resource_group.name, + container_group_profile_name="str", + revision_number="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profile_list_all_revisions(self, resource_group): + response = self.client.cg_profile.list_all_revisions( + resource_group_name=resource_group.name, + container_group_profile_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profile_get(self, resource_group): + response = await self.client.cg_profile.get( + resource_group_name=resource_group.name, + container_group_profile_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profile_create_or_update(self, resource_group): + response = await self.client.cg_profile.create_or_update( + resource_group_name=resource_group.name, + container_group_profile_name="str", + container_group_profile={ + "id": "str", + "location": "str", + "name": "str", + "properties": { + "containers": [ + { + "name": "str", + "properties": { + "command": ["str"], + "configMap": {"keyValuePairs": {"str": "str"}}, + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "livenessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "ports": [{"port": 0, "protocol": "str"}], + "readinessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "resources": { + "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, + "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + }, + } + ], + "osType": "str", + "confidentialComputeProperties": {"ccePolicy": "str"}, + "diagnostics": { + "logAnalytics": { + "workspaceId": "str", + "workspaceKey": "str", + "logType": "str", + "metadata": {"str": "str"}, + "workspaceResourceId": "str", + } + }, + "encryptionProperties": { + "keyName": "str", + "keyVersion": "str", + "vaultBaseUrl": "str", + "identity": "str", + }, + "extensions": [ + { + "name": "str", + "properties": { + "extensionType": "str", + "version": "str", + "protectedSettings": {}, + "settings": {}, + }, + } + ], + "imageRegistryCredentials": [ + { + "server": "str", + "identity": "str", + "identityUrl": "str", + "password": "str", + "passwordReference": "str", + "username": "str", + } + ], + "initContainers": [ + { + "name": "str", + "properties": { + "command": ["str"], + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + }, + } + ], + "ipAddress": { + "ports": [{"port": 0, "protocol": "str"}], + "type": "str", + "autoGeneratedDomainNameLabelScope": "str", + "dnsNameLabel": "str", + "fqdn": "str", + "ip": "str", + }, + "priority": "str", + "registeredRevisions": [0], + "restartPolicy": "str", + "revision": 0, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "shutdownGracePeriod": "2020-02-20 00:00:00", + "sku": "str", + "timeToLive": "2020-02-20 00:00:00", + "useKrypton": bool, + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + "emptyDir": {}, + "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, + "secret": {"str": "str"}, + "secretReference": {"str": "str"}, + } + ], + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profile_update(self, resource_group): + response = await self.client.cg_profile.update( + resource_group_name=resource_group.name, + container_group_profile_name="str", + properties={"tags": {"str": "str"}}, + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cg_profile_delete(self, resource_group): + response = await self.client.cg_profile.delete( + resource_group_name=resource_group.name, + container_group_profile_name="str", + ) + + # please add some check logic here by yourself + # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profiles_operations.py similarity index 78% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profiles_operations.py index 15f0cd971f0a..f39446d67e8c 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profiles_operations.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,16 +14,14 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementCGProfilesOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceCGProfilesOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient) + self.client = self.create_mgmt_client(ContainerInstanceClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_cg_profiles_list_by_subscription(self, resource_group): - response = self.client.cg_profiles.list_by_subscription( - api_version="2025-09-01", - ) + response = self.client.cg_profiles.list_by_subscription() result = [r for r in response] # please add some check logic here by yourself # ... @@ -33,7 +31,6 @@ def test_cg_profiles_list_by_subscription(self, resource_group): def test_cg_profiles_list_by_resource_group(self, resource_group): response = self.client.cg_profiles.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profiles_operations_async.py similarity index 78% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profiles_operations_async.py index b92a71d7053b..3f5a3f65a963 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profiles_operations_async.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient +from azure.mgmt.containerinstance.aio import ContainerInstanceClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,16 +15,14 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementCGProfilesOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceCGProfilesOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_cg_profiles_list_by_subscription(self, resource_group): - response = self.client.cg_profiles.list_by_subscription( - api_version="2025-09-01", - ) + response = self.client.cg_profiles.list_by_subscription() result = [r async for r in response] # please add some check logic here by yourself # ... @@ -34,7 +32,6 @@ async def test_cg_profiles_list_by_subscription(self, resource_group): async def test_cg_profiles_list_by_resource_group(self, resource_group): response = self.client.cg_profiles.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations.py new file mode 100644 index 000000000000..fa4b41dcb520 --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations.py @@ -0,0 +1,373 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.containerinstance import ContainerInstanceClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerInstanceContainerGroupsOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerInstanceClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_groups_get(self, resource_group): + response = self.client.container_groups.get( + resource_group_name=resource_group.name, + container_group_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_groups_begin_create_or_update(self, resource_group): + response = self.client.container_groups.begin_create_or_update( + resource_group_name=resource_group.name, + container_group_name="str", + container_group={ + "location": "str", + "properties": { + "containers": [ + { + "name": "str", + "properties": { + "command": ["str"], + "configMap": {"keyValuePairs": {"str": "str"}}, + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "livenessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "ports": [{"port": 0, "protocol": "str"}], + "readinessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "resources": { + "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, + "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + }, + } + ], + "confidentialComputeProperties": {"ccePolicy": "str"}, + "containerGroupProfile": {"id": "str", "revision": 0}, + "diagnostics": { + "logAnalytics": { + "workspaceId": "str", + "workspaceKey": "str", + "logType": "str", + "metadata": {"str": "str"}, + "workspaceResourceId": "str", + } + }, + "dnsConfig": {"nameServers": ["str"], "options": "str", "searchDomains": "str"}, + "encryptionProperties": { + "keyName": "str", + "keyVersion": "str", + "vaultBaseUrl": "str", + "identity": "str", + }, + "extensions": [ + { + "name": "str", + "properties": { + "extensionType": "str", + "version": "str", + "protectedSettings": {}, + "settings": {}, + }, + } + ], + "identityAcls": {"acls": [{"access": "str", "identity": "str"}], "defaultAccess": "str"}, + "imageRegistryCredentials": [ + { + "server": "str", + "identity": "str", + "identityUrl": "str", + "password": "str", + "passwordReference": "str", + "username": "str", + } + ], + "initContainers": [ + { + "name": "str", + "properties": { + "command": ["str"], + "environmentVariables": [ + {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + }, + } + ], + "instanceView": { + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "state": "str", + }, + "ipAddress": { + "ports": [{"port": 0, "protocol": "str"}], + "type": "str", + "autoGeneratedDomainNameLabelScope": "str", + "dnsNameLabel": "str", + "fqdn": "str", + "ip": "str", + }, + "isCreatedFromStandbyPool": bool, + "osType": "str", + "priority": "str", + "provisioningState": "str", + "restartPolicy": "str", + "secretReferences": [{"identity": "str", "name": "str", "secretReferenceUri": "str"}], + "sku": "str", + "standbyPoolProfile": {"failContainerGroupCreateOnReuseFailure": bool, "id": "str"}, + "subnetIds": [{"id": "str", "name": "str"}], + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + "emptyDir": {}, + "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, + "secret": {"str": "str"}, + "secretReference": {"str": "str"}, + } + ], + }, + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_groups_update(self, resource_group): + response = self.client.container_groups.update( + resource_group_name=resource_group.name, + container_group_name="str", + resource={ + "id": "str", + "location": "str", + "name": "str", + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_groups_begin_delete(self, resource_group): + response = self.client.container_groups.begin_delete( + resource_group_name=resource_group.name, + container_group_name="str", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_groups_begin_restart(self, resource_group): + response = self.client.container_groups.begin_restart( + resource_group_name=resource_group.name, + container_group_name="str", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_groups_stop(self, resource_group): + response = self.client.container_groups.stop( + resource_group_name=resource_group.name, + container_group_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_groups_begin_start(self, resource_group): + response = self.client.container_groups.begin_start( + resource_group_name=resource_group.name, + container_group_name="str", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_groups_get_outbound_network_dependencies_endpoints(self, resource_group): + response = self.client.container_groups.get_outbound_network_dependencies_endpoints( + resource_group_name=resource_group.name, + container_group_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_groups_list(self, resource_group): + response = self.client.container_groups.list() + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_groups_list_by_resource_group(self, resource_group): + response = self.client.container_groups.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations_async.py new file mode 100644 index 000000000000..0e752370224d --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations_async.py @@ -0,0 +1,392 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.containerinstance.aio import ContainerInstanceClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerInstanceContainerGroupsOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_groups_get(self, resource_group): + response = await self.client.container_groups.get( + resource_group_name=resource_group.name, + container_group_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_groups_begin_create_or_update(self, resource_group): + response = await ( + await self.client.container_groups.begin_create_or_update( + resource_group_name=resource_group.name, + container_group_name="str", + container_group={ + "location": "str", + "properties": { + "containers": [ + { + "name": "str", + "properties": { + "command": ["str"], + "configMap": {"keyValuePairs": {"str": "str"}}, + "environmentVariables": [ + { + "name": "str", + "secureValue": "str", + "secureValueReference": "str", + "value": "str", + } + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "livenessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "ports": [{"port": 0, "protocol": "str"}], + "readinessProbe": { + "exec": {"command": ["str"]}, + "failureThreshold": 0, + "httpGet": { + "port": 0, + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "timeoutSeconds": 0, + }, + "resources": { + "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, + "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + }, + } + ], + "confidentialComputeProperties": {"ccePolicy": "str"}, + "containerGroupProfile": {"id": "str", "revision": 0}, + "diagnostics": { + "logAnalytics": { + "workspaceId": "str", + "workspaceKey": "str", + "logType": "str", + "metadata": {"str": "str"}, + "workspaceResourceId": "str", + } + }, + "dnsConfig": {"nameServers": ["str"], "options": "str", "searchDomains": "str"}, + "encryptionProperties": { + "keyName": "str", + "keyVersion": "str", + "vaultBaseUrl": "str", + "identity": "str", + }, + "extensions": [ + { + "name": "str", + "properties": { + "extensionType": "str", + "version": "str", + "protectedSettings": {}, + "settings": {}, + }, + } + ], + "identityAcls": {"acls": [{"access": "str", "identity": "str"}], "defaultAccess": "str"}, + "imageRegistryCredentials": [ + { + "server": "str", + "identity": "str", + "identityUrl": "str", + "password": "str", + "passwordReference": "str", + "username": "str", + } + ], + "initContainers": [ + { + "name": "str", + "properties": { + "command": ["str"], + "environmentVariables": [ + { + "name": "str", + "secureValue": "str", + "secureValueReference": "str", + "value": "str", + } + ], + "image": "str", + "instanceView": { + "currentState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "previousState": { + "detailStatus": "str", + "exitCode": 0, + "finishTime": "2020-02-20 00:00:00", + "startTime": "2020-02-20 00:00:00", + "state": "str", + }, + "restartCount": 0, + }, + "securityContext": { + "allowPrivilegeEscalation": bool, + "capabilities": {"add": ["str"], "drop": ["str"]}, + "privileged": bool, + "runAsGroup": 0, + "runAsUser": 0, + "seccompProfile": "str", + }, + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], + }, + } + ], + "instanceView": { + "events": [ + { + "count": 0, + "firstTimestamp": "2020-02-20 00:00:00", + "lastTimestamp": "2020-02-20 00:00:00", + "message": "str", + "name": "str", + "type": "str", + } + ], + "state": "str", + }, + "ipAddress": { + "ports": [{"port": 0, "protocol": "str"}], + "type": "str", + "autoGeneratedDomainNameLabelScope": "str", + "dnsNameLabel": "str", + "fqdn": "str", + "ip": "str", + }, + "isCreatedFromStandbyPool": bool, + "osType": "str", + "priority": "str", + "provisioningState": "str", + "restartPolicy": "str", + "secretReferences": [{"identity": "str", "name": "str", "secretReferenceUri": "str"}], + "sku": "str", + "standbyPoolProfile": {"failContainerGroupCreateOnReuseFailure": bool, "id": "str"}, + "subnetIds": [{"id": "str", "name": "str"}], + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + "emptyDir": {}, + "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, + "secret": {"str": "str"}, + "secretReference": {"str": "str"}, + } + ], + }, + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_groups_update(self, resource_group): + response = await self.client.container_groups.update( + resource_group_name=resource_group.name, + container_group_name="str", + resource={ + "id": "str", + "location": "str", + "name": "str", + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_groups_begin_delete(self, resource_group): + response = await ( + await self.client.container_groups.begin_delete( + resource_group_name=resource_group.name, + container_group_name="str", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_groups_begin_restart(self, resource_group): + response = await ( + await self.client.container_groups.begin_restart( + resource_group_name=resource_group.name, + container_group_name="str", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_groups_stop(self, resource_group): + response = await self.client.container_groups.stop( + resource_group_name=resource_group.name, + container_group_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_groups_begin_start(self, resource_group): + response = await ( + await self.client.container_groups.begin_start( + resource_group_name=resource_group.name, + container_group_name="str", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_groups_get_outbound_network_dependencies_endpoints(self, resource_group): + response = await self.client.container_groups.get_outbound_network_dependencies_endpoints( + resource_group_name=resource_group.name, + container_group_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_groups_list(self, resource_group): + response = self.client.container_groups.list() + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_groups_list_by_resource_group(self, resource_group): + response = self.client.container_groups.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_containers_operations.py similarity index 82% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_containers_operations.py index a9ae7dd6c800..ad594fe33542 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_containers_operations.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,9 +14,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementContainersOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceContainersOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient) + self.client = self.create_mgmt_client(ContainerInstanceClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy @@ -25,7 +25,6 @@ def test_containers_list_logs(self, resource_group): resource_group_name=resource_group.name, container_group_name="str", container_name="str", - api_version="2025-09-01", ) # please add some check logic here by yourself @@ -39,7 +38,6 @@ def test_containers_execute_command(self, resource_group): container_group_name="str", container_name="str", container_exec_request={"command": "str", "terminalSize": {"cols": 0, "rows": 0}}, - api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +50,6 @@ def test_containers_attach(self, resource_group): resource_group_name=resource_group.name, container_group_name="str", container_name="str", - api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_containers_operations_async.py similarity index 82% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_containers_operations_async.py index a349d1178672..80cd643f6612 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_containers_operations_async.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient +from azure.mgmt.containerinstance.aio import ContainerInstanceClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,9 +15,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementContainersOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceContainersOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async @@ -26,7 +26,6 @@ async def test_containers_list_logs(self, resource_group): resource_group_name=resource_group.name, container_group_name="str", container_name="str", - api_version="2025-09-01", ) # please add some check logic here by yourself @@ -40,7 +39,6 @@ async def test_containers_execute_command(self, resource_group): container_group_name="str", container_name="str", container_exec_request={"command": "str", "terminalSize": {"cols": 0, "rows": 0}}, - api_version="2025-09-01", ) # please add some check logic here by yourself @@ -53,7 +51,6 @@ async def test_containers_attach(self, resource_group): resource_group_name=resource_group.name, container_group_name="str", container_name="str", - api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_location_operations.py similarity index 80% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_location_operations.py index e63c05f6e40d..fc731cef83fb 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_location_operations.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,16 +14,15 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementLocationOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceLocationOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient) + self.client = self.create_mgmt_client(ContainerInstanceClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_location_list_usage(self, resource_group): response = self.client.location.list_usage( location="str", - api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -34,7 +33,6 @@ def test_location_list_usage(self, resource_group): def test_location_list_cached_images(self, resource_group): response = self.client.location.list_cached_images( location="str", - api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -45,7 +43,6 @@ def test_location_list_cached_images(self, resource_group): def test_location_list_capabilities(self, resource_group): response = self.client.location.list_capabilities( location="str", - api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_location_operations_async.py similarity index 80% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_location_operations_async.py index 44be006a062e..43db6e13cc2c 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_location_operations_async.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient +from azure.mgmt.containerinstance.aio import ContainerInstanceClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,16 +15,15 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementLocationOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceLocationOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_location_list_usage(self, resource_group): response = self.client.location.list_usage( location="str", - api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -35,7 +34,6 @@ async def test_location_list_usage(self, resource_group): async def test_location_list_cached_images(self, resource_group): response = self.client.location.list_cached_images( location="str", - api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -46,7 +44,6 @@ async def test_location_list_cached_images(self, resource_group): async def test_location_list_capabilities(self, resource_group): response = self.client.location.list_capabilities( location="str", - api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations.py deleted file mode 100644 index 3ec731ee874c..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations.py +++ /dev/null @@ -1,305 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -import pytest -from azure.mgmt.containerinstance import ContainerInstanceManagementClient - -from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy - -AZURE_LOCATION = "eastus" - - -@pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementCGProfileOperations(AzureMgmtRecordedTestCase): - def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient) - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_cg_profile_create_or_update(self, resource_group): - response = self.client.cg_profile.create_or_update( - resource_group_name=resource_group.name, - container_group_profile_name="str", - container_group_profile={ - "confidentialComputeProperties": {"ccePolicy": "str"}, - "containers": [ - { - "name": "str", - "command": ["str"], - "configMap": {"keyValuePairs": {"str": "str"}}, - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "livenessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "ports": [{"port": 0, "protocol": "str"}], - "readinessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "resources": { - "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, - "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "diagnostics": { - "logAnalytics": { - "workspaceId": "str", - "workspaceKey": "str", - "logType": "str", - "metadata": {"str": "str"}, - "workspaceResourceId": "str", - } - }, - "encryptionProperties": { - "keyName": "str", - "keyVersion": "str", - "vaultBaseUrl": "str", - "identity": "str", - }, - "extensions": [ - {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} - ], - "id": "str", - "imageRegistryCredentials": [ - { - "server": "str", - "identity": "str", - "identityUrl": "str", - "password": "str", - "passwordReference": "str", - "username": "str", - } - ], - "initContainers": [ - { - "name": "str", - "command": ["str"], - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "ipAddress": { - "ports": [{"port": 0, "protocol": "str"}], - "type": "str", - "autoGeneratedDomainNameLabelScope": "Unsecure", - "dnsNameLabel": "str", - "fqdn": "str", - "ip": "str", - }, - "location": "str", - "name": "str", - "osType": "str", - "priority": "str", - "registeredRevisions": [0], - "restartPolicy": "str", - "revision": 0, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "shutdownGracePeriod": "2020-02-20 00:00:00", - "sku": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "timeToLive": "2020-02-20 00:00:00", - "type": "str", - "useKrypton": bool, - "volumes": [ - { - "name": "str", - "azureFile": { - "shareName": "str", - "storageAccountName": "str", - "readOnly": bool, - "storageAccountKey": "str", - "storageAccountKeyReference": "str", - }, - "emptyDir": {}, - "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, - "secret": {"str": "str"}, - "secretReference": {"str": "str"}, - } - ], - "zones": ["str"], - }, - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_cg_profile_update(self, resource_group): - response = self.client.cg_profile.update( - resource_group_name=resource_group.name, - container_group_profile_name="str", - properties={"tags": {"str": "str"}}, - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_cg_profile_get(self, resource_group): - response = self.client.cg_profile.get( - resource_group_name=resource_group.name, - container_group_profile_name="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_cg_profile_delete(self, resource_group): - response = self.client.cg_profile.delete( - resource_group_name=resource_group.name, - container_group_profile_name="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_cg_profile_list_all_revisions(self, resource_group): - response = self.client.cg_profile.list_all_revisions( - resource_group_name=resource_group.name, - container_group_profile_name="str", - api_version="2025-09-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_cg_profile_get_by_revision_number(self, resource_group): - response = self.client.cg_profile.get_by_revision_number( - resource_group_name=resource_group.name, - container_group_profile_name="str", - revision_number="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations_async.py deleted file mode 100644 index df325d2a3e3d..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations_async.py +++ /dev/null @@ -1,306 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient - -from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer -from devtools_testutils.aio import recorded_by_proxy_async - -AZURE_LOCATION = "eastus" - - -@pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementCGProfileOperationsAsync(AzureMgmtRecordedTestCase): - def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_cg_profile_create_or_update(self, resource_group): - response = await self.client.cg_profile.create_or_update( - resource_group_name=resource_group.name, - container_group_profile_name="str", - container_group_profile={ - "confidentialComputeProperties": {"ccePolicy": "str"}, - "containers": [ - { - "name": "str", - "command": ["str"], - "configMap": {"keyValuePairs": {"str": "str"}}, - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "livenessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "ports": [{"port": 0, "protocol": "str"}], - "readinessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "resources": { - "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, - "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "diagnostics": { - "logAnalytics": { - "workspaceId": "str", - "workspaceKey": "str", - "logType": "str", - "metadata": {"str": "str"}, - "workspaceResourceId": "str", - } - }, - "encryptionProperties": { - "keyName": "str", - "keyVersion": "str", - "vaultBaseUrl": "str", - "identity": "str", - }, - "extensions": [ - {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} - ], - "id": "str", - "imageRegistryCredentials": [ - { - "server": "str", - "identity": "str", - "identityUrl": "str", - "password": "str", - "passwordReference": "str", - "username": "str", - } - ], - "initContainers": [ - { - "name": "str", - "command": ["str"], - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "ipAddress": { - "ports": [{"port": 0, "protocol": "str"}], - "type": "str", - "autoGeneratedDomainNameLabelScope": "Unsecure", - "dnsNameLabel": "str", - "fqdn": "str", - "ip": "str", - }, - "location": "str", - "name": "str", - "osType": "str", - "priority": "str", - "registeredRevisions": [0], - "restartPolicy": "str", - "revision": 0, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "shutdownGracePeriod": "2020-02-20 00:00:00", - "sku": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "timeToLive": "2020-02-20 00:00:00", - "type": "str", - "useKrypton": bool, - "volumes": [ - { - "name": "str", - "azureFile": { - "shareName": "str", - "storageAccountName": "str", - "readOnly": bool, - "storageAccountKey": "str", - "storageAccountKeyReference": "str", - }, - "emptyDir": {}, - "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, - "secret": {"str": "str"}, - "secretReference": {"str": "str"}, - } - ], - "zones": ["str"], - }, - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_cg_profile_update(self, resource_group): - response = await self.client.cg_profile.update( - resource_group_name=resource_group.name, - container_group_profile_name="str", - properties={"tags": {"str": "str"}}, - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_cg_profile_get(self, resource_group): - response = await self.client.cg_profile.get( - resource_group_name=resource_group.name, - container_group_profile_name="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_cg_profile_delete(self, resource_group): - response = await self.client.cg_profile.delete( - resource_group_name=resource_group.name, - container_group_profile_name="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_cg_profile_list_all_revisions(self, resource_group): - response = self.client.cg_profile.list_all_revisions( - resource_group_name=resource_group.name, - container_group_profile_name="str", - api_version="2025-09-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_cg_profile_get_by_revision_number(self, resource_group): - response = await self.client.cg_profile.get_by_revision_number( - resource_group_name=resource_group.name, - container_group_profile_name="str", - revision_number="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profile_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profile_operations.py deleted file mode 100644 index 086b738307d9..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profile_operations.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -import pytest -from azure.mgmt.containerinstance import ContainerInstanceManagementClient - -from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy - -AZURE_LOCATION = "eastus" - - -@pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementContainerGroupProfileOperations(AzureMgmtRecordedTestCase): - def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient) - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_list_all_revisions(self, resource_group): - response = self.client.container_group_profile.list_all_revisions( - resource_group_name=resource_group.name, - container_group_profile_name="str", - api_version="2024-05-01-preview", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_get_by_revision_number(self, resource_group): - response = self.client.container_group_profile.get_by_revision_number( - resource_group_name=resource_group.name, - container_group_profile_name="str", - revision_number="str", - api_version="2024-05-01-preview", - ) - - # please add some check logic here by yourself - # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profile_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profile_operations_async.py deleted file mode 100644 index cb1f53b484d4..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profile_operations_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient - -from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer -from devtools_testutils.aio import recorded_by_proxy_async - -AZURE_LOCATION = "eastus" - - -@pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementContainerGroupProfileOperationsAsync(AzureMgmtRecordedTestCase): - def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_list_all_revisions(self, resource_group): - response = self.client.container_group_profile.list_all_revisions( - resource_group_name=resource_group.name, - container_group_profile_name="str", - api_version="2024-05-01-preview", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_get_by_revision_number(self, resource_group): - response = await self.client.container_group_profile.get_by_revision_number( - resource_group_name=resource_group.name, - container_group_profile_name="str", - revision_number="str", - api_version="2024-05-01-preview", - ) - - # please add some check logic here by yourself - # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profiles_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profiles_operations.py deleted file mode 100644 index f32173dcbfcc..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profiles_operations.py +++ /dev/null @@ -1,268 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -import pytest -from azure.mgmt.containerinstance import ContainerInstanceManagementClient - -from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy - -AZURE_LOCATION = "eastus" - - -@pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementContainerGroupProfilesOperations(AzureMgmtRecordedTestCase): - def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient) - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_list(self, resource_group): - response = self.client.container_group_profiles.list( - api_version="2024-05-01-preview", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_list_by_resource_group(self, resource_group): - response = self.client.container_group_profiles.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2024-05-01-preview", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_get(self, resource_group): - response = self.client.container_group_profiles.get( - resource_group_name=resource_group.name, - container_group_profile_name="str", - api_version="2024-05-01-preview", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_create_or_update(self, resource_group): - response = self.client.container_group_profiles.create_or_update( - resource_group_name=resource_group.name, - container_group_profile_name="str", - container_group_profile={ - "containers": [ - { - "name": "str", - "command": ["str"], - "configMap": {"keyValuePairs": {"str": "str"}}, - "environmentVariables": [{"name": "str", "secureValue": "str", "value": "str"}], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "livenessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "ports": [{"port": 0, "protocol": "str"}], - "readinessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "resources": { - "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, - "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "osType": "str", - "confidentialComputeProperties": {"ccePolicy": "str"}, - "diagnostics": { - "logAnalytics": { - "workspaceId": "str", - "workspaceKey": "str", - "logType": "str", - "metadata": {"str": "str"}, - "workspaceResourceId": "str", - } - }, - "encryptionProperties": { - "keyName": "str", - "keyVersion": "str", - "vaultBaseUrl": "str", - "identity": "str", - }, - "extensions": [ - {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} - ], - "id": "str", - "imageRegistryCredentials": [ - {"server": "str", "identity": "str", "identityUrl": "str", "password": "str", "username": "str"} - ], - "initContainers": [ - { - "name": "str", - "command": ["str"], - "environmentVariables": [{"name": "str", "secureValue": "str", "value": "str"}], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "ipAddress": { - "ports": [{"port": 0, "protocol": "str"}], - "type": "str", - "autoGeneratedDomainNameLabelScope": "Unsecure", - "dnsNameLabel": "str", - "fqdn": "str", - "ip": "str", - }, - "location": "str", - "name": "str", - "priority": "str", - "restartPolicy": "str", - "revision": 0, - "sku": "str", - "tags": {"str": "str"}, - "type": "str", - "volumes": [ - { - "name": "str", - "azureFile": { - "shareName": "str", - "storageAccountName": "str", - "readOnly": bool, - "storageAccountKey": "str", - }, - "emptyDir": {}, - "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, - "secret": {"str": "str"}, - } - ], - "zones": ["str"], - }, - api_version="2024-05-01-preview", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_patch(self, resource_group): - response = self.client.container_group_profiles.patch( - resource_group_name=resource_group.name, - container_group_profile_name="str", - properties={"tags": {"str": "str"}}, - api_version="2024-05-01-preview", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_delete(self, resource_group): - response = self.client.container_group_profiles.delete( - resource_group_name=resource_group.name, - container_group_profile_name="str", - api_version="2024-05-01-preview", - ) - - # please add some check logic here by yourself - # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profiles_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profiles_operations_async.py deleted file mode 100644 index a3d724865521..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_group_profiles_operations_async.py +++ /dev/null @@ -1,269 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient - -from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer -from devtools_testutils.aio import recorded_by_proxy_async - -AZURE_LOCATION = "eastus" - - -@pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementContainerGroupProfilesOperationsAsync(AzureMgmtRecordedTestCase): - def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_list(self, resource_group): - response = self.client.container_group_profiles.list( - api_version="2024-05-01-preview", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_list_by_resource_group(self, resource_group): - response = self.client.container_group_profiles.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2024-05-01-preview", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_get(self, resource_group): - response = await self.client.container_group_profiles.get( - resource_group_name=resource_group.name, - container_group_profile_name="str", - api_version="2024-05-01-preview", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_create_or_update(self, resource_group): - response = await self.client.container_group_profiles.create_or_update( - resource_group_name=resource_group.name, - container_group_profile_name="str", - container_group_profile={ - "containers": [ - { - "name": "str", - "command": ["str"], - "configMap": {"keyValuePairs": {"str": "str"}}, - "environmentVariables": [{"name": "str", "secureValue": "str", "value": "str"}], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "livenessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "ports": [{"port": 0, "protocol": "str"}], - "readinessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "resources": { - "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, - "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "osType": "str", - "confidentialComputeProperties": {"ccePolicy": "str"}, - "diagnostics": { - "logAnalytics": { - "workspaceId": "str", - "workspaceKey": "str", - "logType": "str", - "metadata": {"str": "str"}, - "workspaceResourceId": "str", - } - }, - "encryptionProperties": { - "keyName": "str", - "keyVersion": "str", - "vaultBaseUrl": "str", - "identity": "str", - }, - "extensions": [ - {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} - ], - "id": "str", - "imageRegistryCredentials": [ - {"server": "str", "identity": "str", "identityUrl": "str", "password": "str", "username": "str"} - ], - "initContainers": [ - { - "name": "str", - "command": ["str"], - "environmentVariables": [{"name": "str", "secureValue": "str", "value": "str"}], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "ipAddress": { - "ports": [{"port": 0, "protocol": "str"}], - "type": "str", - "autoGeneratedDomainNameLabelScope": "Unsecure", - "dnsNameLabel": "str", - "fqdn": "str", - "ip": "str", - }, - "location": "str", - "name": "str", - "priority": "str", - "restartPolicy": "str", - "revision": 0, - "sku": "str", - "tags": {"str": "str"}, - "type": "str", - "volumes": [ - { - "name": "str", - "azureFile": { - "shareName": "str", - "storageAccountName": "str", - "readOnly": bool, - "storageAccountKey": "str", - }, - "emptyDir": {}, - "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, - "secret": {"str": "str"}, - } - ], - "zones": ["str"], - }, - api_version="2024-05-01-preview", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_patch(self, resource_group): - response = await self.client.container_group_profiles.patch( - resource_group_name=resource_group.name, - container_group_profile_name="str", - properties={"tags": {"str": "str"}}, - api_version="2024-05-01-preview", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_delete(self, resource_group): - response = await self.client.container_group_profiles.delete( - resource_group_name=resource_group.name, - container_group_profile_name="str", - api_version="2024-05-01-preview", - ) - - # please add some check logic here by yourself - # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations.py deleted file mode 100644 index 25990b350ada..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations.py +++ /dev/null @@ -1,362 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -import pytest -from azure.mgmt.containerinstance import ContainerInstanceManagementClient - -from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy - -AZURE_LOCATION = "eastus" - - -@pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementContainerGroupsOperations(AzureMgmtRecordedTestCase): - def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient) - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_groups_list(self, resource_group): - response = self.client.container_groups.list( - api_version="2025-09-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_groups_list_by_resource_group(self, resource_group): - response = self.client.container_groups.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2025-09-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_groups_get(self, resource_group): - response = self.client.container_groups.get( - resource_group_name=resource_group.name, - container_group_name="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_groups_begin_create_or_update(self, resource_group): - response = self.client.container_groups.begin_create_or_update( - resource_group_name=resource_group.name, - container_group_name="str", - container_group={ - "containers": [ - { - "name": "str", - "command": ["str"], - "configMap": {"keyValuePairs": {"str": "str"}}, - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "livenessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "ports": [{"port": 0, "protocol": "str"}], - "readinessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "resources": { - "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, - "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "confidentialComputeProperties": {"ccePolicy": "str"}, - "containerGroupProfile": {"id": "str", "revision": 0}, - "diagnostics": { - "logAnalytics": { - "workspaceId": "str", - "workspaceKey": "str", - "logType": "str", - "metadata": {"str": "str"}, - "workspaceResourceId": "str", - } - }, - "dnsConfig": {"nameServers": ["str"], "options": "str", "searchDomains": "str"}, - "encryptionProperties": { - "keyName": "str", - "keyVersion": "str", - "vaultBaseUrl": "str", - "identity": "str", - }, - "extensions": [ - {"name": "str", "extensionType": "str", "protectedSettings": {}, "settings": {}, "version": "str"} - ], - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, - }, - "identityAcls": {"acls": [{"access": "str", "identity": "str"}], "defaultAccess": "str"}, - "imageRegistryCredentials": [ - { - "server": "str", - "identity": "str", - "identityUrl": "str", - "password": "str", - "passwordReference": "str", - "username": "str", - } - ], - "initContainers": [ - { - "name": "str", - "command": ["str"], - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "instanceView": { - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "state": "str", - }, - "ipAddress": { - "ports": [{"port": 0, "protocol": "str"}], - "type": "str", - "autoGeneratedDomainNameLabelScope": "Unsecure", - "dnsNameLabel": "str", - "fqdn": "str", - "ip": "str", - }, - "isCreatedFromStandbyPool": bool, - "location": "str", - "name": "str", - "osType": "str", - "priority": "str", - "provisioningState": "str", - "restartPolicy": "str", - "secretReferences": [{"identity": "str", "name": "str", "secretReferenceUri": "str"}], - "sku": "str", - "standbyPoolProfile": {"failContainerGroupCreateOnReuseFailure": bool, "id": "str"}, - "subnetIds": [{"id": "str", "name": "str"}], - "tags": {"str": "str"}, - "type": "str", - "volumes": [ - { - "name": "str", - "azureFile": { - "shareName": "str", - "storageAccountName": "str", - "readOnly": bool, - "storageAccountKey": "str", - "storageAccountKeyReference": "str", - }, - "emptyDir": {}, - "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, - "secret": {"str": "str"}, - "secretReference": {"str": "str"}, - } - ], - "zones": ["str"], - }, - api_version="2025-09-01", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_groups_update(self, resource_group): - response = self.client.container_groups.update( - resource_group_name=resource_group.name, - container_group_name="str", - resource={ - "id": "str", - "location": "str", - "name": "str", - "tags": {"str": "str"}, - "type": "str", - "zones": ["str"], - }, - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_groups_begin_delete(self, resource_group): - response = self.client.container_groups.begin_delete( - resource_group_name=resource_group.name, - container_group_name="str", - api_version="2025-09-01", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_groups_begin_restart(self, resource_group): - response = self.client.container_groups.begin_restart( - resource_group_name=resource_group.name, - container_group_name="str", - api_version="2025-09-01", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_groups_stop(self, resource_group): - response = self.client.container_groups.stop( - resource_group_name=resource_group.name, - container_group_name="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_groups_begin_start(self, resource_group): - response = self.client.container_groups.begin_start( - resource_group_name=resource_group.name, - container_group_name="str", - api_version="2025-09-01", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_groups_get_outbound_network_dependencies_endpoints(self, resource_group): - response = self.client.container_groups.get_outbound_network_dependencies_endpoints( - resource_group_name=resource_group.name, - container_group_name="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations_async.py deleted file mode 100644 index 5e146947c67c..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations_async.py +++ /dev/null @@ -1,377 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient - -from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer -from devtools_testutils.aio import recorded_by_proxy_async - -AZURE_LOCATION = "eastus" - - -@pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementContainerGroupsOperationsAsync(AzureMgmtRecordedTestCase): - def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_groups_list(self, resource_group): - response = self.client.container_groups.list( - api_version="2025-09-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_groups_list_by_resource_group(self, resource_group): - response = self.client.container_groups.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2025-09-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_groups_get(self, resource_group): - response = await self.client.container_groups.get( - resource_group_name=resource_group.name, - container_group_name="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_groups_begin_create_or_update(self, resource_group): - response = await ( - await self.client.container_groups.begin_create_or_update( - resource_group_name=resource_group.name, - container_group_name="str", - container_group={ - "containers": [ - { - "name": "str", - "command": ["str"], - "configMap": {"keyValuePairs": {"str": "str"}}, - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "livenessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "ports": [{"port": 0, "protocol": "str"}], - "readinessProbe": { - "exec": {"command": ["str"]}, - "failureThreshold": 0, - "httpGet": { - "port": 0, - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "timeoutSeconds": 0, - }, - "resources": { - "requests": {"cpu": 0.0, "memoryInGB": 0.0, "gpu": {"count": 0, "sku": "str"}}, - "limits": {"cpu": 0.0, "gpu": {"count": 0, "sku": "str"}, "memoryInGB": 0.0}, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "confidentialComputeProperties": {"ccePolicy": "str"}, - "containerGroupProfile": {"id": "str", "revision": 0}, - "diagnostics": { - "logAnalytics": { - "workspaceId": "str", - "workspaceKey": "str", - "logType": "str", - "metadata": {"str": "str"}, - "workspaceResourceId": "str", - } - }, - "dnsConfig": {"nameServers": ["str"], "options": "str", "searchDomains": "str"}, - "encryptionProperties": { - "keyName": "str", - "keyVersion": "str", - "vaultBaseUrl": "str", - "identity": "str", - }, - "extensions": [ - { - "name": "str", - "extensionType": "str", - "protectedSettings": {}, - "settings": {}, - "version": "str", - } - ], - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, - }, - "identityAcls": {"acls": [{"access": "str", "identity": "str"}], "defaultAccess": "str"}, - "imageRegistryCredentials": [ - { - "server": "str", - "identity": "str", - "identityUrl": "str", - "password": "str", - "passwordReference": "str", - "username": "str", - } - ], - "initContainers": [ - { - "name": "str", - "command": ["str"], - "environmentVariables": [ - {"name": "str", "secureValue": "str", "secureValueReference": "str", "value": "str"} - ], - "image": "str", - "instanceView": { - "currentState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "previousState": { - "detailStatus": "str", - "exitCode": 0, - "finishTime": "2020-02-20 00:00:00", - "startTime": "2020-02-20 00:00:00", - "state": "str", - }, - "restartCount": 0, - }, - "securityContext": { - "allowPrivilegeEscalation": bool, - "capabilities": {"add": ["str"], "drop": ["str"]}, - "privileged": bool, - "runAsGroup": 0, - "runAsUser": 0, - "seccompProfile": "str", - }, - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}], - } - ], - "instanceView": { - "events": [ - { - "count": 0, - "firstTimestamp": "2020-02-20 00:00:00", - "lastTimestamp": "2020-02-20 00:00:00", - "message": "str", - "name": "str", - "type": "str", - } - ], - "state": "str", - }, - "ipAddress": { - "ports": [{"port": 0, "protocol": "str"}], - "type": "str", - "autoGeneratedDomainNameLabelScope": "Unsecure", - "dnsNameLabel": "str", - "fqdn": "str", - "ip": "str", - }, - "isCreatedFromStandbyPool": bool, - "location": "str", - "name": "str", - "osType": "str", - "priority": "str", - "provisioningState": "str", - "restartPolicy": "str", - "secretReferences": [{"identity": "str", "name": "str", "secretReferenceUri": "str"}], - "sku": "str", - "standbyPoolProfile": {"failContainerGroupCreateOnReuseFailure": bool, "id": "str"}, - "subnetIds": [{"id": "str", "name": "str"}], - "tags": {"str": "str"}, - "type": "str", - "volumes": [ - { - "name": "str", - "azureFile": { - "shareName": "str", - "storageAccountName": "str", - "readOnly": bool, - "storageAccountKey": "str", - "storageAccountKeyReference": "str", - }, - "emptyDir": {}, - "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, - "secret": {"str": "str"}, - "secretReference": {"str": "str"}, - } - ], - "zones": ["str"], - }, - api_version="2025-09-01", - ) - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_groups_update(self, resource_group): - response = await self.client.container_groups.update( - resource_group_name=resource_group.name, - container_group_name="str", - resource={ - "id": "str", - "location": "str", - "name": "str", - "tags": {"str": "str"}, - "type": "str", - "zones": ["str"], - }, - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_groups_begin_delete(self, resource_group): - response = await ( - await self.client.container_groups.begin_delete( - resource_group_name=resource_group.name, - container_group_name="str", - api_version="2025-09-01", - ) - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_groups_begin_restart(self, resource_group): - response = await ( - await self.client.container_groups.begin_restart( - resource_group_name=resource_group.name, - container_group_name="str", - api_version="2025-09-01", - ) - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_groups_stop(self, resource_group): - response = await self.client.container_groups.stop( - resource_group_name=resource_group.name, - container_group_name="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_groups_begin_start(self, resource_group): - response = await ( - await self.client.container_groups.begin_start( - resource_group_name=resource_group.name, - container_group_name="str", - api_version="2025-09-01", - ) - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_groups_get_outbound_network_dependencies_endpoints(self, resource_group): - response = await self.client.container_groups.get_outbound_network_dependencies_endpoints( - resource_group_name=resource_group.name, - container_group_name="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations.py deleted file mode 100644 index 546218a97cd4..000000000000 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations.py +++ /dev/null @@ -1,282 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -import pytest -from azure.mgmt.containerinstance import ContainerInstanceManagementClient - -from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy - -AZURE_LOCATION = "eastus" - - -@pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementNGroupsOperations(AzureMgmtRecordedTestCase): - def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient) - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_ngroups_get(self, resource_group): - response = self.client.ngroups.get( - resource_group_name=resource_group.name, - ngroups_name="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_ngroups_begin_create_or_update(self, resource_group): - response = self.client.ngroups.begin_create_or_update( - resource_group_name=resource_group.name, - ngroups_name="str", - n_group={ - "containerGroupProfiles": [ - { - "containerGroupProperties": { - "containers": [ - { - "name": "str", - "properties": { - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}] - }, - } - ], - "subnetIds": [{"id": "str", "name": "str"}], - "volumes": [ - { - "name": "str", - "azureFile": { - "shareName": "str", - "storageAccountName": "str", - "readOnly": bool, - "storageAccountKey": "str", - "storageAccountKeyReference": "str", - }, - } - ], - }, - "networkProfile": { - "applicationGateway": {"backendAddressPools": [{"resource": "str"}], "resource": "str"}, - "loadBalancer": {"backendAddressPools": [{"resource": "str"}]}, - }, - "resource": {"id": "str"}, - "revision": 0, - "storageProfile": { - "fileShares": [ - { - "name": "str", - "properties": {"shareAccessTier": "TransactionOptimized", "shareAccessType": "str"}, - "resourceGroupName": "str", - "storageAccountName": "str", - } - ] - }, - } - ], - "elasticProfile": { - "containerGroupNamingPolicy": {"guidNamingPolicy": {"prefix": "str"}}, - "desiredCount": 0, - "maintainDesiredCount": bool, - }, - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, - }, - "location": "str", - "name": "str", - "placementProfile": {"faultDomainCount": 0}, - "provisioningState": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "type": "str", - "updateProfile": { - "rollingUpdateProfile": { - "inPlaceUpdate": bool, - "maxBatchPercent": 0, - "maxUnhealthyPercent": 0, - "pauseTimeBetweenBatches": "str", - }, - "updateMode": "str", - }, - "zones": ["str"], - }, - api_version="2025-09-01", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_ngroups_begin_update(self, resource_group): - response = self.client.ngroups.begin_update( - resource_group_name=resource_group.name, - ngroups_name="str", - n_group={ - "containerGroupProfiles": [ - { - "containerGroupProperties": { - "containers": [ - { - "name": "str", - "properties": { - "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}] - }, - } - ], - "subnetIds": [{"id": "str", "name": "str"}], - "volumes": [ - { - "name": "str", - "azureFile": { - "shareName": "str", - "storageAccountName": "str", - "readOnly": bool, - "storageAccountKey": "str", - "storageAccountKeyReference": "str", - }, - } - ], - }, - "networkProfile": { - "applicationGateway": {"backendAddressPools": [{"resource": "str"}], "resource": "str"}, - "loadBalancer": {"backendAddressPools": [{"resource": "str"}]}, - }, - "resource": {"id": "str"}, - "revision": 0, - "storageProfile": { - "fileShares": [ - { - "name": "str", - "properties": {"shareAccessTier": "TransactionOptimized", "shareAccessType": "str"}, - "resourceGroupName": "str", - "storageAccountName": "str", - } - ] - }, - } - ], - "elasticProfile": { - "containerGroupNamingPolicy": {"guidNamingPolicy": {"prefix": "str"}}, - "desiredCount": 0, - "maintainDesiredCount": bool, - }, - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, - }, - "placementProfile": {"faultDomainCount": 0}, - "provisioningState": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "updateProfile": { - "rollingUpdateProfile": { - "inPlaceUpdate": bool, - "maxBatchPercent": 0, - "maxUnhealthyPercent": 0, - "pauseTimeBetweenBatches": "str", - }, - "updateMode": "str", - }, - "zones": ["str"], - }, - api_version="2025-09-01", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_ngroups_begin_delete(self, resource_group): - response = self.client.ngroups.begin_delete( - resource_group_name=resource_group.name, - ngroups_name="str", - api_version="2025-09-01", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_ngroups_begin_start(self, resource_group): - response = self.client.ngroups.begin_start( - resource_group_name=resource_group.name, - ngroups_name="str", - api_version="2025-09-01", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_ngroups_stop(self, resource_group): - response = self.client.ngroups.stop( - resource_group_name=resource_group.name, - ngroups_name="str", - api_version="2025-09-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_ngroups_begin_restart(self, resource_group): - response = self.client.ngroups.begin_restart( - resource_group_name=resource_group.name, - ngroups_name="str", - api_version="2025-09-01", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_ngroups_list_by_resource_group(self, resource_group): - response = self.client.ngroups.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2025-09-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_ngroups_list(self, resource_group): - response = self.client.ngroups.list( - api_version="2025-09-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_ngroups_operations.py similarity index 63% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_ngroups_operations.py index 897c296a6ac5..ce4be7a0b802 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_ngroups_operations.py @@ -2,43 +2,50 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient -from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer -from devtools_testutils.aio import recorded_by_proxy_async +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy AZURE_LOCATION = "eastus" @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementNGroupsOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceNGroupsOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_ngroups_get(self, resource_group): - response = await self.client.ngroups.get( + @recorded_by_proxy + def test_ngroups_get(self, resource_group): + response = self.client.ngroups.get( resource_group_name=resource_group.name, ngroups_name="str", - api_version="2025-09-01", ) # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_ngroups_begin_create_or_update(self, resource_group): - response = await ( - await self.client.ngroups.begin_create_or_update( - resource_group_name=resource_group.name, - ngroups_name="str", - n_group={ + @recorded_by_proxy + def test_ngroups_begin_create_or_update(self, resource_group): + response = self.client.ngroups.begin_create_or_update( + resource_group_name=resource_group.name, + ngroups_name="str", + n_group={ + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "location": "str", + "name": "str", + "properties": { "containerGroupProfiles": [ { "containerGroupProperties": { @@ -74,10 +81,7 @@ async def test_ngroups_begin_create_or_update(self, resource_group): "fileShares": [ { "name": "str", - "properties": { - "shareAccessTier": "TransactionOptimized", - "shareAccessType": "str", - }, + "properties": {"shareAccessTier": "str", "shareAccessType": "str"}, "resourceGroupName": "str", "storageAccountName": "str", } @@ -90,27 +94,8 @@ async def test_ngroups_begin_create_or_update(self, resource_group): "desiredCount": 0, "maintainDesiredCount": bool, }, - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, - }, - "location": "str", - "name": "str", "placementProfile": {"faultDomainCount": 0}, "provisioningState": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "type": "str", "updateProfile": { "rollingUpdateProfile": { "inPlaceUpdate": bool, @@ -120,23 +105,38 @@ async def test_ngroups_begin_create_or_update(self, resource_group): }, "updateMode": "str", }, - "zones": ["str"], }, - api_version="2025-09-01", - ) + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_ngroups_begin_update(self, resource_group): - response = await ( - await self.client.ngroups.begin_update( - resource_group_name=resource_group.name, - ngroups_name="str", - n_group={ + @recorded_by_proxy + def test_ngroups_begin_update(self, resource_group): + response = self.client.ngroups.begin_update( + resource_group_name=resource_group.name, + ngroups_name="str", + n_group={ + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "properties": { "containerGroupProfiles": [ { "containerGroupProperties": { @@ -172,10 +172,7 @@ async def test_ngroups_begin_update(self, resource_group): "fileShares": [ { "name": "str", - "properties": { - "shareAccessTier": "TransactionOptimized", - "shareAccessType": "str", - }, + "properties": {"shareAccessTier": "str", "shareAccessType": "str"}, "resourceGroupName": "str", "storageAccountName": "str", } @@ -188,23 +185,8 @@ async def test_ngroups_begin_update(self, resource_group): "desiredCount": 0, "maintainDesiredCount": bool, }, - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, - }, "placementProfile": {"faultDomainCount": 0}, "provisioningState": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, "updateProfile": { "rollingUpdateProfile": { "inPlaceUpdate": bool, @@ -214,86 +196,81 @@ async def test_ngroups_begin_update(self, resource_group): }, "updateMode": "str", }, - "zones": ["str"], }, - api_version="2025-09-01", - ) + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "zones": ["str"], + }, ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_ngroups_begin_delete(self, resource_group): - response = await ( - await self.client.ngroups.begin_delete( - resource_group_name=resource_group.name, - ngroups_name="str", - api_version="2025-09-01", - ) + @recorded_by_proxy + def test_ngroups_begin_delete(self, resource_group): + response = self.client.ngroups.begin_delete( + resource_group_name=resource_group.name, + ngroups_name="str", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_ngroups_begin_start(self, resource_group): - response = await ( - await self.client.ngroups.begin_start( - resource_group_name=resource_group.name, - ngroups_name="str", - api_version="2025-09-01", - ) - ).result() # call '.result()' to poll until service return final result - + @recorded_by_proxy + def test_ngroups_list_by_resource_group(self, resource_group): + response = self.client.ngroups.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r for r in response] # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_ngroups_stop(self, resource_group): - response = await self.client.ngroups.stop( - resource_group_name=resource_group.name, - ngroups_name="str", - api_version="2025-09-01", - ) - + @recorded_by_proxy + def test_ngroups_list(self, resource_group): + response = self.client.ngroups.list() + result = [r for r in response] # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_ngroups_begin_restart(self, resource_group): - response = await ( - await self.client.ngroups.begin_restart( - resource_group_name=resource_group.name, - ngroups_name="str", - api_version="2025-09-01", - ) + @recorded_by_proxy + def test_ngroups_begin_start(self, resource_group): + response = self.client.ngroups.begin_start( + resource_group_name=resource_group.name, + ngroups_name="str", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_ngroups_list_by_resource_group(self, resource_group): - response = self.client.ngroups.list_by_resource_group( + @recorded_by_proxy + def test_ngroups_stop(self, resource_group): + response = self.client.ngroups.stop( resource_group_name=resource_group.name, - api_version="2025-09-01", + ngroups_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_ngroups_list(self, resource_group): - response = self.client.ngroups.list( - api_version="2025-09-01", - ) - result = [r async for r in response] + @recorded_by_proxy + def test_ngroups_begin_restart(self, resource_group): + response = self.client.ngroups.begin_restart( + resource_group_name=resource_group.name, + ngroups_name="str", + ).result() # call '.result()' to poll until service return final result + # please add some check logic here by yourself # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_ngroups_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_ngroups_operations_async.py new file mode 100644 index 000000000000..f212815a49dd --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_ngroups_operations_async.py @@ -0,0 +1,293 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.containerinstance.aio import ContainerInstanceClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerInstanceNGroupsOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_get(self, resource_group): + response = await self.client.ngroups.get( + resource_group_name=resource_group.name, + ngroups_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_begin_create_or_update(self, resource_group): + response = await ( + await self.client.ngroups.begin_create_or_update( + resource_group_name=resource_group.name, + ngroups_name="str", + n_group={ + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "location": "str", + "name": "str", + "properties": { + "containerGroupProfiles": [ + { + "containerGroupProperties": { + "containers": [ + { + "name": "str", + "properties": { + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}] + }, + } + ], + "subnetIds": [{"id": "str", "name": "str"}], + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + } + ], + }, + "networkProfile": { + "applicationGateway": { + "backendAddressPools": [{"resource": "str"}], + "resource": "str", + }, + "loadBalancer": {"backendAddressPools": [{"resource": "str"}]}, + }, + "resource": {"id": "str"}, + "revision": 0, + "storageProfile": { + "fileShares": [ + { + "name": "str", + "properties": {"shareAccessTier": "str", "shareAccessType": "str"}, + "resourceGroupName": "str", + "storageAccountName": "str", + } + ] + }, + } + ], + "elasticProfile": { + "containerGroupNamingPolicy": {"guidNamingPolicy": {"prefix": "str"}}, + "desiredCount": 0, + "maintainDesiredCount": bool, + }, + "placementProfile": {"faultDomainCount": 0}, + "provisioningState": "str", + "updateProfile": { + "rollingUpdateProfile": { + "inPlaceUpdate": bool, + "maxBatchPercent": 0, + "maxUnhealthyPercent": 0, + "pauseTimeBetweenBatches": "str", + }, + "updateMode": "str", + }, + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_begin_update(self, resource_group): + response = await ( + await self.client.ngroups.begin_update( + resource_group_name=resource_group.name, + ngroups_name="str", + n_group={ + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "properties": { + "containerGroupProfiles": [ + { + "containerGroupProperties": { + "containers": [ + { + "name": "str", + "properties": { + "volumeMounts": [{"mountPath": "str", "name": "str", "readOnly": bool}] + }, + } + ], + "subnetIds": [{"id": "str", "name": "str"}], + "volumes": [ + { + "name": "str", + "azureFile": { + "shareName": "str", + "storageAccountName": "str", + "readOnly": bool, + "storageAccountKey": "str", + "storageAccountKeyReference": "str", + }, + } + ], + }, + "networkProfile": { + "applicationGateway": { + "backendAddressPools": [{"resource": "str"}], + "resource": "str", + }, + "loadBalancer": {"backendAddressPools": [{"resource": "str"}]}, + }, + "resource": {"id": "str"}, + "revision": 0, + "storageProfile": { + "fileShares": [ + { + "name": "str", + "properties": {"shareAccessTier": "str", "shareAccessType": "str"}, + "resourceGroupName": "str", + "storageAccountName": "str", + } + ] + }, + } + ], + "elasticProfile": { + "containerGroupNamingPolicy": {"guidNamingPolicy": {"prefix": "str"}}, + "desiredCount": 0, + "maintainDesiredCount": bool, + }, + "placementProfile": {"faultDomainCount": 0}, + "provisioningState": "str", + "updateProfile": { + "rollingUpdateProfile": { + "inPlaceUpdate": bool, + "maxBatchPercent": 0, + "maxUnhealthyPercent": 0, + "pauseTimeBetweenBatches": "str", + }, + "updateMode": "str", + }, + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "zones": ["str"], + }, + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_begin_delete(self, resource_group): + response = await ( + await self.client.ngroups.begin_delete( + resource_group_name=resource_group.name, + ngroups_name="str", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_list_by_resource_group(self, resource_group): + response = self.client.ngroups.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_list(self, resource_group): + response = self.client.ngroups.list() + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_begin_start(self, resource_group): + response = await ( + await self.client.ngroups.begin_start( + resource_group_name=resource_group.name, + ngroups_name="str", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_stop(self, resource_group): + response = await self.client.ngroups.stop( + resource_group_name=resource_group.name, + ngroups_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_ngroups_begin_restart(self, resource_group): + response = await ( + await self.client.ngroups.begin_restart( + resource_group_name=resource_group.name, + ngroups_name="str", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_operations.py similarity index 70% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_operations.py index 5bbd1403c7d3..134f64c0fd9f 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_operations.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,16 +14,14 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient) + self.client = self.create_mgmt_client(ContainerInstanceClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_operations_list(self, resource_group): - response = self.client.operations.list( - api_version="2025-09-01", - ) + response = self.client.operations.list() result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_operations_async.py similarity index 70% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_operations_async.py index ceb9e8eb1cb2..1ba12f9de153 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_operations_async.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient +from azure.mgmt.containerinstance.aio import ContainerInstanceClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,16 +15,14 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_operations_list(self, resource_group): - response = self.client.operations.list( - api_version="2025-09-01", - ) + response = self.client.operations.list() result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_subnet_service_association_link_operations.py similarity index 77% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_subnet_service_association_link_operations.py index 1e4b047423c6..2e64a3f8bf23 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_subnet_service_association_link_operations.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance import ContainerInstanceManagementClient +from azure.mgmt.containerinstance import ContainerInstanceClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,9 +14,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementSubnetServiceAssociationLinkOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceSubnetServiceAssociationLinkOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient) + self.client = self.create_mgmt_client(ContainerInstanceClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy @@ -25,7 +25,6 @@ def test_subnet_service_association_link_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", subnet_name="str", - api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_subnet_service_association_link_operations_async.py similarity index 77% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_subnet_service_association_link_operations_async.py index 20b47a614e06..830a7ca5117d 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_subnet_service_association_link_operations_async.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # 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. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient +from azure.mgmt.containerinstance.aio import ContainerInstanceClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,9 +15,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementSubnetServiceAssociationLinkOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceSubnetServiceAssociationLinkOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async @@ -27,7 +27,6 @@ async def test_subnet_service_association_link_begin_delete(self, resource_group resource_group_name=resource_group.name, virtual_network_name="str", subnet_name="str", - api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/pyproject.toml b/sdk/containerinstance/azure-mgmt-containerinstance/pyproject.toml index f9393415ef12..7149cb534e48 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/pyproject.toml +++ b/sdk/containerinstance/azure-mgmt-containerinstance/pyproject.toml @@ -13,7 +13,7 @@ authors = [ description = "Microsoft Azure Containerinstance Management Client Library for Python" license = "MIT" classifiers = [ - "Development Status :: 5 - Production/Stable", + "Development Status :: 4 - Beta", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", @@ -78,7 +78,7 @@ verifytypes = false package_name = "azure-mgmt-containerinstance" package_pprint_name = "Container Instance" package_doc_id = "containerinstance" -is_stable = true +is_stable = false sample_link = "" title = "ContainerInstanceManagementClient" package_nspkg = "azure-mgmt-nspkg" diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/tests/disable_test_cli_mgmt_containerinstance.py b/sdk/containerinstance/azure-mgmt-containerinstance/tests/disable_test_cli_mgmt_containerinstance.py index 340c403e6f20..14b56e7ff973 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/tests/disable_test_cli_mgmt_containerinstance.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/tests/disable_test_cli_mgmt_containerinstance.py @@ -1,10 +1,11 @@ +# pylint: disable=line-too-long,useless-suppression # coding: utf-8 -#------------------------------------------------------------------------- +# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. -#-------------------------------------------------------------------------- +# -------------------------------------------------------------------------- # TEST SCENARIO COVERAGE @@ -27,17 +28,16 @@ import azure.mgmt.containerinstance from devtools_testutils import AzureMgmtTestCase, RandomNameResourceGroupPreparer -AZURE_LOCATION = 'eastus' +AZURE_LOCATION = "eastus" + class MgmtContainerInstanceTest(AzureMgmtTestCase): def setUp(self): super(MgmtContainerInstanceTest, self).setUp() - self.mgmt_client = self.create_mgmt_client( - azure.mgmt.containerinstance.ContainerInstanceManagementClient - ) - - @unittest.skip('hard to test') + self.mgmt_client = self.create_mgmt_client(azure.mgmt.containerinstance.ContainerInstanceManagementClient) + + @unittest.skip("hard to test") @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_containerinstance(self, resource_group): @@ -45,260 +45,201 @@ def test_containerinstance(self, resource_group): TENANT_ID = self.settings.TENANT_ID RESOURCE_GROUP = resource_group.name CONTAINER_GROUP_NAME = "myContainerGroup" - CONTAINER_NAME = "my-container" # must match the regex '[a-z0-9]([-a-z0-9]*[a-z0-9])?' + CONTAINER_NAME = "my-container" # must match the regex '[a-z0-9]([-a-z0-9]*[a-z0-9])?' -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /ContainerGroups/put/ContainerGroupsCreateOrUpdate[put] -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- BODY = { - "location": AZURE_LOCATION, - "identity": { - "type": "SystemAssigned, UserAssigned", - "user_assigned_identities": {} - }, - "containers": [ - { - "name": "demo1", - "command": [], - "environment_variables": [], - "image": "nginx", - "ports": [ + "location": AZURE_LOCATION, + "identity": {"type": "SystemAssigned, UserAssigned", "user_assigned_identities": {}}, + "containers": [ { - "port": "80" + "name": "demo1", + "command": [], + "environment_variables": [], + "image": "nginx", + "ports": [{"port": "80"}], + "resources": {"requests": {"cpu": "1", "memory_in_gb": "1.5", "gpu": {"count": "1", "sku": "K80"}}}, + "volume_mounts": [ + {"name": "volume1", "mount_path": "/mnt/volume1", "read_only": False}, + {"name": "volume2", "mount_path": "/mnt/volume2", "read_only": False}, + {"name": "volume3", "mount_path": "/mnt/volume3", "read_only": True}, + ], } - ], - "resources": { - "requests": { - "cpu": "1", - "memory_in_gb": "1.5", - "gpu": { - "count": "1", - "sku": "K80" - } + ], + "diagnostics": { + "log_analytics": { + "workspace_id": "workspaceid", + "workspace_key": "workspaceKey", + "log_type": "ContainerInsights", + "metadata": {"test-key": "test-metadata-value"}, } - }, - "volume_mounts": [ + }, + "network_profile": {"id": "test-network-profile-id"}, + "dns_config": { + "name_servers": ["1.1.1.1"], + "search_domains": "cluster.local svc.cluster.local", + "options": "ndots:2", + }, + "image_registry_credentials": [], + "ip_address": { + "ports": [{"protocol": "TCP", "port": "80"}], + "type": "Public", + "dns_name_label": "dnsnamelabel1", + }, + "os_type": "Linux", + "volumes": [ { - "name": "volume1", - "mount_path": "/mnt/volume1", - "read_only": False + "name": "volume1", + "azure_file": { + "share_name": "shareName", + "storage_account_name": "accountName", + "storage_account_key": "accountKey", + }, }, + {"name": "volume2"}, { - "name": "volume2", - "mount_path": "/mnt/volume2", - "read_only": False + "name": "volume3", + "secret": {"secret_key1": "SecretValue1InBase64", "secret_key2": "SecretValue2InBase64"}, }, - { - "name": "volume3", - "mount_path": "/mnt/volume3", - "read_only": True - } - ] - } - ], - "diagnostics": { - "log_analytics": { - "workspace_id": "workspaceid", - "workspace_key": "workspaceKey", - "log_type": "ContainerInsights", - "metadata": { - "test-key": "test-metadata-value" - } - } - }, - "network_profile": { - "id": "test-network-profile-id" - }, - "dns_config": { - "name_servers": [ - "1.1.1.1" - ], - "search_domains": "cluster.local svc.cluster.local", - "options": "ndots:2" - }, - "image_registry_credentials": [], - "ip_address": { - "ports": [ - { - "protocol": "TCP", - "port": "80" - } ], - "type": "Public", - "dns_name_label": "dnsnamelabel1" - }, - "os_type": "Linux", - "volumes": [ - { - "name": "volume1", - "azure_file": { - "share_name": "shareName", - "storage_account_name": "accountName", - "storage_account_key": "accountKey" - } - }, - { - "name": "volume2" - }, - { - "name": "volume3", - "secret": { - "secret_key1": "SecretValue1InBase64", - "secret_key2": "SecretValue2InBase64" - } - } - ] } # result = self.mgmt_client.container_groups.begin_create_or_update(resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME, container_group=BODY) # result = result.result() -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /ContainerGroups/put/ContainerGroupsCreateOrUpdateSample[put] -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- BODY = { - "location": AZURE_LOCATION, - "identity": { - "type": "SystemAssigned" - }, - "containers": [ - { - "name": CONTAINER_NAME, - "command": [], - "environment_variables": [], - "image": "nginx", - "ports": [ - { - "port": "80" - } - ], - "resources": { - "requests": { - "cpu": "1", - "memory_in_gb": "1.5", - "gpu": { - "count": "1", - "sku": "K80" - } - } - }, - "volume_mounts": [ + "location": AZURE_LOCATION, + "identity": {"type": "SystemAssigned"}, + "containers": [ { - "name": "empty-volume", - "mount_path": "/mnt/mydir" + "name": CONTAINER_NAME, + "command": [], + "environment_variables": [], + "image": "nginx", + "ports": [{"port": "80"}], + "resources": {"requests": {"cpu": "1", "memory_in_gb": "1.5", "gpu": {"count": "1", "sku": "K80"}}}, + "volume_mounts": [{"name": "empty-volume", "mount_path": "/mnt/mydir"}], } - ] - } - ], - "diagnostics": { - "log_analytics": { - "workspace_id": "workspaceid", - "workspace_key": "workspaceKey" - } - }, - "os_type": "Linux", - "restart_policy": "OnFailure", - "volumes": [ - { - "name": "empty-volume", - "empty_dir": {} - } - ] + ], + "diagnostics": {"log_analytics": {"workspace_id": "workspaceid", "workspace_key": "workspaceKey"}}, + "os_type": "Linux", + "restart_policy": "OnFailure", + "volumes": [{"name": "empty-volume", "empty_dir": {}}], } - result = self.mgmt_client.container_groups.begin_create_or_update(resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME, container_group=BODY) + result = self.mgmt_client.container_groups.begin_create_or_update( + resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME, container_group=BODY + ) result = result.result() -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /Containers/get/ContainerListLogs[get] -#-------------------------------------------------------------------------- - result = self.mgmt_client.containers.list_logs(resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME, container_name=CONTAINER_NAME, tail="10") + # -------------------------------------------------------------------------- + result = self.mgmt_client.containers.list_logs( + resource_group_name=RESOURCE_GROUP, + container_group_name=CONTAINER_GROUP_NAME, + container_name=CONTAINER_NAME, + tail="10", + ) -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /ContainerGroups/get/ContainerGroupsGet_Failed[get] -#-------------------------------------------------------------------------- - result = self.mgmt_client.container_groups.get(resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME) + # -------------------------------------------------------------------------- + result = self.mgmt_client.container_groups.get( + resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME + ) -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /ContainerGroups/get/ContainerGroupsGet_Succeeded[get] -#-------------------------------------------------------------------------- - result = self.mgmt_client.container_groups.get(resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME) + # -------------------------------------------------------------------------- + result = self.mgmt_client.container_groups.get( + resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME + ) -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /ContainerGroups/get/ContainerGroupsListByResourceGroup[get] -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- result = self.mgmt_client.container_groups.list_by_resource_group(resource_group_name=RESOURCE_GROUP) -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /Location/get/CachedImages[get] -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- result = self.mgmt_client.location.list_cached_images(location=AZURE_LOCATION) -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /Location/get/GetCapabilities[get] -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- result = self.mgmt_client.location.list_capabilities(location=AZURE_LOCATION) -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /Location/get/ContainerUsage[get] -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- result = self.mgmt_client.location.list_usage(location=AZURE_LOCATION) -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /ContainerGroups/get/ContainerGroupsList[get] -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- result = self.mgmt_client.container_groups.list() -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /Operations/get/OperationsList[get] -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- result = self.mgmt_client.operations.list() -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /Containers/post/ContainerExec[post] -#-------------------------------------------------------------------------- - BODY = { - "command": "/bin/bash", - "terminal_size": { - "rows": "12", - "cols": "12" - } - } - result = self.mgmt_client.containers.execute_command(resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME, container_name=CONTAINER_NAME, container_exec_request=BODY) + # -------------------------------------------------------------------------- + BODY = {"command": "/bin/bash", "terminal_size": {"rows": "12", "cols": "12"}} + result = self.mgmt_client.containers.execute_command( + resource_group_name=RESOURCE_GROUP, + container_group_name=CONTAINER_GROUP_NAME, + container_name=CONTAINER_NAME, + container_exec_request=BODY, + ) -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /ContainerGroups/post/ContainerRestart[post] -#-------------------------------------------------------------------------- - result = self.mgmt_client.container_groups.begin_restart(resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME) + # -------------------------------------------------------------------------- + result = self.mgmt_client.container_groups.begin_restart( + resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME + ) result = result.result() -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /ContainerGroups/post/ContainerStart[post] -#-------------------------------------------------------------------------- - result = self.mgmt_client.container_groups.begin_start(resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME) + # -------------------------------------------------------------------------- + result = self.mgmt_client.container_groups.begin_start( + resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME + ) result = result.result() -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /ContainerGroups/post/ContainerStop[post] -#-------------------------------------------------------------------------- - result = self.mgmt_client.container_groups.stop(resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME) + # -------------------------------------------------------------------------- + result = self.mgmt_client.container_groups.stop( + resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME + ) -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /ContainerGroups/patch/ContainerGroupsUpdate[patch] -#-------------------------------------------------------------------------- - BODY = { - "tags": { - "tag1key": "tag1Value", - "tag2key": "tag2Value" - } - } - result = self.mgmt_client.container_groups.update(resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME, resource=BODY) + # -------------------------------------------------------------------------- + BODY = {"tags": {"tag1key": "tag1Value", "tag2key": "tag2Value"}} + result = self.mgmt_client.container_groups.update( + resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME, resource=BODY + ) -#-------------------------------------------------------------------------- + # -------------------------------------------------------------------------- # /ContainerGroups/delete/ContainerGroupsDelete[delete] -#-------------------------------------------------------------------------- - result = self.mgmt_client.container_groups.begin_delete(resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME) + # -------------------------------------------------------------------------- + result = self.mgmt_client.container_groups.begin_delete( + resource_group_name=RESOURCE_GROUP, container_group_name=CONTAINER_GROUP_NAME + ) result = result.result() -#------------------------------------------------------------------------------ -if __name__ == '__main__': +# ------------------------------------------------------------------------------ +if __name__ == "__main__": unittest.main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/tests/disable_test_mgmt_containerinstance.py b/sdk/containerinstance/azure-mgmt-containerinstance/tests/disable_test_mgmt_containerinstance.py index c93e48cc6bc5..2e341e24ab91 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/tests/disable_test_mgmt_containerinstance.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/tests/disable_test_mgmt_containerinstance.py @@ -1,10 +1,10 @@ # coding: utf-8 -#------------------------------------------------------------------------- +# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. -#-------------------------------------------------------------------------- +# -------------------------------------------------------------------------- import unittest @@ -13,68 +13,57 @@ from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer + class MgmtContainerInstanceTest(AzureMgmtTestCase): def setUp(self): super(MgmtContainerInstanceTest, self).setUp() - self.client = self.create_mgmt_client( - azure.mgmt.containerinstance.ContainerInstanceManagementClient - ) + self.client = self.create_mgmt_client(azure.mgmt.containerinstance.ContainerInstanceManagementClient) @ResourceGroupPreparer() def test_container_instance(self, resource_group, location): - container_group_name = self.get_resource_name('pycontainer') - image = 'alpine:latest' - os_type = 'Linux' + container_group_name = self.get_resource_name("pycontainer") + image = "alpine:latest" + os_type = "Linux" cpu = 1 memory = 1 - restart_policy = 'OnFailure' + restart_policy = "OnFailure" livenessprob_period_seconds = 5 - log_analytics_workspace_id = 'workspaceId' - log_analytics_workspace_key = 'workspaceKey' - identity_system_assigned = 'SystemAssigned' + log_analytics_workspace_id = "workspaceId" + log_analytics_workspace_key = "workspaceKey" + identity_system_assigned = "SystemAssigned" - empty_volume = Volume(name='empty-volume', empty_dir={}) - volume_mount = VolumeMount(name='empty-volume', mount_path='/mnt/mydir') + empty_volume = Volume(name="empty-volume", empty_dir={}) + volume_mount = VolumeMount(name="empty-volume", mount_path="/mnt/mydir") poller = self.client.container_groups.create_or_update( resource_group.name, container_group_name, { - 'identity': { - 'type': identity_system_assigned - }, - 'location': location, - 'containers': [{ - 'name': container_group_name, - 'image': image, - 'resources': { - 'requests': { - 'memory_in_gb': memory, - 'cpu': cpu - } - }, - 'volume_mounts': [volume_mount], - 'liveness_probe': { - 'exec': { - 'command': [ - 'cat' - '/tmp/healthy' - ] + "identity": {"type": identity_system_assigned}, + "location": location, + "containers": [ + { + "name": container_group_name, + "image": image, + "resources": {"requests": {"memory_in_gb": memory, "cpu": cpu}}, + "volume_mounts": [volume_mount], + "liveness_probe": { + "exec": {"command": ["cat" "/tmp/healthy"]}, + "periodSeconds": livenessprob_period_seconds, }, - 'periodSeconds': livenessprob_period_seconds } - }], - 'os_type': os_type, - 'restart_policy': restart_policy, - 'diagnostics': { - 'log_analytics': { - 'workspace_id': log_analytics_workspace_id, - 'workspace_key': log_analytics_workspace_key + ], + "os_type": os_type, + "restart_policy": restart_policy, + "diagnostics": { + "log_analytics": { + "workspace_id": log_analytics_workspace_id, + "workspace_key": log_analytics_workspace_key, } }, - 'volumes': [empty_volume], - } + "volumes": [empty_volume], + }, ) container_group = poller.result() @@ -120,24 +109,24 @@ def test_container_instance(self, resource_group, location): self.assertEqual(container_groups[0].containers[0].liveness_probe.period_seconds, livenessprob_period_seconds) # Testing Container_Execute_Command - terminal_size = { - "rows": 24, - "cols": 80 - } + terminal_size = {"rows": 24, "cols": 80} command = "/bin/bash" - containerExecResponse = self.client.container.execute_command(resource_group.name, container_group.name, container_group.containers[0].name, command, terminal_size) + containerExecResponse = self.client.container.execute_command( + resource_group.name, container_group.name, container_group.containers[0].name, command, terminal_size + ) self.assertNotEqual(containerExecResponse.web_socket_uri, None) self.assertNotEqual(containerExecResponse.password, None) # Testing Container_List_Logs - containerLogResponse = self.client.container.list_logs(resource_group.name, container_group.name, container_group.containers[0].name) + containerLogResponse = self.client.container.list_logs( + resource_group.name, container_group.name, container_group.containers[0].name + ) # Testing Restart Container Group poller = self.client.container_groups.restart(resource_group.name, container_group_name) poller.result() - -#------------------------------------------------------------------------------ -if __name__ == '__main__': +# ------------------------------------------------------------------------------ +if __name__ == "__main__": unittest.main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_container_groups_operations_async_test.py b/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_container_groups_operations_async_test.py index 56f8bf439d10..4c4d72fbb23a 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_container_groups_operations_async_test.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_container_groups_operations_async_test.py @@ -26,7 +26,6 @@ async def test_list(self, resource_group): result = [r async for r in response] assert response - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_list_by_resource_group(self, resource_group): diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_container_groups_operations_test.py b/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_container_groups_operations_test.py index 3e88bea4a327..bd7320b4475b 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_container_groups_operations_test.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_container_groups_operations_test.py @@ -25,7 +25,6 @@ def test_list(self, resource_group): result = [r for r in response] assert response - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_list_by_resource_group(self, resource_group): diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_operations_async_test.py b/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_operations_async_test.py index 675e60b28991..896f2129443d 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_operations_async_test.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_operations_async_test.py @@ -25,4 +25,3 @@ async def test_list(self, resource_group): response = self.client.operations.list() result = [r async for r in response] assert result - \ No newline at end of file diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_operations_test.py b/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_operations_test.py index a05a4ac8c188..93d94451eede 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_operations_test.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/tests/test_container_instance_management_operations_test.py @@ -24,4 +24,3 @@ def test_list(self, resource_group): response = self.client.operations.list() result = [r for r in response] assert result - \ No newline at end of file diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/tsp-location.yaml b/sdk/containerinstance/azure-mgmt-containerinstance/tsp-location.yaml new file mode 100644 index 000000000000..4f4d9163ab5f --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance +commit: 87fd8965461f54b715bb5762be007bb1d10f6f82 +repo: Azure/azure-rest-api-specs +additionalDirectories: From 11a1f8e57a91b0090b1ecd1a028fd9b9a33b4562 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Wed, 25 Mar 2026 16:11:10 +0800 Subject: [PATCH 3/7] changelog from report comparison --- .../azure-mgmt-containerinstance/CHANGELOG.md | 4 +- .../code_report_typespec.json | 24484 ++++++++++------ 2 files changed, 16296 insertions(+), 8192 deletions(-) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md index b7f9a54b9bf9..da08a5183828 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md +++ b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md @@ -2,7 +2,9 @@ ## 10.2.0b2 (2026-03-25) -skip changelog generation +### Other Changes + + - Migrated from Swagger to TypeSpec ## 10.2.0 (2026-03-25) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/code_report_typespec.json b/sdk/containerinstance/azure-mgmt-containerinstance/code_report_typespec.json index 67a5240c5d7b..cdf7a14d2b10 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/code_report_typespec.json +++ b/sdk/containerinstance/azure-mgmt-containerinstance/code_report_typespec.json @@ -1,7 +1,7 @@ { "azure.mgmt.containerinstance": { "class_nodes": { - "ContainerInstanceManagementClient": { + "ContainerInstanceClient": { "type": null, "methods": { "__init__": { @@ -43,35 +43,57 @@ }, "is_async": false, "overloads": [] + }, + "send_request": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "stream": { + "default": "bool", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { "client_side_validation": { "attr_type": false }, + "operations": { + "attr_type": "Operations" + }, "container_groups": { "attr_type": "ContainerGroupsOperations" }, - "operations": { - "attr_type": "Operations" + "ngroups": { + "attr_type": "NGroupsOperations" }, - "location": { - "attr_type": "LocationOperations" + "cg_profile": { + "attr_type": "CGProfileOperations" }, "containers": { "attr_type": "ContainersOperations" }, - "subnet_service_association_link": { - "attr_type": "SubnetServiceAssociationLinkOperations" - }, - "ngroups": { - "attr_type": "NGroupsOperations" - }, "cg_profiles": { "attr_type": "CGProfilesOperations" }, - "cg_profile": { - "attr_type": "CGProfileOperations" + "location": { + "attr_type": "LocationOperations" + }, + "subnet_service_association_link": { + "attr_type": "SubnetServiceAssociationLinkOperations" } } } @@ -157,6 +179,37 @@ "is_async": false, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, { "parameters": { "self": { @@ -338,6 +391,37 @@ "is_async": false, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, { "parameters": { "self": { @@ -507,6 +591,37 @@ "is_async": false, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, { "parameters": { "self": { @@ -760,6 +875,37 @@ "is_async": false, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, { "parameters": { "self": { @@ -908,6 +1054,42 @@ "is_async": false, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, { "parameters": { "self": { @@ -966,11 +1148,11 @@ }, "tail": { "default": "none", - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, "timestamps": { "default": "none", - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, "kwargs": { "default": null, @@ -1138,6 +1320,37 @@ "is_async": false, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, { "parameters": { "self": { @@ -1311,7 +1524,7 @@ "param_type": "positional_or_keyword" }, "n_group": { - "type": "IO[bytes]", + "type": "JSON", "default": null, "param_type": "positional_or_keyword" }, @@ -1323,30 +1536,61 @@ }, "is_async": false, "return_type": null - } - ] - }, - "get": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "ngroups_name": { - "default": null, - "param_type": "positional_or_keyword" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, "list": { "parameters": { @@ -1507,9 +1751,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "id": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -1517,7 +1761,40 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -1525,52 +1802,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -1578,137 +1848,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "id": { - "attr_type": "id" }, - "additional_properties": { - "attr_type": null - } - } - }, - "ApplicationGateway": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "resource": { - "default": "none", - "param_type": "keyword_only" - }, - "backend_address_pools": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -1717,21 +1931,23 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "resource": { - "attr_type": "resource" - }, - "backend_address_pools": { - "attr_type": "backend_address_pools" - }, - "additional_properties": { - "attr_type": null - } + "id": "Optional" } }, - "ApplicationGatewayBackendAddressPool": { + "ApplicationGateway": { "type": null, "methods": { "__init__": { @@ -1740,9 +1956,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "resource": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -1750,7 +1966,45 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "backend_address_pools": { + "type": "Optional[list[_models.ApplicationGatewayBackendAddressPool]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -1758,52 +2012,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -1811,265 +2058,95 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "resource": { - "attr_type": "resource" }, - "additional_properties": { - "attr_type": null - } - } - }, - "AzureFileShareAccessTier": { - "type": "Enum", - "methods": {}, - "properties": { - "COOL": "COOL", - "HOT": "HOT", - "PREMIUM": "PREMIUM", - "TRANSACTION_OPTIMIZED": "TRANSACTION_OPTIMIZED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "AzureFileShareAccessType": { - "type": "Enum", - "methods": {}, - "properties": { - "EXCLUSIVE": "EXCLUSIVE", - "SHARED": "SHARED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "AzureFileVolume": { - "type": null, - "methods": { - "__init__": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "share_name": { - "default": null, - "param_type": "keyword_only" - }, - "storage_account_name": { + "key": { "default": null, - "param_type": "keyword_only" - }, - "read_only": { - "default": "none", - "param_type": "keyword_only" - }, - "storage_account_key": { - "default": "none", - "param_type": "keyword_only" - }, - "storage_account_key_reference": { - "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "default": { + "default": "object", + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "popitem": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "update": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "values": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, @@ -2077,27 +2154,11 @@ } }, "properties": { - "share_name": { - "attr_type": "share_name" - }, - "read_only": { - "attr_type": "read_only" - }, - "storage_account_name": { - "attr_type": "storage_account_name" - }, - "storage_account_key": { - "attr_type": "storage_account_key" - }, - "storage_account_key_reference": { - "attr_type": "storage_account_key_reference" - }, - "additional_properties": { - "attr_type": null - } + "resource": "Optional", + "backend_address_pools": "Optional" } }, - "CachedImages": { + "ApplicationGatewayBackendAddressPool": { "type": null, "methods": { "__init__": { @@ -2106,13 +2167,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "os_type": { - "default": null, - "param_type": "keyword_only" - }, - "image": { + "args": { "default": null, - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -2120,7 +2177,40 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -2128,52 +2218,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -2181,192 +2264,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "os_type": { - "attr_type": "os_type" - }, - "image": { - "attr_type": "image" }, - "additional_properties": { - "attr_type": null - } - } - }, - "CachedImagesListResult": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "next_link": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { + "key": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "setdefault": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": "next_link" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Capabilities": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { + "key": { "default": null, "param_type": "positional_or_keyword" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "default": { + "default": "object", + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -2376,61 +2348,11 @@ "is_async": false, "overloads": [] }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "values": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, @@ -2438,30 +2360,10 @@ } }, "properties": { - "resource_type": { - "attr_type": null - }, - "os_type": { - "attr_type": null - }, - "location": { - "attr_type": null - }, - "ip_address_type": { - "attr_type": null - }, - "gpu": { - "attr_type": null - }, - "capabilities": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } + "resource": "Optional" } }, - "CapabilitiesCapabilities": { + "ArmResource": { "type": null, "methods": { "__init__": { @@ -2470,6 +2372,10 @@ "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -2484,52 +2390,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -2537,143 +2436,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "max_memory_in_gb": { - "attr_type": null - }, - "max_cpu": { - "attr_type": null - }, - "max_gpu_count": { - "attr_type": null }, - "additional_properties": { - "attr_type": null - } - } - }, - "CapabilitiesListResult": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "next_link": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -2682,66 +2519,149 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" }, - "next_link": { - "attr_type": "next_link" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "CloudErrorBody": { - "type": null, - "methods": { - "__init__": { + "values": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "code": { - "default": "none", - "param_type": "keyword_only" - }, - "message": { - "default": "none", - "param_type": "keyword_only" - }, - "target": { - "default": "none", - "param_type": "keyword_only" - }, - "details": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "AzureFileShareAccessTier": { + "type": "Enum", + "methods": {}, + "properties": { + "COOL": "COOL", + "HOT": "HOT", + "PREMIUM": "PREMIUM", + "TRANSACTION_OPTIMIZED": "TRANSACTION_OPTIMIZED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AzureFileShareAccessType": { + "type": "Enum", + "methods": {}, + "properties": { + "EXCLUSIVE": "EXCLUSIVE", + "SHARED": "SHARED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AzureFileVolume": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -2749,38 +2669,106 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "share_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "storage_account_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "read_only": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "storage_account_key": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "storage_account_key_reference": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, - "deserialize": { + "as_dict": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -2788,142 +2776,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "code": { - "attr_type": "code" - }, - "message": { - "attr_type": "message" }, - "target": { - "attr_type": "target" - }, - "details": { - "attr_type": "details" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ConfidentialComputeProperties": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "cce_policy": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -2932,18 +2859,27 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "cce_policy": { - "attr_type": "cce_policy" }, - "additional_properties": { - "attr_type": null + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } + }, + "properties": { + "share_name": null, + "read_only": "Optional", + "storage_account_name": null, + "storage_account_key": "Optional", + "storage_account_key_reference": "Optional" } }, - "ConfigMap": { + "CachedImages": { "type": null, "methods": { "__init__": { @@ -2952,9 +2888,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "key_value_pairs": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -2962,7 +2898,45 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "os_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "image": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -2970,52 +2944,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -3023,173 +2990,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "key_value_pairs": { - "attr_type": "key_value_pairs" }, - "additional_properties": { - "attr_type": null - } - } - }, - "Container": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "name": { - "default": null, - "param_type": "keyword_only" - }, - "image": { - "default": "none", - "param_type": "keyword_only" - }, - "command": { - "default": "none", - "param_type": "keyword_only" - }, - "ports": { - "default": "none", - "param_type": "keyword_only" - }, - "environment_variables": { - "default": "none", - "param_type": "keyword_only" - }, - "resources": { - "default": "none", - "param_type": "keyword_only" - }, - "volume_mounts": { - "default": "none", - "param_type": "keyword_only" - }, - "liveness_probe": { - "default": "none", - "param_type": "keyword_only" - }, - "readiness_probe": { - "default": "none", - "param_type": "keyword_only" - }, - "security_context": { - "default": "none", - "param_type": "keyword_only" - }, - "config_map": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -3198,51 +3073,24 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "name": { - "attr_type": "name" - }, - "image": { - "attr_type": "image" - }, - "command": { - "attr_type": "command" - }, - "ports": { - "attr_type": "ports" - }, - "environment_variables": { - "attr_type": "environment_variables" - }, - "instance_view": { - "attr_type": null - }, - "resources": { - "attr_type": "resources" - }, - "volume_mounts": { - "attr_type": "volume_mounts" - }, - "liveness_probe": { - "attr_type": "liveness_probe" - }, - "readiness_probe": { - "attr_type": "readiness_probe" - }, - "security_context": { - "attr_type": "security_context" - }, - "config_map": { - "attr_type": "config_map" - }, - "additional_properties": { - "attr_type": null - } + "os_type": null, + "image": null } }, - "ContainerAttachResponse": { + "Capabilities": { "type": null, "methods": { "__init__": { @@ -3251,13 +3099,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "web_socket_uri": { - "default": "none", - "param_type": "keyword_only" - }, - "password": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -3273,52 +3117,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -3326,136 +3163,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "web_socket_uri": { - "attr_type": "web_socket_uri" }, - "password": { - "attr_type": "password" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ContainerExec": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "command": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -3464,18 +3246,28 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "command": { - "attr_type": "command" - }, - "additional_properties": { - "attr_type": null - } + "resource_type": "Optional", + "os_type": "Optional", + "location": "Optional", + "ip_address_type": "Optional", + "gpu": "Optional", + "capabilities": "Optional" } }, - "ContainerExecRequest": { + "CapabilitiesCapabilities": { "type": null, "methods": { "__init__": { @@ -3484,13 +3276,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "command": { - "default": "none", - "param_type": "keyword_only" - }, - "terminal_size": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -3506,52 +3294,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -3559,140 +3340,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "command": { - "attr_type": "command" }, - "terminal_size": { - "attr_type": "terminal_size" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ContainerExecRequestTerminalSize": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "rows": { - "default": "none", - "param_type": "keyword_only" - }, - "cols": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -3701,21 +3423,25 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "rows": { - "attr_type": "rows" - }, - "cols": { - "attr_type": "cols" - }, - "additional_properties": { - "attr_type": null - } + "max_memory_in_gb": "Optional", + "max_cpu": "Optional", + "max_gpu_count": "Optional" } }, - "ContainerExecResponse": { + "CloudError": { "type": null, "methods": { "__init__": { @@ -3724,13 +3450,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "web_socket_uri": { - "default": "none", - "param_type": "keyword_only" - }, - "password": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -3738,7 +3460,40 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "error": { + "type": "Optional[_models.CloudErrorBody]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -3746,29 +3501,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { "default": null, - "param_type": "var_keyword" + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "get": { "parameters": { - "data": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -3776,44 +3547,82 @@ "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "pop": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "setdefault": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -3821,21 +3630,23 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "web_socket_uri": { - "attr_type": "web_socket_uri" - }, - "password": { - "attr_type": "password" - }, - "additional_properties": { - "attr_type": null - } + "error": "Optional" } }, - "ContainerGroup": { + "CloudErrorBody": { "type": null, "methods": { "__init__": { @@ -3844,97 +3655,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "containers": { + "args": { "default": null, - "param_type": "keyword_only" - }, - "identity": { - "default": "none", - "param_type": "keyword_only" - }, - "secret_references": { - "default": "none", - "param_type": "keyword_only" - }, - "image_registry_credentials": { - "default": "none", - "param_type": "keyword_only" - }, - "restart_policy": { - "default": "none", - "param_type": "keyword_only" - }, - "ip_address": { - "default": "none", - "param_type": "keyword_only" - }, - "os_type": { - "default": "none", - "param_type": "keyword_only" - }, - "volumes": { - "default": "none", - "param_type": "keyword_only" - }, - "diagnostics": { - "default": "none", - "param_type": "keyword_only" - }, - "subnet_ids": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_config": { - "default": "none", - "param_type": "keyword_only" - }, - "sku": { - "default": "none", - "param_type": "keyword_only" - }, - "encryption_properties": { - "default": "none", - "param_type": "keyword_only" - }, - "init_containers": { - "default": "none", - "param_type": "keyword_only" - }, - "extensions": { - "default": "none", - "param_type": "keyword_only" - }, - "confidential_compute_properties": { - "default": "none", - "param_type": "keyword_only" - }, - "priority": { - "default": "none", - "param_type": "keyword_only" - }, - "identity_acls": { - "default": "none", - "param_type": "keyword_only" - }, - "container_group_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "standby_pool_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "location": { - "default": "none", - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "zones": { - "default": "none", - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -3942,7 +3665,55 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "code": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "message": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "details": { + "type": "Optional[list[_models.CloudErrorBody]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -3950,52 +3721,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -4003,217 +3767,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "identity": { - "attr_type": "identity" - }, - "provisioning_state": { - "attr_type": null - }, - "secret_references": { - "attr_type": "secret_references" - }, - "containers": { - "attr_type": "containers" - }, - "image_registry_credentials": { - "attr_type": "image_registry_credentials" - }, - "restart_policy": { - "attr_type": "restart_policy" - }, - "ip_address": { - "attr_type": "ip_address" - }, - "os_type": { - "attr_type": "os_type" - }, - "volumes": { - "attr_type": "volumes" - }, - "instance_view": { - "attr_type": null - }, - "diagnostics": { - "attr_type": "diagnostics" - }, - "subnet_ids": { - "attr_type": "subnet_ids" - }, - "dns_config": { - "attr_type": "dns_config" - }, - "sku": { - "attr_type": "sku" - }, - "encryption_properties": { - "attr_type": "encryption_properties" - }, - "init_containers": { - "attr_type": "init_containers" - }, - "extensions": { - "attr_type": "extensions" - }, - "confidential_compute_properties": { - "attr_type": "confidential_compute_properties" - }, - "priority": { - "attr_type": "priority" }, - "identity_acls": { - "attr_type": "identity_acls" - }, - "container_group_profile": { - "attr_type": "container_group_profile" - }, - "standby_pool_profile": { - "attr_type": "standby_pool_profile" - }, - "is_created_from_standby_pool": { - "attr_type": null - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "location": { - "attr_type": "location" - }, - "tags": { - "attr_type": "tags" - }, - "zones": { - "attr_type": "zones" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ContainerGroupDiagnostics": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "log_analytics": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -4222,55 +3850,37 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "log_analytics": { - "attr_type": "log_analytics" }, - "additional_properties": { - "attr_type": null - } - } - }, - "ContainerGroupIdentity": { - "type": null, - "methods": { - "__init__": { + "values": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "type": { - "default": "none", - "param_type": "keyword_only" - }, - "user_assigned_identities": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - }, - "as_dict": { + } + }, + "properties": { + "code": "Optional", + "message": "Optional", + "target": "Optional", + "details": "Optional" + } + }, + "ConfidentialComputeProperties": { + "type": null, + "methods": { + "__init__": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -4278,38 +3888,86 @@ } }, "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "cce_policy": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -4317,104 +3975,106 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "default": { + "default": "object", + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "principal_id": { - "attr_type": null }, - "tenant_id": { - "attr_type": null + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "type": { - "attr_type": "type" + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "user_assigned_identities": { - "attr_type": "user_assigned_identities" + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "additional_properties": { - "attr_type": null + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } - } - }, - "ContainerGroupIpAddressType": { - "type": "Enum", - "methods": {}, + }, "properties": { - "PRIVATE": "PRIVATE", - "PUBLIC": "PUBLIC", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" + "cce_policy": "Optional" } }, - "ContainerGroupListResult": { + "ConfigMap": { "type": null, "methods": { "__init__": { @@ -4423,13 +4083,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "next_link": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -4437,7 +4093,40 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "key_value_pairs": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -4445,52 +4134,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -4498,322 +4180,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" }, - "next_link": { - "attr_type": "next_link" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ContainerGroupNetworkProtocol": { - "type": "Enum", - "methods": {}, - "properties": { - "TCP": "TCP", - "UDP": "UDP", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "ContainerGroupPriority": { - "type": "Enum", - "methods": {}, - "properties": { - "REGULAR": "REGULAR", - "SPOT": "SPOT", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "ContainerGroupProfile": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "location": { - "default": "none", - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "zones": { - "default": "none", - "param_type": "keyword_only" - }, - "sku": { - "default": "none", - "param_type": "keyword_only" - }, - "encryption_properties": { - "default": "none", - "param_type": "keyword_only" - }, - "containers": { - "default": "none", - "param_type": "keyword_only" - }, - "init_containers": { - "default": "none", - "param_type": "keyword_only" - }, - "extensions": { - "default": "none", - "param_type": "keyword_only" - }, - "image_registry_credentials": { - "default": "none", - "param_type": "keyword_only" - }, - "restart_policy": { - "default": "none", - "param_type": "keyword_only" - }, - "shutdown_grace_period": { - "default": "none", - "param_type": "keyword_only" - }, - "ip_address": { - "default": "none", - "param_type": "keyword_only" - }, - "time_to_live": { - "default": "none", - "param_type": "keyword_only" - }, - "os_type": { - "default": "none", - "param_type": "keyword_only" - }, - "volumes": { - "default": "none", - "param_type": "keyword_only" - }, - "diagnostics": { - "default": "none", - "param_type": "keyword_only" - }, - "priority": { - "default": "none", - "param_type": "keyword_only" - }, - "confidential_compute_properties": { - "default": "none", - "param_type": "keyword_only" - }, - "security_context": { - "default": "none", - "param_type": "keyword_only" - }, - "use_krypton": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -4822,93 +4263,23 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "system_data": { - "attr_type": null - }, - "sku": { - "attr_type": "sku" - }, - "encryption_properties": { - "attr_type": "encryption_properties" - }, - "containers": { - "attr_type": "containers" - }, - "init_containers": { - "attr_type": "init_containers" - }, - "extensions": { - "attr_type": "extensions" - }, - "image_registry_credentials": { - "attr_type": "image_registry_credentials" - }, - "restart_policy": { - "attr_type": "restart_policy" - }, - "shutdown_grace_period": { - "attr_type": "shutdown_grace_period" - }, - "ip_address": { - "attr_type": "ip_address" - }, - "time_to_live": { - "attr_type": "time_to_live" - }, - "os_type": { - "attr_type": "os_type" - }, - "volumes": { - "attr_type": "volumes" - }, - "diagnostics": { - "attr_type": "diagnostics" - }, - "priority": { - "attr_type": "priority" - }, - "confidential_compute_properties": { - "attr_type": "confidential_compute_properties" - }, - "security_context": { - "attr_type": "security_context" - }, - "revision": { - "attr_type": null - }, - "registered_revisions": { - "attr_type": null - }, - "use_krypton": { - "attr_type": "use_krypton" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "location": { - "attr_type": "location" - }, - "tags": { - "attr_type": "tags" - }, - "zones": { - "attr_type": "zones" - }, - "additional_properties": { - "attr_type": null - } + "key_value_pairs": "Optional" } }, - "ContainerGroupProfileListResult": { + "Container": { "type": null, "methods": { "__init__": { @@ -4917,13 +4288,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "next_link": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -4931,7 +4298,45 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "_models.ContainerProperties", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -4939,52 +4344,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -4992,136 +4390,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" }, - "next_link": { - "attr_type": "next_link" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ContainerGroupProfilePatch": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -5130,18 +4473,24 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "tags": { - "attr_type": "tags" - }, - "additional_properties": { - "attr_type": null - } + "name": null, + "properties": null } }, - "ContainerGroupProfileReferenceDefinition": { + "ContainerAttachResponse": { "type": null, "methods": { "__init__": { @@ -5150,13 +4499,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "id": { - "default": "none", - "param_type": "keyword_only" - }, - "revision": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -5164,7 +4509,45 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "web_socket_uri": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -5172,52 +4555,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -5225,152 +4601,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "id": { - "attr_type": "id" }, - "revision": { - "attr_type": "revision" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ContainerGroupProfileStub": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "resource": { - "default": "none", - "param_type": "keyword_only" - }, - "revision": { - "default": "none", - "param_type": "keyword_only" - }, - "network_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "storage_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "container_group_properties": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -5379,30 +4684,24 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "resource": { - "attr_type": "resource" - }, - "revision": { - "attr_type": "revision" - }, - "network_profile": { - "attr_type": "network_profile" - }, - "storage_profile": { - "attr_type": "storage_profile" - }, - "container_group_properties": { - "attr_type": "container_group_properties" - }, - "additional_properties": { - "attr_type": null - } + "web_socket_uri": "Optional", + "password": "Optional" } }, - "ContainerGroupProperties": { + "ContainerExec": { "type": null, "methods": { "__init__": { @@ -5411,85 +4710,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "containers": { + "args": { "default": null, - "param_type": "keyword_only" - }, - "identity": { - "default": "none", - "param_type": "keyword_only" - }, - "secret_references": { - "default": "none", - "param_type": "keyword_only" - }, - "image_registry_credentials": { - "default": "none", - "param_type": "keyword_only" - }, - "restart_policy": { - "default": "none", - "param_type": "keyword_only" - }, - "ip_address": { - "default": "none", - "param_type": "keyword_only" - }, - "os_type": { - "default": "none", - "param_type": "keyword_only" - }, - "volumes": { - "default": "none", - "param_type": "keyword_only" - }, - "diagnostics": { - "default": "none", - "param_type": "keyword_only" - }, - "subnet_ids": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_config": { - "default": "none", - "param_type": "keyword_only" - }, - "sku": { - "default": "none", - "param_type": "keyword_only" - }, - "encryption_properties": { - "default": "none", - "param_type": "keyword_only" - }, - "init_containers": { - "default": "none", - "param_type": "keyword_only" - }, - "extensions": { - "default": "none", - "param_type": "keyword_only" - }, - "confidential_compute_properties": { - "default": "none", - "param_type": "keyword_only" - }, - "priority": { - "default": "none", - "param_type": "keyword_only" - }, - "identity_acls": { - "default": "none", - "param_type": "keyword_only" - }, - "container_group_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "standby_pool_profile": { - "default": "none", - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -5497,7 +4720,40 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "command": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -5505,52 +4761,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -5558,195 +4807,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "identity": { - "attr_type": "identity" - }, - "provisioning_state": { - "attr_type": null - }, - "secret_references": { - "attr_type": "secret_references" - }, - "containers": { - "attr_type": "containers" - }, - "image_registry_credentials": { - "attr_type": "image_registry_credentials" - }, - "restart_policy": { - "attr_type": "restart_policy" - }, - "ip_address": { - "attr_type": "ip_address" - }, - "os_type": { - "attr_type": "os_type" - }, - "volumes": { - "attr_type": "volumes" - }, - "instance_view": { - "attr_type": null - }, - "diagnostics": { - "attr_type": "diagnostics" - }, - "subnet_ids": { - "attr_type": "subnet_ids" }, - "dns_config": { - "attr_type": "dns_config" - }, - "sku": { - "attr_type": "sku" - }, - "encryption_properties": { - "attr_type": "encryption_properties" - }, - "init_containers": { - "attr_type": "init_containers" - }, - "extensions": { - "attr_type": "extensions" - }, - "confidential_compute_properties": { - "attr_type": "confidential_compute_properties" - }, - "priority": { - "attr_type": "priority" - }, - "identity_acls": { - "attr_type": "identity_acls" - }, - "container_group_profile": { - "attr_type": "container_group_profile" - }, - "standby_pool_profile": { - "attr_type": "standby_pool_profile" - }, - "is_created_from_standby_pool": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ContainerGroupPropertiesInstanceView": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -5755,56 +4890,8857 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "events": { - "attr_type": null - }, - "state": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } + "command": "Optional" } }, - "ContainerGroupProvisioningState": { - "type": "Enum", - "methods": {}, - "properties": { - "ACCEPTED": "ACCEPTED", - "CANCELED": "CANCELED", - "CREATING": "CREATING", - "DELETING": "DELETING", - "FAILED": "FAILED", - "NOT_ACCESSIBLE": "NOT_ACCESSIBLE", - "NOT_SPECIFIED": "NOT_SPECIFIED", - "PENDING": "PENDING", - "PRE_PROVISIONED": "PRE_PROVISIONED", - "REPAIRING": "REPAIRING", - "SUCCEEDED": "SUCCEEDED", - "UNHEALTHY": "UNHEALTHY", - "UPDATING": "UPDATING", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", + "ContainerExecRequest": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "command": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "terminal_size": { + "type": "Optional[_models.ContainerExecRequestTerminalSize]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "command": "Optional", + "terminal_size": "Optional" + } + }, + "ContainerExecRequestTerminalSize": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "rows": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "cols": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "rows": "Optional", + "cols": "Optional" + } + }, + "ContainerExecResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "web_socket_uri": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "web_socket_uri": "Optional", + "password": "Optional" + } + }, + "ContainerGroup": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "_models.ContainerGroupPropertiesProperties", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "zones": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[_models.ContainerGroupIdentity]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "location": null, + "tags": "Optional", + "zones": "Optional", + "identity": "Optional", + "properties": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ContainerGroupDiagnostics": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "log_analytics": { + "type": "Optional[_models.LogAnalytics]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "log_analytics": "Optional" + } + }, + "ContainerGroupIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "Optional[Union[str, _models.ResourceIdentityType]]", + "default": null, + "param_type": "keyword_only" + }, + "user_assigned_identities": { + "type": "Optional[dict[str, _models.UserAssignedIdentities]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": "Optional", + "tenant_id": "Optional", + "type": "Optional", + "user_assigned_identities": "Optional" + } + }, + "ContainerGroupIpAddressType": { + "type": "Enum", + "methods": {}, + "properties": { + "PRIVATE": "PRIVATE", + "PUBLIC": "PUBLIC", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupNetworkProtocol": { + "type": "Enum", + "methods": {}, + "properties": { + "TCP": "TCP", + "UDP": "UDP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupPriority": { + "type": "Enum", + "methods": {}, + "properties": { + "REGULAR": "REGULAR", + "SPOT": "SPOT", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.ContainerGroupProfileProperties]", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "location": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "zones": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "tags": "Optional", + "location": "Optional", + "zones": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ContainerGroupProfilePatch": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": "Optional" + } + }, + "ContainerGroupProfileProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "type": "list[_models.Container]", + "default": null, + "param_type": "keyword_only" + }, + "os_type": { + "type": "Union[str, _models.OperatingSystemTypes]", + "default": null, + "param_type": "keyword_only" + }, + "sku": { + "type": "Optional[Union[str, _models.ContainerGroupSku]]", + "default": null, + "param_type": "keyword_only" + }, + "encryption_properties": { + "type": "Optional[_models.EncryptionProperties]", + "default": null, + "param_type": "keyword_only" + }, + "init_containers": { + "type": "Optional[list[_models.InitContainerDefinition]]", + "default": null, + "param_type": "keyword_only" + }, + "extensions": { + "type": "Optional[list[_models.DeploymentExtensionSpec]]", + "default": null, + "param_type": "keyword_only" + }, + "image_registry_credentials": { + "type": "Optional[list[_models.ImageRegistryCredential]]", + "default": null, + "param_type": "keyword_only" + }, + "restart_policy": { + "type": "Optional[Union[str, _models.ContainerGroupRestartPolicy]]", + "default": null, + "param_type": "keyword_only" + }, + "shutdown_grace_period": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "ip_address": { + "type": "Optional[_models.IpAddress]", + "default": null, + "param_type": "keyword_only" + }, + "time_to_live": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "volumes": { + "type": "Optional[list[_models.Volume]]", + "default": null, + "param_type": "keyword_only" + }, + "diagnostics": { + "type": "Optional[_models.ContainerGroupDiagnostics]", + "default": null, + "param_type": "keyword_only" + }, + "priority": { + "type": "Optional[Union[str, _models.ContainerGroupPriority]]", + "default": null, + "param_type": "keyword_only" + }, + "confidential_compute_properties": { + "type": "Optional[_models.ConfidentialComputeProperties]", + "default": null, + "param_type": "keyword_only" + }, + "security_context": { + "type": "Optional[_models.SecurityContextDefinition]", + "default": null, + "param_type": "keyword_only" + }, + "use_krypton": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "sku": "Optional", + "encryption_properties": "Optional", + "containers": "list", + "init_containers": "Optional", + "extensions": "Optional", + "image_registry_credentials": "Optional", + "restart_policy": "Optional", + "shutdown_grace_period": "Optional", + "ip_address": "Optional", + "time_to_live": "Optional", + "os_type": "Union", + "volumes": "Optional", + "diagnostics": "Optional", + "priority": "Optional", + "confidential_compute_properties": "Optional", + "security_context": "Optional", + "revision": "Optional", + "registered_revisions": "Optional", + "use_krypton": "Optional" + } + }, + "ContainerGroupProfileReferenceDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "revision": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "revision": "Optional" + } + }, + "ContainerGroupProfileStub": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "Optional[_models.ApiEntityReference]", + "default": null, + "param_type": "keyword_only" + }, + "revision": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "network_profile": { + "type": "Optional[_models.NetworkProfile]", + "default": null, + "param_type": "keyword_only" + }, + "storage_profile": { + "type": "Optional[_models.StorageProfile]", + "default": null, + "param_type": "keyword_only" + }, + "container_group_properties": { + "type": "Optional[_models.NGroupContainerGroupProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource": "Optional", + "revision": "Optional", + "network_profile": "Optional", + "storage_profile": "Optional", + "container_group_properties": "Optional" + } + }, + "ContainerGroupPropertiesProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "type": "list[_models.Container]", + "default": null, + "param_type": "keyword_only" + }, + "secret_references": { + "type": "Optional[list[_models.SecretReference]]", + "default": null, + "param_type": "keyword_only" + }, + "image_registry_credentials": { + "type": "Optional[list[_models.ImageRegistryCredential]]", + "default": null, + "param_type": "keyword_only" + }, + "restart_policy": { + "type": "Optional[Union[str, _models.ContainerGroupRestartPolicy]]", + "default": null, + "param_type": "keyword_only" + }, + "ip_address": { + "type": "Optional[_models.IpAddress]", + "default": null, + "param_type": "keyword_only" + }, + "os_type": { + "type": "Optional[Union[str, _models.OperatingSystemTypes]]", + "default": null, + "param_type": "keyword_only" + }, + "volumes": { + "type": "Optional[list[_models.Volume]]", + "default": null, + "param_type": "keyword_only" + }, + "diagnostics": { + "type": "Optional[_models.ContainerGroupDiagnostics]", + "default": null, + "param_type": "keyword_only" + }, + "subnet_ids": { + "type": "Optional[list[_models.ContainerGroupSubnetId]]", + "default": null, + "param_type": "keyword_only" + }, + "dns_config": { + "type": "Optional[_models.DnsConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "sku": { + "type": "Optional[Union[str, _models.ContainerGroupSku]]", + "default": null, + "param_type": "keyword_only" + }, + "encryption_properties": { + "type": "Optional[_models.EncryptionProperties]", + "default": null, + "param_type": "keyword_only" + }, + "init_containers": { + "type": "Optional[list[_models.InitContainerDefinition]]", + "default": null, + "param_type": "keyword_only" + }, + "extensions": { + "type": "Optional[list[_models.DeploymentExtensionSpec]]", + "default": null, + "param_type": "keyword_only" + }, + "confidential_compute_properties": { + "type": "Optional[_models.ConfidentialComputeProperties]", + "default": null, + "param_type": "keyword_only" + }, + "priority": { + "type": "Optional[Union[str, _models.ContainerGroupPriority]]", + "default": null, + "param_type": "keyword_only" + }, + "identity_acls": { + "type": "Optional[_models.IdentityAcls]", + "default": null, + "param_type": "keyword_only" + }, + "container_group_profile": { + "type": "Optional[_models.ContainerGroupProfileReferenceDefinition]", + "default": null, + "param_type": "keyword_only" + }, + "standby_pool_profile": { + "type": "Optional[_models.StandbyPoolProfileDefinition]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "secret_references": "Optional", + "containers": "list", + "image_registry_credentials": "Optional", + "restart_policy": "Optional", + "ip_address": "Optional", + "os_type": "Optional", + "volumes": "Optional", + "instance_view": "Optional", + "diagnostics": "Optional", + "subnet_ids": "Optional", + "dns_config": "Optional", + "sku": "Optional", + "encryption_properties": "Optional", + "init_containers": "Optional", + "extensions": "Optional", + "confidential_compute_properties": "Optional", + "priority": "Optional", + "identity_acls": "Optional", + "container_group_profile": "Optional", + "standby_pool_profile": "Optional", + "is_created_from_standby_pool": "Optional" + } + }, + "ContainerGroupPropertiesPropertiesInstanceView": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "events": "Optional", + "state": "Optional" + } + }, + "ContainerGroupProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCEPTED": "ACCEPTED", + "CANCELED": "CANCELED", + "CREATING": "CREATING", + "DELETING": "DELETING", + "FAILED": "FAILED", + "NOT_ACCESSIBLE": "NOT_ACCESSIBLE", + "NOT_SPECIFIED": "NOT_SPECIFIED", + "PENDING": "PENDING", + "PRE_PROVISIONED": "PRE_PROVISIONED", + "REPAIRING": "REPAIRING", + "SUCCEEDED": "SUCCEEDED", + "UNHEALTHY": "UNHEALTHY", + "UPDATING": "UPDATING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupRestartPolicy": { + "type": "Enum", + "methods": {}, + "properties": { + "ALWAYS": "ALWAYS", + "NEVER": "NEVER", + "ON_FAILURE": "ON_FAILURE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupSku": { + "type": "Enum", + "methods": {}, + "properties": { + "CONFIDENTIAL": "CONFIDENTIAL", + "DEDICATED": "DEDICATED", + "NOT_SPECIFIED": "NOT_SPECIFIED", + "STANDARD": "STANDARD", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerGroupSubnetId": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": null, + "name": "Optional" + } + }, + "ContainerHttpGet": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "scheme": { + "type": "Optional[Union[str, _models.Scheme]]", + "default": null, + "param_type": "keyword_only" + }, + "http_headers": { + "type": "Optional[list[_models.HttpHeader]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "path": "Optional", + "port": null, + "scheme": "Optional", + "http_headers": "Optional" + } + }, + "ContainerInstanceOperationsOrigin": { + "type": "Enum", + "methods": {}, + "properties": { + "SYSTEM": "SYSTEM", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerNetworkProtocol": { + "type": "Enum", + "methods": {}, + "properties": { + "TCP": "TCP", + "UDP": "UDP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerPort": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "protocol": { + "type": "Optional[Union[str, _models.ContainerNetworkProtocol]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "protocol": "Optional", + "port": null + } + }, + "ContainerProbe": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "exec_property": { + "type": "Optional[_models.ContainerExec]", + "default": null, + "param_type": "keyword_only" + }, + "http_get": { + "type": "Optional[_models.ContainerHttpGet]", + "default": null, + "param_type": "keyword_only" + }, + "initial_delay_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "period_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "failure_threshold": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "success_threshold": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "timeout_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "exec_property": "Optional", + "http_get": "Optional", + "initial_delay_seconds": "Optional", + "period_seconds": "Optional", + "failure_threshold": "Optional", + "success_threshold": "Optional", + "timeout_seconds": "Optional" + } + }, + "ContainerProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "command": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "ports": { + "type": "Optional[list[_models.ContainerPort]]", + "default": null, + "param_type": "keyword_only" + }, + "environment_variables": { + "type": "Optional[list[_models.EnvironmentVariable]]", + "default": null, + "param_type": "keyword_only" + }, + "resources": { + "type": "Optional[_models.ResourceRequirements]", + "default": null, + "param_type": "keyword_only" + }, + "volume_mounts": { + "type": "Optional[list[_models.VolumeMount]]", + "default": null, + "param_type": "keyword_only" + }, + "liveness_probe": { + "type": "Optional[_models.ContainerProbe]", + "default": null, + "param_type": "keyword_only" + }, + "readiness_probe": { + "type": "Optional[_models.ContainerProbe]", + "default": null, + "param_type": "keyword_only" + }, + "security_context": { + "type": "Optional[_models.SecurityContextDefinition]", + "default": null, + "param_type": "keyword_only" + }, + "config_map": { + "type": "Optional[_models.ConfigMap]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "image": "Optional", + "command": "Optional", + "ports": "Optional", + "environment_variables": "Optional", + "instance_view": "Optional", + "resources": "Optional", + "volume_mounts": "Optional", + "liveness_probe": "Optional", + "readiness_probe": "Optional", + "security_context": "Optional", + "config_map": "Optional" + } + }, + "ContainerPropertiesInstanceView": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "restart_count": "Optional", + "current_state": "Optional", + "previous_state": "Optional", + "events": "Optional" + } + }, + "ContainerState": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "state": "Optional", + "start_time": "Optional", + "exit_code": "Optional", + "finish_time": "Optional", + "detail_status": "Optional" + } + }, + "CreatedByType": { + "type": "Enum", + "methods": {}, + "properties": { + "APPLICATION": "APPLICATION", + "KEY": "KEY", + "MANAGED_IDENTITY": "MANAGED_IDENTITY", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DeploymentExtensionSpec": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.DeploymentExtensionSpecProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": null, + "properties": "Optional" + } + }, + "DeploymentExtensionSpecProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "extension_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "version": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "settings": { + "type": "Optional[Any]", + "default": null, + "param_type": "keyword_only" + }, + "protected_settings": { + "type": "Optional[Any]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "extension_type": null, + "version": null, + "settings": "Optional", + "protected_settings": "Optional" + } + }, + "DnsConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name_servers": { + "type": "list[str]", + "default": null, + "param_type": "keyword_only" + }, + "search_domains": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "options": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name_servers": "list", + "search_domains": "Optional", + "options": "Optional" + } + }, + "DnsNameLabelReusePolicy": { + "type": "Enum", + "methods": {}, + "properties": { + "NOREUSE": "NOREUSE", + "RESOURCE_GROUP_REUSE": "RESOURCE_GROUP_REUSE", + "SUBSCRIPTION_REUSE": "SUBSCRIPTION_REUSE", + "TENANT_REUSE": "TENANT_REUSE", + "UNSECURE": "UNSECURE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ElasticProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "desired_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "maintain_desired_count": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "container_group_naming_policy": { + "type": "Optional[_models.ElasticProfileContainerGroupNamingPolicy]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "desired_count": "Optional", + "maintain_desired_count": "Optional", + "container_group_naming_policy": "Optional" + } + }, + "ElasticProfileContainerGroupNamingPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "guid_naming_policy": { + "type": "Optional[_models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "guid_naming_policy": "Optional" + } + }, + "ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "prefix": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "prefix": "Optional" + } + }, + "EncryptionProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "vault_base_url": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "key_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "key_version": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "vault_base_url": null, + "key_name": null, + "key_version": null, + "identity": "Optional" + } + }, + "EnvironmentVariable": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "secure_value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "secure_value_reference": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": null, + "value": "Optional", + "secure_value": "Optional", + "secure_value_reference": "Optional" + } + }, + "ErrorAdditionalInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": "Optional", + "info": "Optional" + } + }, + "ErrorDetail": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": "Optional", + "message": "Optional", + "target": "Optional", + "details": "Optional", + "additional_info": "Optional" + } + }, + "ErrorResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "error": { + "type": "Optional[_models.ErrorDetail]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional" + } + }, + "Event": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "count": "Optional", + "first_timestamp": "Optional", + "last_timestamp": "Optional", + "name": "Optional", + "message": "Optional", + "type": "Optional" + } + }, + "FileShare": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "resource_group_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "storage_account_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.FileShareProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "resource_group_name": "Optional", + "storage_account_name": "Optional", + "properties": "Optional" + } + }, + "FileShareProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "share_access_type": { + "type": "Optional[Union[str, _models.AzureFileShareAccessType]]", + "default": null, + "param_type": "keyword_only" + }, + "share_access_tier": { + "type": "Optional[Union[str, _models.AzureFileShareAccessTier]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "share_access_type": "Optional", + "share_access_tier": "Optional" + } + }, + "GitRepoVolume": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "repository": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "directory": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "revision": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "directory": "Optional", + "repository": null, + "revision": "Optional" + } + }, + "GpuResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "count": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "sku": { + "type": "Union[str, _models.GpuSku]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "count": null, + "sku": "Union" + } + }, + "GpuSku": { + "type": "Enum", + "methods": {}, + "properties": { + "K80": "K80", + "P100": "P100", + "V100": "V100", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "HttpHeader": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "value": "Optional" + } + }, + "IdentityAccessControl": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "access": { + "type": "Optional[Union[str, _models.IdentityAccessLevel]]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "access": "Optional", + "identity": "Optional" + } + }, + "IdentityAccessLevel": { + "type": "Enum", + "methods": {}, + "properties": { + "ALL": "ALL", + "SYSTEM": "SYSTEM", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", "isprintable": "isprintable", "isspace": "isspace", "istitle": "istitle", @@ -5835,120 +13771,1531 @@ "zfill": "zfill" } }, - "ContainerGroupRestartPolicy": { - "type": "Enum", - "methods": {}, - "properties": { - "ALWAYS": "ALWAYS", - "NEVER": "NEVER", - "ON_FAILURE": "ON_FAILURE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" + "IdentityAcls": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "default_access": { + "type": "Optional[Union[str, _models.IdentityAccessLevel]]", + "default": null, + "param_type": "keyword_only" + }, + "acls": { + "type": "Optional[list[_models.IdentityAccessControl]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "default_access": "Optional", + "acls": "Optional" + } + }, + "ImageRegistryCredential": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "server": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "username": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password_reference": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "identity_url": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server": null, + "username": "Optional", + "password": "Optional", + "password_reference": "Optional", + "identity": "Optional", + "identity_url": "Optional" + } + }, + "InitContainerDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "_models.InitContainerPropertiesDefinition", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": null, + "properties": null + } + }, + "InitContainerPropertiesDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "command": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "environment_variables": { + "type": "Optional[list[_models.EnvironmentVariable]]", + "default": null, + "param_type": "keyword_only" + }, + "volume_mounts": { + "type": "Optional[list[_models.VolumeMount]]", + "default": null, + "param_type": "keyword_only" + }, + "security_context": { + "type": "Optional[_models.SecurityContextDefinition]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "image": "Optional", + "command": "Optional", + "environment_variables": "Optional", + "instance_view": "Optional", + "volume_mounts": "Optional", + "security_context": "Optional" + } + }, + "InitContainerPropertiesDefinitionInstanceView": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "restart_count": "Optional", + "current_state": "Optional", + "previous_state": "Optional", + "events": "Optional" + } + }, + "IpAddress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "ports": { + "type": "list[_models.Port]", + "default": null, + "param_type": "keyword_only" + }, + "type": { + "type": "Union[str, _models.ContainerGroupIpAddressType]", + "default": null, + "param_type": "keyword_only" + }, + "ip": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "dns_name_label": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "auto_generated_domain_name_label_scope": { + "type": "Optional[Union[str, _models.DnsNameLabelReusePolicy]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "ports": "list", + "type": "Union", + "ip": "Optional", + "dns_name_label": "Optional", + "auto_generated_domain_name_label_scope": "Optional", + "fqdn": "Optional" } }, - "ContainerGroupSku": { - "type": "Enum", - "methods": {}, - "properties": { - "CONFIDENTIAL": "CONFIDENTIAL", - "DEDICATED": "DEDICATED", - "NOT_SPECIFIED": "NOT_SPECIFIED", - "STANDARD": "STANDARD", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" + "ListResultContainerGroup": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "_models.ListResultContainerGroupPropertiesProperties", + "default": null, + "param_type": "keyword_only" + }, + "location": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "zones": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[_models.ContainerGroupIdentity]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "type": "Optional", + "location": "Optional", + "tags": "Optional", + "zones": "Optional", + "identity": "Optional", + "properties": null } }, - "ContainerGroupSubnetId": { + "ListResultContainerGroupPropertiesProperties": { "type": null, "methods": { "__init__": { @@ -5957,13 +15304,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "id": { + "args": { "default": null, - "param_type": "keyword_only" - }, - "name": { - "default": "none", - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -5971,7 +15314,130 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "type": "list[_models.Container]", + "default": null, + "param_type": "keyword_only" + }, + "os_type": { + "type": "Union[str, _models.OperatingSystemTypes]", + "default": null, + "param_type": "keyword_only" + }, + "secret_references": { + "type": "Optional[list[_models.SecretReference]]", + "default": null, + "param_type": "keyword_only" + }, + "image_registry_credentials": { + "type": "Optional[list[_models.ImageRegistryCredential]]", + "default": null, + "param_type": "keyword_only" + }, + "restart_policy": { + "type": "Optional[Union[str, _models.ContainerGroupRestartPolicy]]", + "default": null, + "param_type": "keyword_only" + }, + "ip_address": { + "type": "Optional[_models.IpAddress]", + "default": null, + "param_type": "keyword_only" + }, + "volumes": { + "type": "Optional[list[_models.Volume]]", + "default": null, + "param_type": "keyword_only" + }, + "diagnostics": { + "type": "Optional[_models.ContainerGroupDiagnostics]", + "default": null, + "param_type": "keyword_only" + }, + "subnet_ids": { + "type": "Optional[list[_models.ContainerGroupSubnetId]]", + "default": null, + "param_type": "keyword_only" + }, + "dns_config": { + "type": "Optional[_models.DnsConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "sku": { + "type": "Optional[Union[str, _models.ContainerGroupSku]]", + "default": null, + "param_type": "keyword_only" + }, + "encryption_properties": { + "type": "Optional[_models.EncryptionProperties]", + "default": null, + "param_type": "keyword_only" + }, + "init_containers": { + "type": "Optional[list[_models.InitContainerDefinition]]", + "default": null, + "param_type": "keyword_only" + }, + "extensions": { + "type": "Optional[list[_models.DeploymentExtensionSpec]]", + "default": null, + "param_type": "keyword_only" + }, + "confidential_compute_properties": { + "type": "Optional[_models.ConfidentialComputeProperties]", + "default": null, + "param_type": "keyword_only" + }, + "priority": { + "type": "Optional[Union[str, _models.ContainerGroupPriority]]", + "default": null, + "param_type": "keyword_only" + }, + "identity_acls": { + "type": "Optional[_models.IdentityAcls]", + "default": null, + "param_type": "keyword_only" + }, + "container_group_profile": { + "type": "Optional[_models.ContainerGroupProfileReferenceDefinition]", + "default": null, + "param_type": "keyword_only" + }, + "standby_pool_profile": { + "type": "Optional[_models.StandbyPoolProfileDefinition]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -5979,52 +15445,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -6032,148 +15491,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "id": { - "attr_type": "id" }, - "name": { - "attr_type": "name" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ContainerHttpGet": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "port": { - "default": null, - "param_type": "keyword_only" - }, - "path": { - "default": "none", - "param_type": "keyword_only" - }, - "scheme": { - "default": "none", - "param_type": "keyword_only" - }, - "http_headers": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -6182,137 +15574,43 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "path": { - "attr_type": "path" }, - "port": { - "attr_type": "port" - }, - "scheme": { - "attr_type": "scheme" - }, - "http_headers": { - "attr_type": "http_headers" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ContainerInstanceOperationsOrigin": { - "type": "Enum", - "methods": {}, - "properties": { - "SYSTEM": "SYSTEM", - "USER": "USER", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "ContainerNetworkProtocol": { - "type": "Enum", - "methods": {}, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, "properties": { - "TCP": "TCP", - "UDP": "UDP", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" + "provisioning_state": "Optional", + "secret_references": "Optional", + "containers": "list", + "image_registry_credentials": "Optional", + "restart_policy": "Optional", + "ip_address": "Optional", + "os_type": "Union", + "volumes": "Optional", + "diagnostics": "Optional", + "subnet_ids": "Optional", + "dns_config": "Optional", + "sku": "Optional", + "encryption_properties": "Optional", + "init_containers": "Optional", + "extensions": "Optional", + "confidential_compute_properties": "Optional", + "priority": "Optional", + "identity_acls": "Optional", + "container_group_profile": "Optional", + "standby_pool_profile": "Optional", + "is_created_from_standby_pool": "Optional" } }, - "ContainerPort": { + "LoadBalancer": { "type": null, "methods": { "__init__": { @@ -6321,13 +15619,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "port": { + "args": { "default": null, - "param_type": "keyword_only" - }, - "protocol": { - "default": "none", - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -6335,7 +15629,40 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "backend_address_pools": { + "type": "Optional[list[_models.LoadBalancerBackendAddressPool]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -6343,29 +15670,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { "default": null, - "param_type": "var_keyword" + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "get": { "parameters": { - "data": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -6373,44 +15716,82 @@ "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "pop": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "setdefault": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -6418,21 +15799,23 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "protocol": { - "attr_type": "protocol" - }, - "port": { - "attr_type": "port" - }, - "additional_properties": { - "attr_type": null - } + "backend_address_pools": "Optional" } }, - "ContainerProbe": { + "LoadBalancerBackendAddressPool": { "type": null, "methods": { "__init__": { @@ -6441,116 +15824,179 @@ "default": null, "param_type": "positional_or_keyword" }, - "exec_property": { - "default": "none", - "param_type": "keyword_only" - }, - "http_get": { - "default": "none", - "param_type": "keyword_only" - }, - "initial_delay_seconds": { - "default": "none", - "param_type": "keyword_only" - }, - "period_seconds": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, - "failure_threshold": { - "default": "none", - "param_type": "keyword_only" + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null }, - "success_threshold": { - "default": "none", - "param_type": "keyword_only" + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" }, - "timeout_seconds": { - "default": "none", + "exclude_readonly": { + "default": "bool", "param_type": "keyword_only" - }, - "kwargs": { + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { "default": null, - "param_type": "var_keyword" + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "none", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "items": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "pop": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "setdefault": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -6558,36 +16004,23 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "exec_property": { - "attr_type": "exec_property" - }, - "http_get": { - "attr_type": "http_get" - }, - "initial_delay_seconds": { - "attr_type": "initial_delay_seconds" - }, - "period_seconds": { - "attr_type": "period_seconds" - }, - "failure_threshold": { - "attr_type": "failure_threshold" - }, - "success_threshold": { - "attr_type": "success_threshold" - }, - "timeout_seconds": { - "attr_type": "timeout_seconds" - }, - "additional_properties": { - "attr_type": null - } + "resource": "Optional" } }, - "ContainerPropertiesInstanceView": { + "LogAnalytics": { "type": null, "methods": { "__init__": { @@ -6596,13 +16029,70 @@ "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "workspace_id": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "workspace_key": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "log_type": { + "type": "Optional[Union[str, _models.LogAnalyticsLogType]]", + "default": null, + "param_type": "keyword_only" + }, + "metadata": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "workspace_resource_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -6610,52 +16100,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -6663,138 +16146,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "restart_count": { - "attr_type": null - }, - "current_state": { - "attr_type": null - }, - "previous_state": { - "attr_type": null }, - "events": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ContainerState": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -6803,37 +16229,32 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "state": { - "attr_type": null - }, - "start_time": { - "attr_type": null - }, - "exit_code": { - "attr_type": null - }, - "finish_time": { - "attr_type": null - }, - "detail_status": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } + "workspace_id": null, + "workspace_key": null, + "log_type": "Optional", + "metadata": "Optional", + "workspace_resource_id": "Optional" } }, - "CreatedByType": { + "LogAnalyticsLogType": { "type": "Enum", "methods": {}, "properties": { - "APPLICATION": "APPLICATION", - "KEY": "KEY", - "MANAGED_IDENTITY": "MANAGED_IDENTITY", - "USER": "USER", + "CONTAINER_INSIGHTS": "CONTAINER_INSIGHTS", + "CONTAINER_INSTANCE_LOGS": "CONTAINER_INSTANCE_LOGS", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -6883,7 +16304,7 @@ "zfill": "zfill" } }, - "DeploymentExtensionSpec": { + "Logs": { "type": null, "methods": { "__init__": { @@ -6892,86 +16313,96 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": null, - "param_type": "keyword_only" - }, - "extension_type": { - "default": "none", - "param_type": "keyword_only" - }, - "version": { - "default": "none", - "param_type": "keyword_only" - }, - "settings": { - "default": "none", - "param_type": "keyword_only" - }, - "protected_settings": { - "default": "none", + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "content": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "clear": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "copy": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -6979,153 +16410,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "extension_type": { - "attr_type": "extension_type" }, - "version": { - "attr_type": "version" - }, - "settings": { - "attr_type": "settings" - }, - "protected_settings": { - "attr_type": "protected_settings" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DnsConfiguration": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "name_servers": { - "default": null, - "param_type": "keyword_only" - }, - "search_domains": { - "default": "none", - "param_type": "keyword_only" - }, - "options": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -7134,82 +16493,23 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "name_servers": { - "attr_type": "name_servers" - }, - "search_domains": { - "attr_type": "search_domains" }, - "options": { - "attr_type": "options" - }, - "additional_properties": { - "attr_type": null + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } - } - }, - "DnsNameLabelReusePolicy": { - "type": "Enum", - "methods": {}, + }, "properties": { - "NOREUSE": "NOREUSE", - "RESOURCE_GROUP_REUSE": "RESOURCE_GROUP_REUSE", - "SUBSCRIPTION_REUSE": "SUBSCRIPTION_REUSE", - "TENANT_REUSE": "TENANT_REUSE", - "UNSECURE": "UNSECURE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" + "content": "Optional" } }, - "ElasticProfile": { + "NGroup": { "type": null, "methods": { "__init__": { @@ -7217,101 +16517,200 @@ "self": { "default": null, "param_type": "positional_or_keyword" - }, - "desired_count": { - "default": "none", - "param_type": "keyword_only" - }, - "maintain_desired_count": { - "default": "none", - "param_type": "keyword_only" - }, - "container_group_naming_policy": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.NGroupProperties]", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "location": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "zones": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[_models.NGroupIdentity]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { "default": null, - "param_type": "var_keyword" + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "none", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "items": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "pop": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "setdefault": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -7319,24 +16718,31 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "desired_count": { - "attr_type": "desired_count" - }, - "maintain_desired_count": { - "attr_type": "maintain_desired_count" - }, - "container_group_naming_policy": { - "attr_type": "container_group_naming_policy" - }, - "additional_properties": { - "attr_type": null - } + "properties": "Optional", + "tags": "Optional", + "location": "Optional", + "zones": "Optional", + "identity": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" } }, - "ElasticProfileContainerGroupNamingPolicy": { + "NGroupCGPropertyContainer": { "type": null, "methods": { "__init__": { @@ -7345,9 +16751,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "guid_naming_policy": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -7355,7 +16761,45 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.NGroupCGPropertyContainerProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -7363,52 +16807,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -7416,133 +16853,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "guid_naming_policy": { - "attr_type": "guid_naming_policy" }, - "additional_properties": { - "attr_type": null - } - } - }, - "ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "prefix": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -7551,102 +16936,122 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "prefix": { - "attr_type": "prefix" + "name": "Optional", + "properties": "Optional" + } + }, + "NGroupCGPropertyContainerProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "volume_mounts": { + "type": "Optional[list[_models.VolumeMount]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, - "additional_properties": { - "attr_type": null - } - } - }, - "EncryptionProperties": { - "type": null, - "methods": { - "__init__": { + "as_dict": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "vault_base_url": { - "default": null, - "param_type": "keyword_only" - }, - "key_name": { - "default": null, - "param_type": "keyword_only" - }, - "key_version": { - "default": null, - "param_type": "keyword_only" - }, - "identity": { - "default": "none", + "exclude_readonly": { + "default": "bool", "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "clear": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "copy": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -7654,154 +17059,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "vault_base_url": { - "attr_type": "vault_base_url" - }, - "key_name": { - "attr_type": "key_name" - }, - "key_version": { - "attr_type": "key_version" }, - "identity": { - "attr_type": "identity" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "EnvironmentVariable": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "name": { - "default": null, - "param_type": "keyword_only" - }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "secure_value": { - "default": "none", - "param_type": "keyword_only" - }, - "secure_value_reference": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -7810,27 +17142,23 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "name": { - "attr_type": "name" - }, - "value": { - "attr_type": "value" - }, - "secure_value": { - "attr_type": "secure_value" - }, - "secure_value_reference": { - "attr_type": "secure_value_reference" - }, - "additional_properties": { - "attr_type": null - } + "volume_mounts": "Optional" } }, - "ErrorAdditionalInfo": { + "NGroupCGPropertyVolume": { "type": null, "methods": { "__init__": { @@ -7839,13 +17167,55 @@ "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "azure_file": { + "type": "Optional[_models.AzureFileVolume]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -7853,52 +17223,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -7906,132 +17269,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "type": { - "attr_type": null - }, - "info": { - "attr_type": null }, - "additional_properties": { - "attr_type": null - } - } - }, - "ErrorDetail": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -8040,30 +17352,24 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "code": { - "attr_type": null - }, - "message": { - "attr_type": null }, - "target": { - "attr_type": null - }, - "details": { - "attr_type": null - }, - "additional_info": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } + }, + "properties": { + "name": null, + "azure_file": "Optional" } }, - "ErrorResponse": { + "NGroupContainerGroupProperties": { "type": null, "methods": { "__init__": { @@ -8072,9 +17378,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "error": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -8082,7 +17388,50 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "subnet_ids": { + "type": "Optional[list[_models.ContainerGroupSubnetId]]", + "default": null, + "param_type": "keyword_only" + }, + "volumes": { + "type": "Optional[list[_models.NGroupCGPropertyVolume]]", + "default": null, + "param_type": "keyword_only" + }, + "containers": { + "type": "Optional[list[_models.NGroupCGPropertyContainer]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -8090,52 +17439,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -8143,129 +17485,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "error": { - "attr_type": "error" }, - "additional_properties": { - "attr_type": null - } - } - }, - "Event": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -8274,33 +17568,25 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "count": { - "attr_type": null - }, - "first_timestamp": { - "attr_type": null - }, - "last_timestamp": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "message": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } + "subnet_ids": "Optional", + "volumes": "Optional", + "containers": "Optional" } }, - "FileShare": { + "NGroupIdentity": { "type": null, "methods": { "__init__": { @@ -8309,21 +17595,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "resource_group_name": { - "default": "none", - "param_type": "keyword_only" - }, - "storage_account_name": { - "default": "none", - "param_type": "keyword_only" - }, - "properties": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -8331,7 +17605,45 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "Optional[Union[str, _models.ResourceIdentityType]]", + "default": null, + "param_type": "keyword_only" + }, + "user_assigned_identities": { + "type": "Optional[dict[str, _models.UserAssignedIdentities]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -8339,52 +17651,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -8392,146 +17697,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "resource_group_name": { - "attr_type": "resource_group_name" - }, - "storage_account_name": { - "attr_type": "storage_account_name" - }, - "properties": { - "attr_type": "properties" }, - "additional_properties": { - "attr_type": null - } - } - }, - "FileShareProperties": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "share_access_type": { - "default": "none", - "param_type": "keyword_only" - }, - "share_access_tier": { - "default": "str", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", + "self": { + "default": null, "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -8540,21 +17780,26 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "share_access_type": { - "attr_type": "share_access_type" - }, - "share_access_tier": { - "attr_type": "share_access_tier" - }, - "additional_properties": { - "attr_type": null - } + "principal_id": "Optional", + "tenant_id": "Optional", + "type": "Optional", + "user_assigned_identities": "Optional" } }, - "GitRepoVolume": { + "NGroupPatch": { "type": null, "methods": { "__init__": { @@ -8563,17 +17808,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "repository": { + "args": { "default": null, - "param_type": "keyword_only" - }, - "directory": { - "default": "none", - "param_type": "keyword_only" - }, - "revision": { - "default": "none", - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -8581,7 +17818,55 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.NGroupProperties]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[_models.NGroupIdentity]", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "zones": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -8589,52 +17874,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -8642,143 +17920,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "directory": { - "attr_type": "directory" }, - "repository": { - "attr_type": "repository" - }, - "revision": { - "attr_type": "revision" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "GpuResource": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "count": { - "default": null, - "param_type": "keyword_only" - }, - "sku": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -8787,77 +18003,27 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "count": { - "attr_type": "count" - }, - "sku": { - "attr_type": "sku" }, - "additional_properties": { - "attr_type": null + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } - } - }, - "GpuSku": { - "type": "Enum", - "methods": {}, + }, "properties": { - "K80": "K80", - "P100": "P100", - "V100": "V100", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" + "system_data": "Optional", + "properties": "Optional", + "identity": "Optional", + "tags": "Optional", + "zones": "Optional" } }, - "HttpHeader": { + "NGroupProperties": { "type": null, "methods": { "__init__": { @@ -8866,74 +18032,111 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "value": { - "default": "none", + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "elastic_profile": { + "type": "Optional[_models.ElasticProfile]", + "default": null, + "param_type": "keyword_only" + }, + "placement_profile": { + "type": "Optional[_models.PlacementProfile]", + "default": null, + "param_type": "keyword_only" + }, + "container_group_profiles": { + "type": "Optional[list[_models.ContainerGroupProfileStub]]", + "default": null, + "param_type": "keyword_only" + }, + "update_profile": { + "type": "Optional[_models.UpdateProfile]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "clear": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "copy": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -8941,140 +18144,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" }, - "value": { - "attr_type": "value" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "IdentityAccessControl": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "access": { - "default": "none", - "param_type": "keyword_only" - }, - "identity": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -9083,27 +18227,37 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "access": { - "attr_type": "access" - }, - "identity": { - "attr_type": "identity" - }, - "additional_properties": { - "attr_type": null - } + "elastic_profile": "Optional", + "placement_profile": "Optional", + "container_group_profiles": "Optional", + "provisioning_state": "Optional", + "update_profile": "Optional" } }, - "IdentityAccessLevel": { + "NGroupProvisioningState": { "type": "Enum", "methods": {}, "properties": { - "ALL": "ALL", - "SYSTEM": "SYSTEM", - "USER": "USER", + "CANCELED": "CANCELED", + "CREATING": "CREATING", + "DELETING": "DELETING", + "FAILED": "FAILED", + "MIGRATING": "MIGRATING", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -9153,7 +18307,62 @@ "zfill": "zfill" } }, - "IdentityAcls": { + "NGroupUpdateMode": { + "type": "Enum", + "methods": {}, + "properties": { + "MANUAL": "MANUAL", + "ROLLING": "ROLLING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "NetworkProfile": { "type": null, "methods": { "__init__": { @@ -9162,13 +18371,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "default_access": { - "default": "none", - "param_type": "keyword_only" - }, - "acls": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -9176,305 +18381,173 @@ } }, "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "load_balancer": { + "type": "Optional[_models.LoadBalancer]", + "default": null, + "param_type": "keyword_only" + }, + "application_gateway": { + "type": "Optional[_models.ApplicationGateway]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null } - }, - "is_async": false, - "overloads": [] + ] }, - "deserialize": { + "as_dict": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "copy": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "default_access": { - "attr_type": "default_access" }, - "acls": { - "attr_type": "acls" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ImageRegistryCredential": { - "type": null, - "methods": { - "__init__": { + "get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "server": { + "key": { "default": null, - "param_type": "keyword_only" - }, - "username": { - "default": "none", - "param_type": "keyword_only" - }, - "password": { - "default": "none", - "param_type": "keyword_only" - }, - "password_reference": { - "default": "none", - "param_type": "keyword_only" - }, - "identity": { - "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" }, - "identity_url": { + "default": { "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "keys": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "pop": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "popitem": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "server": { - "attr_type": "server" - }, - "username": { - "attr_type": "username" - }, - "password": { - "attr_type": "password" - }, - "password_reference": { - "attr_type": "password_reference" }, - "identity": { - "attr_type": "identity" - }, - "identity_url": { - "attr_type": "identity_url" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "InitContainerDefinition": { - "type": null, - "methods": { - "__init__": { + "setdefault": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "name": { + "key": { "default": null, - "param_type": "keyword_only" - }, - "image": { - "default": "none", - "param_type": "keyword_only" - }, - "command": { - "default": "none", - "param_type": "keyword_only" - }, - "environment_variables": { - "default": "none", - "param_type": "keyword_only" - }, - "volume_mounts": { - "default": "none", - "param_type": "keyword_only" - }, - "security_context": { - "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "default": { + "default": "object", + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -9484,163 +18557,191 @@ "is_async": false, "overloads": [] }, - "deserialize": { + "values": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + } + }, + "properties": { + "load_balancer": "Optional", + "application_gateway": "Optional" + } + }, + "OperatingSystemTypes": { + "type": "Enum", + "methods": {}, + "properties": { + "LINUX": "LINUX", + "WINDOWS": "WINDOWS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Operation": { + "type": null, + "methods": { + "__init__": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "display": { + "type": "_models.OperationDisplay", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[Any]", + "default": null, + "param_type": "keyword_only" + }, + "origin": { + "type": "Optional[Union[str, _models.ContainerInstanceOperationsOrigin]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] + ] }, - "serialize": { + "as_dict": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "image": { - "attr_type": "image" - }, - "command": { - "attr_type": "command" - }, - "environment_variables": { - "attr_type": "environment_variables" }, - "instance_view": { - "attr_type": null - }, - "volume_mounts": { - "attr_type": "volume_mounts" - }, - "security_context": { - "attr_type": "security_context" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "InitContainerPropertiesDefinitionInstanceView": { - "type": null, - "methods": { - "__init__": { + "clear": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "copy": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { + "key": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -9648,158 +18749,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "restart_count": { - "attr_type": null - }, - "current_state": { - "attr_type": null - }, - "previous_state": { - "attr_type": null - }, - "events": { - "attr_type": null }, - "additional_properties": { - "attr_type": null - } - } - }, - "IpAddress": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "ports": { - "default": null, - "param_type": "keyword_only" - }, - "type": { - "default": null, - "param_type": "keyword_only" - }, - "ip": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_name_label": { - "default": "none", - "param_type": "keyword_only" - }, - "auto_generated_domain_name_label_scope": { - "default": "str", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -9808,33 +18832,26 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "ports": { - "attr_type": "ports" - }, - "type": { - "attr_type": "type" - }, - "ip": { - "attr_type": "ip" - }, - "dns_name_label": { - "attr_type": "dns_name_label" - }, - "auto_generated_domain_name_label_scope": { - "attr_type": "auto_generated_domain_name_label_scope" - }, - "fqdn": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } + "name": null, + "display": null, + "properties": "Optional", + "origin": "Optional" } }, - "ListResultContainerGroup": { + "OperationDisplay": { "type": null, "methods": { "__init__": { @@ -9843,105 +18860,65 @@ "default": null, "param_type": "positional_or_keyword" }, - "containers": { - "default": null, - "param_type": "keyword_only" - }, - "os_type": { + "args": { "default": null, - "param_type": "keyword_only" - }, - "identity": { - "default": "none", - "param_type": "keyword_only" - }, - "secret_references": { - "default": "none", - "param_type": "keyword_only" - }, - "image_registry_credentials": { - "default": "none", - "param_type": "keyword_only" - }, - "restart_policy": { - "default": "none", - "param_type": "keyword_only" - }, - "ip_address": { - "default": "none", - "param_type": "keyword_only" - }, - "volumes": { - "default": "none", - "param_type": "keyword_only" - }, - "diagnostics": { - "default": "none", - "param_type": "keyword_only" - }, - "subnet_ids": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_config": { - "default": "none", - "param_type": "keyword_only" - }, - "sku": { - "default": "none", - "param_type": "keyword_only" - }, - "encryption_properties": { - "default": "none", - "param_type": "keyword_only" - }, - "init_containers": { - "default": "none", - "param_type": "keyword_only" - }, - "extensions": { - "default": "none", - "param_type": "keyword_only" - }, - "confidential_compute_properties": { - "default": "none", - "param_type": "keyword_only" - }, - "priority": { - "default": "none", - "param_type": "keyword_only" - }, - "identity_acls": { - "default": "none", - "param_type": "keyword_only" - }, - "container_group_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "standby_pool_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "location": { - "default": "none", - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "zones": { - "default": "none", - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, "param_type": "var_keyword" } - }, - "is_async": false, - "overloads": [] + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "provider": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "resource": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "operation": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "description": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -9949,52 +18926,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -10002,290 +18972,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "identity": { - "attr_type": "identity" - }, - "provisioning_state": { - "attr_type": null - }, - "secret_references": { - "attr_type": "secret_references" - }, - "containers": { - "attr_type": "containers" - }, - "image_registry_credentials": { - "attr_type": "image_registry_credentials" - }, - "restart_policy": { - "attr_type": "restart_policy" - }, - "ip_address": { - "attr_type": "ip_address" - }, - "os_type": { - "attr_type": "os_type" - }, - "volumes": { - "attr_type": "volumes" - }, - "diagnostics": { - "attr_type": "diagnostics" - }, - "subnet_ids": { - "attr_type": "subnet_ids" - }, - "dns_config": { - "attr_type": "dns_config" - }, - "sku": { - "attr_type": "sku" - }, - "encryption_properties": { - "attr_type": "encryption_properties" - }, - "init_containers": { - "attr_type": "init_containers" - }, - "extensions": { - "attr_type": "extensions" - }, - "confidential_compute_properties": { - "attr_type": "confidential_compute_properties" - }, - "priority": { - "attr_type": "priority" - }, - "identity_acls": { - "attr_type": "identity_acls" }, - "container_group_profile": { - "attr_type": "container_group_profile" - }, - "standby_pool_profile": { - "attr_type": "standby_pool_profile" - }, - "is_created_from_standby_pool": { - "attr_type": null - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "location": { - "attr_type": "location" - }, - "tags": { - "attr_type": "tags" - }, - "zones": { - "attr_type": "zones" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ListResultContainerGroupProperties": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "containers": { - "default": null, - "param_type": "keyword_only" - }, - "os_type": { - "default": null, - "param_type": "keyword_only" - }, - "identity": { - "default": "none", - "param_type": "keyword_only" - }, - "secret_references": { - "default": "none", - "param_type": "keyword_only" - }, - "image_registry_credentials": { - "default": "none", - "param_type": "keyword_only" - }, - "restart_policy": { - "default": "none", - "param_type": "keyword_only" - }, - "ip_address": { - "default": "none", - "param_type": "keyword_only" - }, - "volumes": { - "default": "none", - "param_type": "keyword_only" - }, - "diagnostics": { - "default": "none", - "param_type": "keyword_only" - }, - "subnet_ids": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_config": { - "default": "none", - "param_type": "keyword_only" - }, - "sku": { - "default": "none", - "param_type": "keyword_only" - }, - "encryption_properties": { - "default": "none", - "param_type": "keyword_only" - }, - "init_containers": { - "default": "none", - "param_type": "keyword_only" - }, - "extensions": { - "default": "none", - "param_type": "keyword_only" - }, - "confidential_compute_properties": { - "default": "none", - "param_type": "keyword_only" - }, - "priority": { - "default": "none", - "param_type": "keyword_only" - }, - "identity_acls": { - "default": "none", - "param_type": "keyword_only" - }, - "container_group_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "standby_pool_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -10294,81 +19055,26 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "identity": { - "attr_type": "identity" - }, - "provisioning_state": { - "attr_type": null - }, - "secret_references": { - "attr_type": "secret_references" - }, - "containers": { - "attr_type": "containers" - }, - "image_registry_credentials": { - "attr_type": "image_registry_credentials" - }, - "restart_policy": { - "attr_type": "restart_policy" - }, - "ip_address": { - "attr_type": "ip_address" - }, - "os_type": { - "attr_type": "os_type" - }, - "volumes": { - "attr_type": "volumes" - }, - "diagnostics": { - "attr_type": "diagnostics" - }, - "subnet_ids": { - "attr_type": "subnet_ids" - }, - "dns_config": { - "attr_type": "dns_config" - }, - "sku": { - "attr_type": "sku" - }, - "encryption_properties": { - "attr_type": "encryption_properties" - }, - "init_containers": { - "attr_type": "init_containers" - }, - "extensions": { - "attr_type": "extensions" - }, - "confidential_compute_properties": { - "attr_type": "confidential_compute_properties" - }, - "priority": { - "attr_type": "priority" - }, - "identity_acls": { - "attr_type": "identity_acls" - }, - "container_group_profile": { - "attr_type": "container_group_profile" - }, - "standby_pool_profile": { - "attr_type": "standby_pool_profile" - }, - "is_created_from_standby_pool": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } + "provider": "Optional", + "resource": "Optional", + "operation": "Optional", + "description": "Optional" } }, - "LoadBalancer": { + "PlacementProfile": { "type": null, "methods": { "__init__": { @@ -10377,9 +19083,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "backend_address_pools": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -10387,7 +19093,40 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "fault_domain_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -10395,52 +19134,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { "default": null, - "param_type": "var_keyword" + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "copy": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -10448,133 +19180,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "backend_address_pools": { - "attr_type": "backend_address_pools" }, - "additional_properties": { - "attr_type": null - } - } - }, - "LoadBalancerBackendAddressPool": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "resource": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -10583,18 +19263,23 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "resource": { - "attr_type": "resource" - }, - "additional_properties": { - "attr_type": null - } + "fault_domain_count": "Optional" } }, - "LogAnalytics": { + "Port": { "type": null, "methods": { "__init__": { @@ -10603,25 +19288,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "workspace_id": { - "default": null, - "param_type": "keyword_only" - }, - "workspace_key": { + "args": { "default": null, - "param_type": "keyword_only" - }, - "log_type": { - "default": "none", - "param_type": "keyword_only" - }, - "metadata": { - "default": "none", - "param_type": "keyword_only" - }, - "workspace_resource_id": { - "default": "none", - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -10629,7 +19298,45 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "protocol": { + "type": "Optional[Union[str, _models.ContainerGroupNetworkProtocol]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -10637,254 +19344,128 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "clear": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, - "overloads": [] - } - }, - "properties": { - "workspace_id": { - "attr_type": "workspace_id" - }, - "workspace_key": { - "attr_type": "workspace_key" - }, - "log_type": { - "attr_type": "log_type" - }, - "metadata": { - "attr_type": "metadata" - }, - "workspace_resource_id": { - "attr_type": "workspace_resource_id" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "LogAnalyticsLogType": { - "type": "Enum", - "methods": {}, - "properties": { - "CONTAINER_INSIGHTS": "CONTAINER_INSIGHTS", - "CONTAINER_INSTANCE_LOGS": "CONTAINER_INSTANCE_LOGS", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Logs": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { + "overloads": [] + }, + "copy": { + "parameters": { + "self": { "default": null, - "param_type": "var_keyword" + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "none", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "items": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "pop": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "setdefault": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -10892,18 +19473,24 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "content": { - "attr_type": "content" - }, - "additional_properties": { - "attr_type": null - } + "protocol": "Optional", + "port": null } }, - "NGroup": { + "ProxyResource": { "type": null, "methods": { "__init__": { @@ -10912,37 +19499,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { - "default": "none", - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "zones": { - "default": "none", - "param_type": "keyword_only" - }, - "identity": { - "default": "none", - "param_type": "keyword_only" - }, - "elastic_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "placement_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "container_group_profiles": { - "default": "none", - "param_type": "keyword_only" - }, - "update_profile": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -10958,52 +19517,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -11011,173 +19563,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "system_data": { - "attr_type": null - }, - "identity": { - "attr_type": "identity" }, - "elastic_profile": { - "attr_type": "elastic_profile" - }, - "placement_profile": { - "attr_type": "placement_profile" - }, - "container_group_profiles": { - "attr_type": "container_group_profiles" - }, - "provisioning_state": { - "attr_type": null - }, - "update_profile": { - "attr_type": "update_profile" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "location": { - "attr_type": "location" - }, - "tags": { - "attr_type": "tags" - }, - "zones": { - "attr_type": "zones" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "NGroupCGPropertyContainer": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "properties": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -11186,21 +19646,26 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "name": { - "attr_type": "name" - }, - "properties": { - "attr_type": "properties" - }, - "additional_properties": { - "attr_type": null - } + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" } }, - "NGroupCGPropertyContainerProperties": { + "Resource": { "type": null, "methods": { "__init__": { @@ -11209,9 +19674,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "volume_mounts": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -11219,7 +19684,50 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "zones": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -11227,52 +19735,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { "default": null, - "param_type": "var_keyword" + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "copy": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -11280,137 +19781,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "volume_mounts": { - "attr_type": "volume_mounts" }, - "additional_properties": { - "attr_type": null - } - } - }, - "NGroupCGPropertyVolume": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "name": { - "default": null, - "param_type": "keyword_only" - }, - "azure_file": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -11419,62 +19864,96 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "azure_file": { - "attr_type": "azure_file" }, - "additional_properties": { - "attr_type": null - } - } - }, - "NGroupContainerGroupProperties": { - "type": null, - "methods": { - "__init__": { + "values": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "subnet_ids": { - "default": "none", - "param_type": "keyword_only" - }, - "volumes": { - "default": "none", - "param_type": "keyword_only" - }, - "containers": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - }, - "as_dict": { + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "type": "Optional", + "location": "Optional", + "tags": "Optional", + "zones": "Optional" + } + }, + "ResourceIdentityType": { + "type": "Enum", + "methods": {}, + "properties": { + "NONE": "NONE", + "SYSTEM_ASSIGNED": "SYSTEM_ASSIGNED", + "SYSTEM_ASSIGNED_USER_ASSIGNED": "SYSTEM_ASSIGNED_USER_ASSIGNED", + "USER_ASSIGNED": "USER_ASSIGNED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ResourceLimits": { + "type": null, + "methods": { + "__init__": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -11482,183 +19961,179 @@ } }, "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "memory_in_gb": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + }, + "cpu": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + }, + "gpu": { + "type": "Optional[_models.GpuResource]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] + ] }, - "from_dict": { + "as_dict": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "clear": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "subnet_ids": { - "attr_type": "subnet_ids" }, - "volumes": { - "attr_type": "volumes" - }, - "containers": { - "attr_type": "containers" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "NGroupIdentity": { - "type": null, - "methods": { - "__init__": { + "copy": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "type": { - "default": "none", - "param_type": "keyword_only" - }, - "user_assigned_identities": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "none", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "items": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "pop": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "setdefault": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -11666,27 +20141,25 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "principal_id": { - "attr_type": null - }, - "tenant_id": { - "attr_type": null - }, - "type": { - "attr_type": "type" - }, - "user_assigned_identities": { - "attr_type": "user_assigned_identities" - }, - "additional_properties": { - "attr_type": null - } + "memory_in_gb": "Optional", + "cpu": "Optional", + "gpu": "Optional" } }, - "NGroupPatch": { + "ResourceRequests": { "type": null, "methods": { "__init__": { @@ -11695,33 +20168,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "identity": { - "default": "none", - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "zones": { - "default": "none", - "param_type": "keyword_only" - }, - "elastic_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "placement_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "container_group_profiles": { - "default": "none", - "param_type": "keyword_only" - }, - "update_profile": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -11729,7 +20178,50 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "memory_in_gb": { + "type": "float", + "default": null, + "param_type": "keyword_only" + }, + "cpu": { + "type": "float", + "default": null, + "param_type": "keyword_only" + }, + "gpu": { + "type": "Optional[_models.GpuResource]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -11737,278 +20229,127 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "copy": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "default": { + "default": "none", + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "system_data": { - "attr_type": null - }, - "identity": { - "attr_type": "identity" }, - "tags": { - "attr_type": "tags" - }, - "zones": { - "attr_type": "zones" - }, - "elastic_profile": { - "attr_type": "elastic_profile" - }, - "placement_profile": { - "attr_type": "placement_profile" - }, - "container_group_profiles": { - "attr_type": "container_group_profiles" - }, - "provisioning_state": { - "attr_type": null - }, - "update_profile": { - "attr_type": "update_profile" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "NGroupProvisioningState": { - "type": "Enum", - "methods": {}, - "properties": { - "CANCELED": "CANCELED", - "CREATING": "CREATING", - "DELETING": "DELETING", - "FAILED": "FAILED", - "MIGRATING": "MIGRATING", - "SUCCEEDED": "SUCCEEDED", - "UPDATING": "UPDATING", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "NGroupSkus": { - "type": null, - "methods": { - "__init__": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "resource_type": { - "default": "none", - "param_type": "keyword_only" - }, - "sku": { - "default": "none", - "param_type": "keyword_only" - }, - "sku_capacity": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "pop": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -12017,79 +20358,25 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "resource_type": { - "attr_type": "resource_type" - }, - "sku": { - "attr_type": "sku" }, - "sku_capacity": { - "attr_type": "sku_capacity" - }, - "additional_properties": { - "attr_type": null + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } - } - }, - "NGroupUpdateMode": { - "type": "Enum", - "methods": {}, + }, "properties": { - "MANUAL": "MANUAL", - "ROLLING": "ROLLING", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" + "memory_in_gb": null, + "cpu": null, + "gpu": "Optional" } }, - "NGroupsListResult": { + "ResourceRequirements": { "type": null, "methods": { "__init__": { @@ -12098,13 +20385,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "next_link": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -12112,7 +20395,45 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "requests": { + "type": "_models.ResourceRequests", + "default": null, + "param_type": "keyword_only" + }, + "limits": { + "type": "Optional[_models.ResourceLimits]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -12120,29 +20441,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { "default": null, - "param_type": "var_keyword" + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "get": { "parameters": { - "data": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -12150,44 +20487,82 @@ "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "pop": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "setdefault": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -12195,21 +20570,79 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": "next_link" - }, - "additional_properties": { - "attr_type": null - } + "requests": null, + "limits": "Optional" + } + }, + "Scheme": { + "type": "Enum", + "methods": {}, + "properties": { + "HTTP": "HTTP", + "HTTPS": "HTTPS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" } }, - "NGroupsSkusList": { + "SecretReference": { "type": null, "methods": { "__init__": { @@ -12218,13 +20651,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "next_link": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -12232,7 +20661,50 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "secret_reference_uri": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -12240,52 +20712,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -12293,140 +20758,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" }, - "next_link": { - "attr_type": "next_link" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "NetworkProfile": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "load_balancer": { - "default": "none", - "param_type": "keyword_only" - }, - "application_gateway": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -12435,76 +20841,25 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "load_balancer": { - "attr_type": "load_balancer" }, - "application_gateway": { - "attr_type": "application_gateway" - }, - "additional_properties": { - "attr_type": null + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } - } - }, - "OperatingSystemTypes": { - "type": "Enum", - "methods": {}, + }, "properties": { - "LINUX": "LINUX", - "WINDOWS": "WINDOWS", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" + "name": null, + "identity": null, + "secret_reference_uri": null } }, - "Operation": { + "SecurityContextCapabilitiesDefinition": { "type": null, "methods": { "__init__": { @@ -12513,29 +20868,55 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": null, - "param_type": "keyword_only" - }, - "display": { + "args": { "default": null, - "param_type": "keyword_only" - }, - "properties": { - "default": "none", - "param_type": "keyword_only" - }, - "origin": { - "default": "none", - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, "param_type": "var_keyword" } - }, - "is_async": false, - "overloads": [] + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "add": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "drop": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -12543,52 +20924,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -12596,154 +20970,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" }, - "display": { - "attr_type": "display" - }, - "properties": { - "attr_type": "properties" - }, - "origin": { - "attr_type": "origin" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "OperationDisplay": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "provider": { - "default": "none", - "param_type": "keyword_only" - }, - "resource": { - "default": "none", - "param_type": "keyword_only" - }, - "operation": { - "default": "none", - "param_type": "keyword_only" - }, - "description": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -12752,27 +21053,24 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "provider": { - "attr_type": "provider" - }, - "resource": { - "attr_type": "resource" - }, - "operation": { - "attr_type": "operation" - }, - "description": { - "attr_type": "description" - }, - "additional_properties": { - "attr_type": null - } + "add": "Optional", + "drop": "Optional" } }, - "OperationListResult": { + "SecurityContextDefinition": { "type": null, "methods": { "__init__": { @@ -12781,13 +21079,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "next_link": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -12795,7 +21089,65 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "privileged": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "allow_privilege_escalation": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "capabilities": { + "type": "Optional[_models.SecurityContextCapabilitiesDefinition]", + "default": null, + "param_type": "keyword_only" + }, + "run_as_group": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "run_as_user": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "seccomp_profile": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -12803,52 +21155,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -12856,136 +21201,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" }, - "next_link": { - "attr_type": "next_link" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "PlacementProfile": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "fault_domain_count": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -12994,18 +21284,28 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "fault_domain_count": { - "attr_type": "fault_domain_count" - }, - "additional_properties": { - "attr_type": null - } + "privileged": "Optional", + "allow_privilege_escalation": "Optional", + "capabilities": "Optional", + "run_as_group": "Optional", + "run_as_user": "Optional", + "seccomp_profile": "Optional" } }, - "Port": { + "StandbyPoolProfileDefinition": { "type": null, "methods": { "__init__": { @@ -13014,13 +21314,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "port": { + "args": { "default": null, - "param_type": "keyword_only" - }, - "protocol": { - "default": "none", - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -13028,7 +21324,45 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "fail_container_group_create_on_reuse_failure": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -13036,52 +21370,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -13089,144 +21416,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "protocol": { - "attr_type": "protocol" }, - "port": { - "attr_type": "port" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Resource": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "location": { - "default": "none", - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "zones": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -13235,90 +21499,24 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "id": { - "attr_type": null }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "location": { - "attr_type": "location" - }, - "tags": { - "attr_type": "tags" - }, - "zones": { - "attr_type": "zones" - }, - "additional_properties": { - "attr_type": null + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } - } - }, - "ResourceIdentityType": { - "type": "Enum", - "methods": {}, + }, "properties": { - "NONE": "NONE", - "SYSTEM_ASSIGNED": "SYSTEM_ASSIGNED", - "SYSTEM_ASSIGNED_USER_ASSIGNED": "SYSTEM_ASSIGNED_USER_ASSIGNED", - "USER_ASSIGNED": "USER_ASSIGNED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" + "id": "Optional", + "fail_container_group_create_on_reuse_failure": "Optional" } }, - "ResourceLimits": { + "StorageProfile": { "type": null, "methods": { "__init__": { @@ -13327,17 +21525,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "memory_in_gb": { - "default": "none", - "param_type": "keyword_only" - }, - "cpu": { - "default": "none", - "param_type": "keyword_only" - }, - "gpu": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -13345,7 +21535,40 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "file_shares": { + "type": "Optional[list[_models.FileShare]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -13353,52 +21576,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { "default": null, - "param_type": "var_keyword" + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "copy": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -13406,147 +21622,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "memory_in_gb": { - "attr_type": "memory_in_gb" - }, - "cpu": { - "attr_type": "cpu" - }, - "gpu": { - "attr_type": "gpu" }, - "additional_properties": { - "attr_type": null - } - } - }, - "ResourceRequests": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "memory_in_gb": { - "default": null, - "param_type": "keyword_only" - }, - "cpu": { - "default": null, - "param_type": "keyword_only" - }, - "gpu": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -13555,24 +21705,23 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "memory_in_gb": { - "attr_type": "memory_in_gb" - }, - "cpu": { - "attr_type": "cpu" - }, - "gpu": { - "attr_type": "gpu" - }, - "additional_properties": { - "attr_type": null - } + "file_shares": "Optional" } }, - "ResourceRequirements": { + "SystemData": { "type": null, "methods": { "__init__": { @@ -13581,13 +21730,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "requests": { + "args": { "default": null, - "param_type": "keyword_only" - }, - "limits": { - "default": "none", - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -13595,7 +21740,65 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "created_by": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "created_by_type": { + "type": "Optional[Union[str, _models.CreatedByType]]", + "default": null, + "param_type": "keyword_only" + }, + "created_at": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "last_modified_by": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "last_modified_by_type": { + "type": "Optional[Union[str, _models.CreatedByType]]", + "default": null, + "param_type": "keyword_only" + }, + "last_modified_at": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -13603,252 +21806,127 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "clear": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, - "overloads": [] - } - }, - "properties": { - "requests": { - "attr_type": "requests" - }, - "limits": { - "attr_type": "limits" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Scheme": { - "type": "Enum", - "methods": {}, - "properties": { - "HTTP": "HTTP", - "HTTPS": "HTTPS", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "SecretReference": { - "type": null, - "methods": { - "__init__": { + "overloads": [] + }, + "copy": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "name": { - "default": null, - "param_type": "keyword_only" - }, - "identity": { - "default": null, - "param_type": "keyword_only" - }, - "secret_reference_uri": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "none", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "items": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "pop": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "setdefault": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -13857,24 +21935,28 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "name": { - "attr_type": "name" - }, - "identity": { - "attr_type": "identity" - }, - "secret_reference_uri": { - "attr_type": "secret_reference_uri" - }, - "additional_properties": { - "attr_type": null - } + "created_by": "Optional", + "created_by_type": "Optional", + "created_at": "Optional", + "last_modified_by": "Optional", + "last_modified_by_type": "Optional", + "last_modified_at": "Optional" } }, - "SecurityContextCapabilitiesDefinition": { + "UpdateProfile": { "type": null, "methods": { "__init__": { @@ -13883,13 +21965,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "add": { - "default": "none", - "param_type": "keyword_only" - }, - "drop": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -13897,7 +21975,45 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "update_mode": { + "type": "Optional[Union[str, _models.NGroupUpdateMode]]", + "default": null, + "param_type": "keyword_only" + }, + "rolling_update_profile": { + "type": "Optional[_models.UpdateProfileRollingUpdateProfile]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -13905,29 +22021,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { "default": null, - "param_type": "var_keyword" + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "get": { "parameters": { - "data": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -13935,44 +22067,82 @@ "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "pop": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "setdefault": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -13980,21 +22150,24 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "add": { - "attr_type": "add" - }, - "drop": { - "attr_type": "drop" - }, - "additional_properties": { - "attr_type": null - } + "update_mode": "Optional", + "rolling_update_profile": "Optional" } }, - "SecurityContextDefinition": { + "UpdateProfileRollingUpdateProfile": { "type": null, "methods": { "__init__": { @@ -14003,90 +22176,111 @@ "default": null, "param_type": "positional_or_keyword" }, - "privileged": { - "default": "none", - "param_type": "keyword_only" - }, - "allow_privilege_escalation": { - "default": "none", - "param_type": "keyword_only" - }, - "capabilities": { - "default": "none", - "param_type": "keyword_only" - }, - "run_as_group": { - "default": "none", - "param_type": "keyword_only" - }, - "run_as_user": { - "default": "none", - "param_type": "keyword_only" - }, - "seccomp_profile": { - "default": "none", + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "max_batch_percent": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "max_unhealthy_percent": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "pause_time_between_batches": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "in_place_update": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "clear": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "copy": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -14094,152 +22288,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "privileged": { - "attr_type": "privileged" - }, - "allow_privilege_escalation": { - "attr_type": "allow_privilege_escalation" - }, - "capabilities": { - "attr_type": "capabilities" }, - "run_as_group": { - "attr_type": "run_as_group" - }, - "run_as_user": { - "attr_type": "run_as_user" - }, - "seccomp_profile": { - "attr_type": "seccomp_profile" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "StandbyPoolProfileDefinition": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "id": { - "default": "none", - "param_type": "keyword_only" - }, - "fail_container_group_create_on_reuse_failure": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -14248,21 +22371,26 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "id": { - "attr_type": "id" - }, - "fail_container_group_create_on_reuse_failure": { - "attr_type": "fail_container_group_create_on_reuse_failure" - }, - "additional_properties": { - "attr_type": null - } + "max_batch_percent": "Optional", + "max_unhealthy_percent": "Optional", + "pause_time_between_batches": "Optional", + "in_place_update": "Optional" } }, - "StorageProfile": { + "Usage": { "type": null, "methods": { "__init__": { @@ -14271,9 +22399,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "file_shares": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -14289,52 +22417,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -14342,153 +22463,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "file_shares": { - "attr_type": "file_shares" }, - "additional_properties": { - "attr_type": null - } - } - }, - "SystemData": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "created_by": { - "default": "none", - "param_type": "keyword_only" - }, - "created_by_type": { - "default": "none", - "param_type": "keyword_only" - }, - "created_at": { - "default": "none", - "param_type": "keyword_only" - }, - "last_modified_by": { - "default": "none", - "param_type": "keyword_only" - }, - "last_modified_by_type": { - "default": "none", - "param_type": "keyword_only" - }, - "last_modified_at": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -14497,33 +22546,27 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "created_by": { - "attr_type": "created_by" - }, - "created_by_type": { - "attr_type": "created_by_type" - }, - "created_at": { - "attr_type": "created_at" - }, - "last_modified_by": { - "attr_type": "last_modified_by" - }, - "last_modified_by_type": { - "attr_type": "last_modified_by_type" - }, - "last_modified_at": { - "attr_type": "last_modified_at" - }, - "additional_properties": { - "attr_type": null - } + "id": "Optional", + "unit": "Optional", + "current_value": "Optional", + "limit": "Optional", + "name": "Optional" } }, - "UpdateProfile": { + "UsageName": { "type": null, "methods": { "__init__": { @@ -14532,13 +22575,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "update_mode": { - "default": "none", - "param_type": "keyword_only" - }, - "rolling_update_profile": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -14554,52 +22593,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { "default": null, - "param_type": "var_keyword" + "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "copy": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -14607,148 +22639,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "update_mode": { - "attr_type": "update_mode" }, - "rolling_update_profile": { - "attr_type": "rolling_update_profile" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "UpdateProfileRollingUpdateProfile": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "max_batch_percent": { - "default": "none", - "param_type": "keyword_only" - }, - "max_unhealthy_percent": { - "default": "none", - "param_type": "keyword_only" - }, - "pause_time_between_batches": { - "default": "none", - "param_type": "keyword_only" - }, - "in_place_update": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -14757,27 +22722,24 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "max_batch_percent": { - "attr_type": "max_batch_percent" - }, - "max_unhealthy_percent": { - "attr_type": "max_unhealthy_percent" - }, - "pause_time_between_batches": { - "attr_type": "pause_time_between_batches" - }, - "in_place_update": { - "attr_type": "in_place_update" - }, - "additional_properties": { - "attr_type": null - } + "value": "Optional", + "localized_value": "Optional" } }, - "Usage": { + "UserAssignedIdentities": { "type": null, "methods": { "__init__": { @@ -14786,6 +22748,10 @@ "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -14800,52 +22766,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -14853,141 +22812,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "id": { - "attr_type": null - }, - "unit": { - "attr_type": null - }, - "current_value": { - "attr_type": null - }, - "limit": { - "attr_type": null - }, - "name": { - "attr_type": null }, - "additional_properties": { - "attr_type": null - } - } - }, - "UsageListResult": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -14996,18 +22895,24 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "value": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } + "principal_id": "Optional", + "client_id": "Optional" } }, - "UsageName": { + "Volume": { "type": null, "methods": { "__init__": { @@ -15016,13 +22921,75 @@ "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "azure_file": { + "type": "Optional[_models.AzureFileVolume]", + "default": null, + "param_type": "keyword_only" + }, + "empty_dir": { + "type": "Optional[Any]", + "default": null, + "param_type": "keyword_only" + }, + "secret": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "secret_reference": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "git_repo": { + "type": "Optional[_models.GitRepoVolume]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -15030,52 +22997,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -15083,132 +23043,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": null }, - "localized_value": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "UserAssignedIdentities": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -15217,21 +23126,28 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "principal_id": { - "attr_type": null - }, - "client_id": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } + "name": null, + "azure_file": "Optional", + "empty_dir": "Optional", + "secret": "Optional", + "secret_reference": "Optional", + "git_repo": "Optional" } }, - "Volume": { + "VolumeMount": { "type": null, "methods": { "__init__": { @@ -15240,29 +23156,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { + "args": { "default": null, - "param_type": "keyword_only" - }, - "azure_file": { - "default": "none", - "param_type": "keyword_only" - }, - "empty_dir": { - "default": "none", - "param_type": "keyword_only" - }, - "secret": { - "default": "none", - "param_type": "keyword_only" - }, - "secret_reference": { - "default": "none", - "param_type": "keyword_only" - }, - "git_repo": { - "default": "none", - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -15270,7 +23166,50 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "mount_path": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "read_only": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] }, "as_dict": { "parameters": { @@ -15278,52 +23217,45 @@ "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { + "exclude_readonly": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" + "param_type": "keyword_only" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "clear": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "default": { "default": "none", "param_type": "positional_or_keyword" } @@ -15331,156 +23263,81 @@ "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "items": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "azure_file": { - "attr_type": "azure_file" - }, - "empty_dir": { - "attr_type": "empty_dir" - }, - "secret": { - "attr_type": "secret" }, - "secret_reference": { - "attr_type": "secret_reference" - }, - "git_repo": { - "attr_type": "git_repo" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "VolumeMount": { - "type": null, - "methods": { - "__init__": { + "keys": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" - }, - "name": { - "default": null, - "param_type": "keyword_only" - }, - "mount_path": { - "default": null, - "param_type": "keyword_only" - }, - "read_only": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "as_dict": { + "pop": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "default": { + "default": "object", "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "deserialize": { + "popitem": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "setdefault": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "key": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "default": { + "default": "object", "param_type": "positional_or_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -15489,21 +23346,22 @@ }, "is_async": false, "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": { - "name": { - "attr_type": "name" - }, - "mount_path": { - "attr_type": "mount_path" - }, - "read_only": { - "attr_type": "read_only" - }, - "additional_properties": { - "attr_type": null - } + "name": null, + "mount_path": null, + "read_only": "Optional" } } }, @@ -15511,7 +23369,7 @@ }, "azure.mgmt.containerinstance.aio": { "class_nodes": { - "ContainerInstanceManagementClient": { + "ContainerInstanceClient": { "type": null, "methods": { "__init__": { @@ -15532,8 +23390,40 @@ "default": "none", "param_type": "positional_or_keyword" }, - "cloud_setting": { - "default": "none", + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "send_request": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "stream": { + "default": "bool", "param_type": "keyword_only" }, "kwargs": { @@ -15543,45 +23433,35 @@ }, "is_async": false, "overloads": [] - }, - "close": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - } - }, - "is_async": true, - "overloads": [] } }, "properties": { "client_side_validation": { "attr_type": false }, + "operations": { + "attr_type": "Operations" + }, "container_groups": { "attr_type": "ContainerGroupsOperations" }, - "operations": { - "attr_type": "Operations" + "ngroups": { + "attr_type": "NGroupsOperations" }, - "location": { - "attr_type": "LocationOperations" + "cg_profile": { + "attr_type": "CGProfileOperations" }, "containers": { "attr_type": "ContainersOperations" }, - "subnet_service_association_link": { - "attr_type": "SubnetServiceAssociationLinkOperations" - }, - "ngroups": { - "attr_type": "NGroupsOperations" - }, "cg_profiles": { "attr_type": "CGProfilesOperations" }, - "cg_profile": { - "attr_type": "CGProfileOperations" + "location": { + "attr_type": "LocationOperations" + }, + "subnet_service_association_link": { + "attr_type": "SubnetServiceAssociationLinkOperations" } } } @@ -15667,6 +23547,37 @@ "is_async": true, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, { "parameters": { "self": { @@ -15848,6 +23759,37 @@ "is_async": true, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_profile_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, { "parameters": { "self": { @@ -16017,6 +23959,37 @@ "is_async": true, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, { "parameters": { "self": { @@ -16270,6 +24243,37 @@ "is_async": true, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, { "parameters": { "self": { @@ -16418,6 +24422,42 @@ "is_async": true, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_exec_request": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, { "parameters": { "self": { @@ -16476,11 +24516,11 @@ }, "tail": { "default": "none", - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, "timestamps": { "default": "none", - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, "kwargs": { "default": null, @@ -16648,6 +24688,37 @@ "is_async": true, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, { "parameters": { "self": { @@ -16803,6 +24874,37 @@ "is_async": true, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "ngroups_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "n_group": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, { "parameters": { "self": { From 400ab2d851773713788a22dd448ff3476c485fbd Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Wed, 25 Mar 2026 16:56:59 +0800 Subject: [PATCH 4/7] changelog from report comparison --- .../azure-mgmt-containerinstance/CHANGELOG.md | 80 ++++++++++++++++++- 1 file changed, 78 insertions(+), 2 deletions(-) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md index da08a5183828..f8b8ff4343d7 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md +++ b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md @@ -2,9 +2,85 @@ ## 10.2.0b2 (2026-03-25) -### Other Changes +### Features Added + + - Model `ContainerGroup` added property `properties` + - Model `ContainerGroup` added property `system_data` + - Model `InitContainerDefinition` added property `properties` + - Model `ListResultContainerGroup` added property `properties` + - Model `NGroupPatch` added property `properties` + - Added model `ArmResource` + - Added model `CloudError` + - Added model `ContainerGroupPropertiesProperties` + - Added model `ContainerGroupPropertiesPropertiesInstanceView` + - Added model `InitContainerPropertiesDefinition` + - Added model `ListResultContainerGroupPropertiesProperties` + - Added model `ProxyResource` + +### Breaking Changes - - Migrated from Swagger to TypeSpec + - Deleted or renamed client `ContainerInstanceManagementClient` + - Model `ContainerGroup` deleted or renamed its instance variable `provisioning_state` + - Model `ContainerGroup` deleted or renamed its instance variable `secret_references` + - Model `ContainerGroup` deleted or renamed its instance variable `containers` + - Model `ContainerGroup` deleted or renamed its instance variable `image_registry_credentials` + - Model `ContainerGroup` deleted or renamed its instance variable `restart_policy` + - Model `ContainerGroup` deleted or renamed its instance variable `ip_address` + - Model `ContainerGroup` deleted or renamed its instance variable `os_type` + - Model `ContainerGroup` deleted or renamed its instance variable `volumes` + - Model `ContainerGroup` deleted or renamed its instance variable `instance_view` + - Model `ContainerGroup` deleted or renamed its instance variable `diagnostics` + - Model `ContainerGroup` deleted or renamed its instance variable `subnet_ids` + - Model `ContainerGroup` deleted or renamed its instance variable `dns_config` + - Model `ContainerGroup` deleted or renamed its instance variable `sku` + - Model `ContainerGroup` deleted or renamed its instance variable `encryption_properties` + - Model `ContainerGroup` deleted or renamed its instance variable `init_containers` + - Model `ContainerGroup` deleted or renamed its instance variable `extensions` + - Model `ContainerGroup` deleted or renamed its instance variable `confidential_compute_properties` + - Model `ContainerGroup` deleted or renamed its instance variable `priority` + - Model `ContainerGroup` deleted or renamed its instance variable `identity_acls` + - Model `ContainerGroup` deleted or renamed its instance variable `container_group_profile` + - Model `ContainerGroup` deleted or renamed its instance variable `standby_pool_profile` + - Model `ContainerGroup` deleted or renamed its instance variable `is_created_from_standby_pool` + - Model `InitContainerDefinition` deleted or renamed its instance variable `image` + - Model `InitContainerDefinition` deleted or renamed its instance variable `command` + - Model `InitContainerDefinition` deleted or renamed its instance variable `environment_variables` + - Model `InitContainerDefinition` deleted or renamed its instance variable `instance_view` + - Model `InitContainerDefinition` deleted or renamed its instance variable `volume_mounts` + - Model `InitContainerDefinition` deleted or renamed its instance variable `security_context` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `provisioning_state` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `secret_references` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `containers` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `image_registry_credentials` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `restart_policy` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `ip_address` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `os_type` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `volumes` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `diagnostics` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `subnet_ids` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `dns_config` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `sku` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `encryption_properties` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `init_containers` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `extensions` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `confidential_compute_properties` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `priority` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `identity_acls` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `container_group_profile` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `standby_pool_profile` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `is_created_from_standby_pool` + - Model `NGroupPatch` deleted or renamed its instance variable `elastic_profile` + - Model `NGroupPatch` deleted or renamed its instance variable `placement_profile` + - Model `NGroupPatch` deleted or renamed its instance variable `container_group_profiles` + - Model `NGroupPatch` deleted or renamed its instance variable `provisioning_state` + - Model `NGroupPatch` deleted or renamed its instance variable `update_profile` + - Deleted or renamed model `ContainerGroupProperties` + - Deleted or renamed model `ContainerGroupPropertiesInstanceView` + - Deleted or renamed model `ListResultContainerGroupProperties` + - Deleted or renamed model `NGroupSkus` + - Deleted or renamed model `NGroupsSkusList` + - Method `ContainersOperations.list_logs` changed its parameter `tail` from `positional_or_keyword` to `keyword_only` + - Method `ContainersOperations.list_logs` changed its parameter `timestamps` from `positional_or_keyword` to `keyword_only` ## 10.2.0 (2026-03-25) From fa9f9f14dd685e2276656dcd5f391bfc60d3e34e Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Date: Thu, 26 Mar 2026 16:17:40 +0800 Subject: [PATCH 5/7] Update CHANGELOG.md --- .../azure-mgmt-containerinstance/CHANGELOG.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md index f8b8ff4343d7..2823c16803c1 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md +++ b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md @@ -19,7 +19,9 @@ ### Breaking Changes - - Deleted or renamed client `ContainerInstanceManagementClient` + - Renamed model `ContainerGroupProperties` to `ContainerGroupPropertiesProperties` + - Renamed model `ListResultContainerGroupProperties` to `ListResultContainerGroupPropertiesProperties` + - Renamed model `ContainerGroupPropertiesInstanceView` to `ContainerGroupPropertiesPropertiesInstanceView` - Model `ContainerGroup` deleted or renamed its instance variable `provisioning_state` - Model `ContainerGroup` deleted or renamed its instance variable `secret_references` - Model `ContainerGroup` deleted or renamed its instance variable `containers` @@ -74,9 +76,6 @@ - Model `NGroupPatch` deleted or renamed its instance variable `container_group_profiles` - Model `NGroupPatch` deleted or renamed its instance variable `provisioning_state` - Model `NGroupPatch` deleted or renamed its instance variable `update_profile` - - Deleted or renamed model `ContainerGroupProperties` - - Deleted or renamed model `ContainerGroupPropertiesInstanceView` - - Deleted or renamed model `ListResultContainerGroupProperties` - Deleted or renamed model `NGroupSkus` - Deleted or renamed model `NGroupsSkusList` - Method `ContainersOperations.list_logs` changed its parameter `tail` from `positional_or_keyword` to `keyword_only` From 58927ad366b5af3d225191866ca5c8274cd4da67 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Thu, 26 Mar 2026 17:05:58 +0800 Subject: [PATCH 6/7] generated from typespec:1d786ebb3dd70468c532496d3e4b12fb1c936b00 --- .../azure-mgmt-containerinstance/CHANGELOG.md | 81 +---------- .../_metadata.json | 4 +- .../apiview-properties.json | 8 +- .../azure/mgmt/containerinstance/__init__.py | 4 +- .../azure/mgmt/containerinstance/_client.py | 10 +- .../mgmt/containerinstance/_configuration.py | 8 +- .../mgmt/containerinstance/aio/__init__.py | 4 +- .../mgmt/containerinstance/aio/_client.py | 10 +- .../containerinstance/aio/_configuration.py | 8 +- .../aio/operations/_operations.py | 50 ++++--- .../mgmt/containerinstance/models/__init__.py | 12 +- .../mgmt/containerinstance/models/_models.py | 129 ++++++++---------- .../operations/_operations.py | 50 ++++--- .../code_report_typespec.json | 70 ++++++++-- .../generated_samples/cached_images_list.py | 4 +- .../generated_samples/capabilities_list.py | 4 +- .../generated_samples/container_attach.py | 4 +- .../generated_samples/container_exec.py | 4 +- .../container_group_create_confidential.py | 4 +- ...ner_group_create_or_update_standby_pool.py | 4 +- .../container_group_encryption_properties.py | 4 +- .../container_group_extensions.py | 4 +- ...le_create_or_update_create_confidential.py | 4 +- ..._create_or_update_encryption_properties.py | 4 +- ...oup_profile_create_or_update_extensions.py | 4 +- ...er_group_profile_get_by_revision_number.py | 4 +- ...tainer_group_profile_list_all_revisions.py | 4 +- ...ntainer_group_profiles_create_or_update.py | 4 +- .../container_group_profiles_delete.py | 4 +- .../container_group_profiles_get.py | 4 +- .../container_group_profiles_get_priority.py | 4 +- .../container_group_profiles_list.py | 4 +- ...r_group_profiles_list_by_resource_group.py | 4 +- .../container_group_profiles_patch.py | 4 +- .../container_group_usage.py | 4 +- .../container_groups_create_or_update.py | 4 +- ...roups_create_or_update_secret_reference.py | 4 +- .../container_groups_create_priority.py | 4 +- .../container_groups_delete.py | 4 +- .../container_groups_get_failed.py | 4 +- .../container_groups_get_priority.py | 4 +- .../container_groups_get_succeeded.py | 4 +- .../container_groups_list.py | 4 +- ...container_groups_list_by_resource_group.py | 4 +- .../container_groups_restart.py | 4 +- .../container_groups_start.py | 4 +- .../container_groups_stop.py | 4 +- .../container_groups_update.py | 4 +- .../generated_samples/container_list_logs.py | 4 +- .../generated_samples/operations_list.py | 4 +- .../subnet_service_association_link_delete.py | 4 +- .../generated_tests/conftest.py | 28 ++-- ...tance_management_cg_profile_operations.py} | 6 +- ...management_cg_profile_operations_async.py} | 6 +- ...ance_management_cg_profiles_operations.py} | 6 +- ...anagement_cg_profiles_operations_async.py} | 6 +- ...management_container_groups_operations.py} | 8 +- ...ment_container_groups_operations_async.py} | 8 +- ...tance_management_containers_operations.py} | 6 +- ...management_containers_operations_async.py} | 6 +- ...nstance_management_location_operations.py} | 6 +- ...e_management_location_operations_async.py} | 6 +- ...instance_management_ngroups_operations.py} | 6 +- ...ce_management_ngroups_operations_async.py} | 6 +- ...ntainer_instance_management_operations.py} | 6 +- ...r_instance_management_operations_async.py} | 6 +- ...et_service_association_link_operations.py} | 6 +- ...vice_association_link_operations_async.py} | 6 +- .../tsp-location.yaml | 2 +- 69 files changed, 361 insertions(+), 365 deletions(-) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_cg_profile_operations.py => test_container_instance_management_cg_profile_operations.py} (98%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_cg_profile_operations_async.py => test_container_instance_management_cg_profile_operations_async.py} (98%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_cg_profiles_operations.py => test_container_instance_management_cg_profiles_operations.py} (85%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_cg_profiles_operations_async.py => test_container_instance_management_cg_profiles_operations_async.py} (85%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_container_groups_operations.py => test_container_instance_management_container_groups_operations.py} (98%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_container_groups_operations_async.py => test_container_instance_management_container_groups_operations_async.py} (98%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_containers_operations.py => test_container_instance_management_containers_operations.py} (89%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_containers_operations_async.py => test_container_instance_management_containers_operations_async.py} (88%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_location_operations.py => test_container_instance_management_location_operations.py} (88%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_location_operations_async.py => test_container_instance_management_location_operations_async.py} (87%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_ngroups_operations.py => test_container_instance_management_ngroups_operations.py} (98%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_ngroups_operations_async.py => test_container_instance_management_ngroups_operations_async.py} (98%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_operations.py => test_container_instance_management_operations.py} (81%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_operations_async.py => test_container_instance_management_operations_async.py} (81%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_subnet_service_association_link_operations.py => test_container_instance_management_subnet_service_association_link_operations.py} (82%) rename sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/{test_container_instance_subnet_service_association_link_operations_async.py => test_container_instance_management_subnet_service_association_link_operations_async.py} (82%) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md index 2823c16803c1..b372d119881c 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md +++ b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md @@ -1,85 +1,8 @@ # Release History -## 10.2.0b2 (2026-03-25) +## 10.2.0b2 (2026-03-26) -### Features Added - - - Model `ContainerGroup` added property `properties` - - Model `ContainerGroup` added property `system_data` - - Model `InitContainerDefinition` added property `properties` - - Model `ListResultContainerGroup` added property `properties` - - Model `NGroupPatch` added property `properties` - - Added model `ArmResource` - - Added model `CloudError` - - Added model `ContainerGroupPropertiesProperties` - - Added model `ContainerGroupPropertiesPropertiesInstanceView` - - Added model `InitContainerPropertiesDefinition` - - Added model `ListResultContainerGroupPropertiesProperties` - - Added model `ProxyResource` - -### Breaking Changes - - - Renamed model `ContainerGroupProperties` to `ContainerGroupPropertiesProperties` - - Renamed model `ListResultContainerGroupProperties` to `ListResultContainerGroupPropertiesProperties` - - Renamed model `ContainerGroupPropertiesInstanceView` to `ContainerGroupPropertiesPropertiesInstanceView` - - Model `ContainerGroup` deleted or renamed its instance variable `provisioning_state` - - Model `ContainerGroup` deleted or renamed its instance variable `secret_references` - - Model `ContainerGroup` deleted or renamed its instance variable `containers` - - Model `ContainerGroup` deleted or renamed its instance variable `image_registry_credentials` - - Model `ContainerGroup` deleted or renamed its instance variable `restart_policy` - - Model `ContainerGroup` deleted or renamed its instance variable `ip_address` - - Model `ContainerGroup` deleted or renamed its instance variable `os_type` - - Model `ContainerGroup` deleted or renamed its instance variable `volumes` - - Model `ContainerGroup` deleted or renamed its instance variable `instance_view` - - Model `ContainerGroup` deleted or renamed its instance variable `diagnostics` - - Model `ContainerGroup` deleted or renamed its instance variable `subnet_ids` - - Model `ContainerGroup` deleted or renamed its instance variable `dns_config` - - Model `ContainerGroup` deleted or renamed its instance variable `sku` - - Model `ContainerGroup` deleted or renamed its instance variable `encryption_properties` - - Model `ContainerGroup` deleted or renamed its instance variable `init_containers` - - Model `ContainerGroup` deleted or renamed its instance variable `extensions` - - Model `ContainerGroup` deleted or renamed its instance variable `confidential_compute_properties` - - Model `ContainerGroup` deleted or renamed its instance variable `priority` - - Model `ContainerGroup` deleted or renamed its instance variable `identity_acls` - - Model `ContainerGroup` deleted or renamed its instance variable `container_group_profile` - - Model `ContainerGroup` deleted or renamed its instance variable `standby_pool_profile` - - Model `ContainerGroup` deleted or renamed its instance variable `is_created_from_standby_pool` - - Model `InitContainerDefinition` deleted or renamed its instance variable `image` - - Model `InitContainerDefinition` deleted or renamed its instance variable `command` - - Model `InitContainerDefinition` deleted or renamed its instance variable `environment_variables` - - Model `InitContainerDefinition` deleted or renamed its instance variable `instance_view` - - Model `InitContainerDefinition` deleted or renamed its instance variable `volume_mounts` - - Model `InitContainerDefinition` deleted or renamed its instance variable `security_context` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `provisioning_state` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `secret_references` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `containers` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `image_registry_credentials` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `restart_policy` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `ip_address` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `os_type` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `volumes` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `diagnostics` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `subnet_ids` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `dns_config` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `sku` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `encryption_properties` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `init_containers` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `extensions` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `confidential_compute_properties` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `priority` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `identity_acls` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `container_group_profile` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `standby_pool_profile` - - Model `ListResultContainerGroup` deleted or renamed its instance variable `is_created_from_standby_pool` - - Model `NGroupPatch` deleted or renamed its instance variable `elastic_profile` - - Model `NGroupPatch` deleted or renamed its instance variable `placement_profile` - - Model `NGroupPatch` deleted or renamed its instance variable `container_group_profiles` - - Model `NGroupPatch` deleted or renamed its instance variable `provisioning_state` - - Model `NGroupPatch` deleted or renamed its instance variable `update_profile` - - Deleted or renamed model `NGroupSkus` - - Deleted or renamed model `NGroupsSkusList` - - Method `ContainersOperations.list_logs` changed its parameter `tail` from `positional_or_keyword` to `keyword_only` - - Method `ContainersOperations.list_logs` changed its parameter `timestamps` from `positional_or_keyword` to `keyword_only` +skip changelog generation ## 10.2.0 (2026-03-25) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json b/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json index 5858712cb66f..51fb214f5517 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json +++ b/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json @@ -3,8 +3,8 @@ "apiVersions": { "Microsoft.ContainerInstance": "2025-09-01" }, - "commit": "87fd8965461f54b715bb5762be007bb1d10f6f82", + "commit": "1d786ebb3dd70468c532496d3e4b12fb1c936b00", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance", - "emitterVersion": "0.61.0" + "emitterVersion": "0.61.1" } \ No newline at end of file diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json b/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json index bff929d8a954..fbeb4297f13d 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json +++ b/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json @@ -28,8 +28,8 @@ "azure.mgmt.containerinstance.models.ContainerGroupProfileProperties": "Microsoft.ContainerInstance.ContainerGroupProfileProperties", "azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition": "Microsoft.ContainerInstance.ContainerGroupProfileReferenceDefinition", "azure.mgmt.containerinstance.models.ContainerGroupProfileStub": "Microsoft.ContainerInstance.ContainerGroupProfileStub", - "azure.mgmt.containerinstance.models.ContainerGroupPropertiesProperties": "Microsoft.ContainerInstance.ContainerGroupPropertiesProperties", - "azure.mgmt.containerinstance.models.ContainerGroupPropertiesPropertiesInstanceView": "Microsoft.ContainerInstance.ContainerGroupPropertiesPropertiesInstanceView", + "azure.mgmt.containerinstance.models.ContainerGroupProperties": "Microsoft.ContainerInstance.ContainerGroupPropertiesProperties", + "azure.mgmt.containerinstance.models.ContainerGroupPropertiesInstanceView": "Microsoft.ContainerInstance.ContainerGroupPropertiesPropertiesInstanceView", "azure.mgmt.containerinstance.models.ContainerGroupSubnetId": "Microsoft.ContainerInstance.ContainerGroupSubnetId", "azure.mgmt.containerinstance.models.ContainerHttpGet": "Microsoft.ContainerInstance.ContainerHttpGet", "azure.mgmt.containerinstance.models.ContainerPort": "Microsoft.ContainerInstance.ContainerPort", @@ -61,8 +61,9 @@ "azure.mgmt.containerinstance.models.InitContainerPropertiesDefinition": "Microsoft.ContainerInstance.InitContainerPropertiesDefinition", "azure.mgmt.containerinstance.models.InitContainerPropertiesDefinitionInstanceView": "Microsoft.ContainerInstance.InitContainerPropertiesDefinitionInstanceView", "azure.mgmt.containerinstance.models.IpAddress": "Microsoft.ContainerInstance.IpAddress", + "azure.mgmt.containerinstance.models.Resource": "Microsoft.ContainerInstance.Resource", "azure.mgmt.containerinstance.models.ListResultContainerGroup": "Microsoft.ContainerInstance.ListResultContainerGroup", - "azure.mgmt.containerinstance.models.ListResultContainerGroupPropertiesProperties": "Microsoft.ContainerInstance.ListResultContainerGroupPropertiesProperties", + "azure.mgmt.containerinstance.models.ListResultContainerGroupProperties": "Microsoft.ContainerInstance.ListResultContainerGroupPropertiesProperties", "azure.mgmt.containerinstance.models.LoadBalancer": "Microsoft.ContainerInstance.LoadBalancer", "azure.mgmt.containerinstance.models.LoadBalancerBackendAddressPool": "Microsoft.ContainerInstance.LoadBalancerBackendAddressPool", "azure.mgmt.containerinstance.models.LogAnalytics": "Microsoft.ContainerInstance.LogAnalytics", @@ -80,7 +81,6 @@ "azure.mgmt.containerinstance.models.OperationDisplay": "Microsoft.ContainerInstance.OperationDisplay", "azure.mgmt.containerinstance.models.PlacementProfile": "Microsoft.ContainerInstance.PlacementProfile", "azure.mgmt.containerinstance.models.Port": "Microsoft.ContainerInstance.Port", - "azure.mgmt.containerinstance.models.Resource": "Microsoft.ContainerInstance.Resource", "azure.mgmt.containerinstance.models.ResourceLimits": "Microsoft.ContainerInstance.ResourceLimits", "azure.mgmt.containerinstance.models.ResourceRequests": "Microsoft.ContainerInstance.ResourceRequests", "azure.mgmt.containerinstance.models.ResourceRequirements": "Microsoft.ContainerInstance.ResourceRequirements", diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/__init__.py index 535cdfaa3cc0..562003c63ff7 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/__init__.py @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._client import ContainerInstanceClient # type: ignore +from ._client import ContainerInstanceManagementClient # type: ignore from ._version import VERSION __version__ = VERSION @@ -25,7 +25,7 @@ from ._patch import patch_sdk as _patch_sdk __all__ = [ - "ContainerInstanceClient", + "ContainerInstanceManagementClient", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_client.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_client.py index 6024554bc5f8..42f05afe335f 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_client.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_client.py @@ -17,7 +17,7 @@ from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy from azure.mgmt.core.tools import get_arm_endpoints -from ._configuration import ContainerInstanceClientConfiguration +from ._configuration import ContainerInstanceManagementClientConfiguration from ._utils.serialization import Deserializer, Serializer from .operations import ( CGProfileOperations, @@ -35,7 +35,7 @@ from azure.core.credentials import TokenCredential -class ContainerInstanceClient: # pylint: disable=too-many-instance-attributes +class ContainerInstanceManagementClient: # pylint: disable=too-many-instance-attributes """// (missing-service-description) Add service description. :ivar operations: Operations operations @@ -64,8 +64,8 @@ class ContainerInstanceClient: # pylint: disable=too-many-instance-attributes :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-09-01" - and None. Default value is "2025-09-01". Note that overriding this default value may result in + :keyword api_version: The API version to use for this operation. Known values are "2025-09-01". + Default value is "2025-09-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no @@ -87,7 +87,7 @@ def __init__( if not base_url: base_url = _endpoints["resource_manager"] credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"]) - self._config = ContainerInstanceClientConfiguration( + self._config = ContainerInstanceManagementClientConfiguration( credential=credential, subscription_id=subscription_id, base_url=cast(str, base_url), diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py index b99db49fb1ea..82c6a540e0ad 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py @@ -18,8 +18,8 @@ from azure.core.credentials import TokenCredential -class ContainerInstanceClientConfiguration: # pylint: disable=too-many-instance-attributes - """Configuration for ContainerInstanceClient. +class ContainerInstanceManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long + """Configuration for ContainerInstanceManagementClient. Note that all parameters used to create this instance are saved as instance attributes. @@ -33,8 +33,8 @@ class ContainerInstanceClientConfiguration: # pylint: disable=too-many-instance :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-09-01" - and None. Default value is "2025-09-01". Note that overriding this default value may result in + :keyword api_version: The API version to use for this operation. Known values are "2025-09-01". + Default value is "2025-09-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/__init__.py index e39bdc5cf069..c78912a8c047 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/__init__.py @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._client import ContainerInstanceClient # type: ignore +from ._client import ContainerInstanceManagementClient # type: ignore try: from ._patch import __all__ as _patch_all @@ -22,7 +22,7 @@ from ._patch import patch_sdk as _patch_sdk __all__ = [ - "ContainerInstanceClient", + "ContainerInstanceManagementClient", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_client.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_client.py index 617e31bc1c60..d52d4c4860a2 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_client.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_client.py @@ -18,7 +18,7 @@ from azure.mgmt.core.tools import get_arm_endpoints from .._utils.serialization import Deserializer, Serializer -from ._configuration import ContainerInstanceClientConfiguration +from ._configuration import ContainerInstanceManagementClientConfiguration from .operations import ( CGProfileOperations, CGProfilesOperations, @@ -35,7 +35,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class ContainerInstanceClient: # pylint: disable=too-many-instance-attributes +class ContainerInstanceManagementClient: # pylint: disable=too-many-instance-attributes """// (missing-service-description) Add service description. :ivar operations: Operations operations @@ -65,8 +65,8 @@ class ContainerInstanceClient: # pylint: disable=too-many-instance-attributes :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-09-01" - and None. Default value is "2025-09-01". Note that overriding this default value may result in + :keyword api_version: The API version to use for this operation. Known values are "2025-09-01". + Default value is "2025-09-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no @@ -88,7 +88,7 @@ def __init__( if not base_url: base_url = _endpoints["resource_manager"] credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"]) - self._config = ContainerInstanceClientConfiguration( + self._config = ContainerInstanceManagementClientConfiguration( credential=credential, subscription_id=subscription_id, base_url=cast(str, base_url), diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_configuration.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_configuration.py index 78c221df0aa6..3d5b2c5a4c8e 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_configuration.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_configuration.py @@ -18,8 +18,8 @@ from azure.core.credentials_async import AsyncTokenCredential -class ContainerInstanceClientConfiguration: # pylint: disable=too-many-instance-attributes - """Configuration for ContainerInstanceClient. +class ContainerInstanceManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long + """Configuration for ContainerInstanceManagementClient. Note that all parameters used to create this instance are saved as instance attributes. @@ -33,8 +33,8 @@ class ContainerInstanceClientConfiguration: # pylint: disable=too-many-instance :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-09-01" - and None. Default value is "2025-09-01". Note that overriding this default value may result in + :keyword api_version: The API version to use for this operation. Known values are "2025-09-01". + Default value is "2025-09-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_operations.py index 3ec61200cf70..3b7ae997d13d 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_operations.py @@ -73,7 +73,7 @@ build_operations_list_request, build_subnet_service_association_link_delete_request, ) -from .._configuration import ContainerInstanceClientConfiguration +from .._configuration import ContainerInstanceManagementClientConfiguration T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] @@ -87,14 +87,16 @@ class Operations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s :attr:`operations` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -194,14 +196,16 @@ class ContainerGroupsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s :attr:`container_groups` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -1414,14 +1418,16 @@ class NGroupsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s :attr:`ngroups` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -2626,14 +2632,16 @@ class CGProfileOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s :attr:`cg_profile` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -3331,14 +3339,16 @@ class ContainersOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s :attr:`containers` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -3716,14 +3726,16 @@ class CGProfilesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s :attr:`cg_profiles` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -3926,14 +3938,16 @@ class LocationOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s :attr:`location` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -4229,14 +4243,16 @@ class SubnetServiceAssociationLinkOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s :attr:`subnet_service_association_link` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py index 60f94ba53897..1f084fe39986 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py @@ -40,8 +40,8 @@ ContainerGroupProfileProperties, ContainerGroupProfileReferenceDefinition, ContainerGroupProfileStub, - ContainerGroupPropertiesProperties, - ContainerGroupPropertiesPropertiesInstanceView, + ContainerGroupProperties, + ContainerGroupPropertiesInstanceView, ContainerGroupSubnetId, ContainerHttpGet, ContainerPort, @@ -74,7 +74,7 @@ InitContainerPropertiesDefinitionInstanceView, IpAddress, ListResultContainerGroup, - ListResultContainerGroupPropertiesProperties, + ListResultContainerGroupProperties, LoadBalancer, LoadBalancerBackendAddressPool, LogAnalytics, @@ -165,8 +165,8 @@ "ContainerGroupProfileProperties", "ContainerGroupProfileReferenceDefinition", "ContainerGroupProfileStub", - "ContainerGroupPropertiesProperties", - "ContainerGroupPropertiesPropertiesInstanceView", + "ContainerGroupProperties", + "ContainerGroupPropertiesInstanceView", "ContainerGroupSubnetId", "ContainerHttpGet", "ContainerPort", @@ -199,7 +199,7 @@ "InitContainerPropertiesDefinitionInstanceView", "IpAddress", "ListResultContainerGroup", - "ListResultContainerGroupPropertiesProperties", + "ListResultContainerGroupProperties", "LoadBalancer", "LoadBalancerBackendAddressPool", "LogAnalytics", diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models.py index 686ca592afaa..282f1d93aac4 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_models.py @@ -678,7 +678,7 @@ class ContainerGroup(ProxyResource): :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. :vartype system_data: ~azure.mgmt.containerinstance.models.SystemData - :ivar location: The resource location. Required. + :ivar location: The resource location. :vartype location: str :ivar tags: The resource tags. :vartype tags: dict[str, str] @@ -687,11 +687,11 @@ class ContainerGroup(ProxyResource): :ivar identity: The identity of the container group, if configured. :vartype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity :ivar properties: The container group properties. Required. - :vartype properties: ~azure.mgmt.containerinstance.models.ContainerGroupPropertiesProperties + :vartype properties: ~azure.mgmt.containerinstance.models.ContainerGroupProperties """ - location: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The resource location. Required.""" + location: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource location.""" tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The resource tags.""" zones: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) @@ -700,7 +700,7 @@ class ContainerGroup(ProxyResource): visibility=["read", "create", "update", "delete", "query"] ) """The identity of the container group, if configured.""" - properties: "_models.ContainerGroupPropertiesProperties" = rest_field( + properties: "_models.ContainerGroupProperties" = rest_field( visibility=["read", "create", "update", "delete", "query"] ) """The container group properties. Required.""" @@ -734,8 +734,8 @@ class ContainerGroup(ProxyResource): def __init__( self, *, - location: str, - properties: "_models.ContainerGroupPropertiesProperties", + properties: "_models.ContainerGroupProperties", + location: Optional[str] = None, tags: Optional[dict[str, str]] = None, zones: Optional[list[str]] = None, identity: Optional["_models.ContainerGroupIdentity"] = None, @@ -1241,7 +1241,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ContainerGroupPropertiesProperties(_Model): +class ContainerGroupProperties(_Model): """The container group properties. :ivar provisioning_state: The provisioning state of the container group. This only appears in @@ -1272,7 +1272,7 @@ class ContainerGroupPropertiesProperties(_Model): :vartype volumes: list[~azure.mgmt.containerinstance.models.Volume] :ivar instance_view: The instance view of the container group. Only valid in response. :vartype instance_view: - ~azure.mgmt.containerinstance.models.ContainerGroupPropertiesPropertiesInstanceView + ~azure.mgmt.containerinstance.models.ContainerGroupPropertiesInstanceView :ivar diagnostics: The diagnostic information for a container group. :vartype diagnostics: ~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics :ivar subnet_ids: The subnet resource IDs for a container group. @@ -1337,7 +1337,7 @@ class ContainerGroupPropertiesProperties(_Model): \"Windows\" and \"Linux\".""" volumes: Optional[list["_models.Volume"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The list of volumes that can be mounted by containers in this container group.""" - instance_view: Optional["_models.ContainerGroupPropertiesPropertiesInstanceView"] = rest_field( + instance_view: Optional["_models.ContainerGroupPropertiesInstanceView"] = rest_field( name="instanceView", visibility=["read"] ) """The instance view of the container group. Only valid in response.""" @@ -1429,7 +1429,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ContainerGroupPropertiesPropertiesInstanceView(_Model): # pylint: disable=name-too-long +class ContainerGroupPropertiesInstanceView(_Model): """The instance view of the container group. Only valid in response. :ivar events: The events of this container group. @@ -2786,8 +2786,8 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ListResultContainerGroup(_Model): - """A container group part of the list result. +class Resource(_Model): + """The Resource model definition. :ivar id: The resource id. :vartype id: str @@ -2801,11 +2801,6 @@ class ListResultContainerGroup(_Model): :vartype tags: dict[str, str] :ivar zones: The zones for the container group. :vartype zones: list[str] - :ivar identity: The identity of the container group, if configured. - :vartype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity - :ivar properties: The container group properties. Required. - :vartype properties: - ~azure.mgmt.containerinstance.models.ListResultContainerGroupPropertiesProperties """ id: Optional[str] = rest_field(visibility=["read"]) @@ -2820,11 +2815,53 @@ class ListResultContainerGroup(_Model): """The resource tags.""" zones: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The zones for the container group.""" + + @overload + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[dict[str, str]] = None, + zones: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ListResultContainerGroup(Resource): + """A container group part of the list result. + + :ivar id: The resource id. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar zones: The zones for the container group. + :vartype zones: list[str] + :ivar identity: The identity of the container group, if configured. + :vartype identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity + :ivar properties: The container group properties. Required. + :vartype properties: ~azure.mgmt.containerinstance.models.ListResultContainerGroupProperties + """ + identity: Optional["_models.ContainerGroupIdentity"] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) """The identity of the container group, if configured.""" - properties: "_models.ListResultContainerGroupPropertiesProperties" = rest_field( + properties: "_models.ListResultContainerGroupProperties" = rest_field( visibility=["read", "create", "update", "delete", "query"] ) """The container group properties. Required.""" @@ -2857,7 +2894,7 @@ class ListResultContainerGroup(_Model): def __init__( self, *, - properties: "_models.ListResultContainerGroupPropertiesProperties", + properties: "_models.ListResultContainerGroupProperties", location: Optional[str] = None, tags: Optional[dict[str, str]] = None, zones: Optional[list[str]] = None, @@ -2893,7 +2930,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ListResultContainerGroupPropertiesProperties(_Model): # pylint: disable=name-too-long +class ListResultContainerGroupProperties(_Model): """The container group properties. :ivar provisioning_state: The provisioning state of the container group. This only appears in @@ -3878,56 +3915,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Resource(_Model): - """The Resource model definition. - - :ivar id: The resource id. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar zones: The zones for the container group. - :vartype zones: list[str] - """ - - id: Optional[str] = rest_field(visibility=["read"]) - """The resource id.""" - name: Optional[str] = rest_field(visibility=["read"]) - """The resource name.""" - type: Optional[str] = rest_field(visibility=["read"]) - """The resource type.""" - location: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The resource location.""" - tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The resource tags.""" - zones: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The zones for the container group.""" - - @overload - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[dict[str, str]] = None, - zones: Optional[list[str]] = None, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - - class ResourceLimits(_Model): """The resource limits. diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_operations.py index b3b0ad4dbb9b..2854eed5dc91 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_operations.py @@ -33,7 +33,7 @@ from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models as _models -from .._configuration import ContainerInstanceClientConfiguration +from .._configuration import ContainerInstanceManagementClientConfiguration from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer @@ -1002,14 +1002,16 @@ class Operations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s :attr:`operations` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -1109,14 +1111,16 @@ class ContainerGroupsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s :attr:`container_groups` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -2321,14 +2325,16 @@ class NGroupsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s :attr:`ngroups` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -3533,14 +3539,16 @@ class CGProfileOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s :attr:`cg_profile` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -4240,14 +4248,16 @@ class ContainersOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s :attr:`containers` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -4625,14 +4635,16 @@ class CGProfilesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s :attr:`cg_profiles` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -4835,14 +4847,16 @@ class LocationOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s :attr:`location` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @@ -5136,14 +5150,16 @@ class SubnetServiceAssociationLinkOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.containerinstance.ContainerInstanceClient`'s + :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s :attr:`subnet_service_association_link` attribute. """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerInstanceClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: ContainerInstanceManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/code_report_typespec.json b/sdk/containerinstance/azure-mgmt-containerinstance/code_report_typespec.json index cdf7a14d2b10..c9318ffcd1d4 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/code_report_typespec.json +++ b/sdk/containerinstance/azure-mgmt-containerinstance/code_report_typespec.json @@ -1,7 +1,7 @@ { "azure.mgmt.containerinstance": { "class_nodes": { - "ContainerInstanceClient": { + "ContainerInstanceManagementClient": { "type": null, "methods": { "__init__": { @@ -5566,13 +5566,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { - "type": "str", + "properties": { + "type": "_models.ContainerGroupProperties", "default": null, "param_type": "keyword_only" }, - "properties": { - "type": "_models.ContainerGroupPropertiesProperties", + "location": { + "type": "Optional[str]", "default": null, "param_type": "keyword_only" }, @@ -5761,7 +5761,7 @@ } }, "properties": { - "location": null, + "location": "Optional", "tags": "Optional", "zones": "Optional", "identity": "Optional", @@ -7530,7 +7530,7 @@ "container_group_properties": "Optional" } }, - "ContainerGroupPropertiesProperties": { + "ContainerGroupProperties": { "type": null, "methods": { "__init__": { @@ -7846,7 +7846,7 @@ "is_created_from_standby_pool": "Optional" } }, - "ContainerGroupPropertiesPropertiesInstanceView": { + "ContainerGroupPropertiesInstanceView": { "type": null, "methods": { "__init__": { @@ -15091,7 +15091,7 @@ "param_type": "positional_or_keyword" }, "properties": { - "type": "_models.ListResultContainerGroupPropertiesProperties", + "type": "_models.ListResultContainerGroupProperties", "default": null, "param_type": "keyword_only" }, @@ -15119,6 +15119,48 @@ "is_async": false, "return_type": null }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "zones": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, { "parameters": { "self": { @@ -15285,17 +15327,17 @@ } }, "properties": { + "identity": "Optional", + "properties": null, "id": "Optional", "name": "Optional", "type": "Optional", "location": "Optional", "tags": "Optional", - "zones": "Optional", - "identity": "Optional", - "properties": null + "zones": "Optional" } }, - "ListResultContainerGroupPropertiesProperties": { + "ListResultContainerGroupProperties": { "type": null, "methods": { "__init__": { @@ -23369,7 +23411,7 @@ }, "azure.mgmt.containerinstance.aio": { "class_nodes": { - "ContainerInstanceClient": { + "ContainerInstanceManagementClient": { "type": null, "methods": { "__init__": { diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/cached_images_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/cached_images_list.py index 1d3bb605daa8..6acbc9be332e 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/cached_images_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/cached_images_list.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py index b5a86396d86f..b673f01d2eff 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py index 4f4aa365bb05..35411a37d407 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py index 987593c0b617..62bd041bc423 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_confidential.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_confidential.py index 1c4725918305..b28860fee332 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_confidential.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_confidential.py @@ -9,7 +9,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -26,7 +26,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_or_update_standby_pool.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_or_update_standby_pool.py index 7d1640eb95e4..5cbb7123c834 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_or_update_standby_pool.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_create_or_update_standby_pool.py @@ -9,7 +9,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -26,7 +26,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_encryption_properties.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_encryption_properties.py index 23019c17bdf8..34429ecf3ca8 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_encryption_properties.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_encryption_properties.py @@ -9,7 +9,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -26,7 +26,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_extensions.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_extensions.py index d08ccfab4388..007e675c80d7 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_extensions.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_extensions.py @@ -9,7 +9,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -26,7 +26,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_create_confidential.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_create_confidential.py index b47c532cdd0b..4cda78f55fdf 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_create_confidential.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_create_confidential.py @@ -9,7 +9,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -26,7 +26,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_encryption_properties.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_encryption_properties.py index 4e72897d5453..2397953631a7 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_encryption_properties.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_encryption_properties.py @@ -9,7 +9,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -26,7 +26,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_extensions.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_extensions.py index b1f73e3e8162..4fe55eaf4279 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_extensions.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_create_or_update_extensions.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_get_by_revision_number.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_get_by_revision_number.py index 8908dff8ceed..536251ad8264 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_get_by_revision_number.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_get_by_revision_number.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_list_all_revisions.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_list_all_revisions.py index bb2eddc2d20b..5d74394bce16 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_list_all_revisions.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profile_list_all_revisions.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_create_or_update.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_create_or_update.py index 798eaa654824..9c6c91df6677 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_create_or_update.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_create_or_update.py @@ -9,7 +9,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -26,7 +26,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_delete.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_delete.py index 12cb2b8c13d4..cbd2feb3349d 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_delete.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_delete.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get.py index 460ec115b1ff..69a79fa95547 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get_priority.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get_priority.py index 7ca76ec35e86..35067a704e7d 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get_priority.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_get_priority.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list.py index d19e2dcf319f..09bdf885f340 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list_by_resource_group.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list_by_resource_group.py index 8a4904d01b94..9594923c6ba5 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list_by_resource_group.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_list_by_resource_group.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_patch.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_patch.py index 86409722c4a7..93186b3c373a 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_patch.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_profiles_patch.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_usage.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_usage.py index 1cb4d8eee63d..0d9b0efa57c0 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_usage.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_group_usage.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update.py index f6b75179e032..33883231c754 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update.py @@ -9,7 +9,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -26,7 +26,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_secret_reference.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_secret_reference.py index 7adf88496f88..80498e863319 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_secret_reference.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_secret_reference.py @@ -9,7 +9,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -26,7 +26,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_priority.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_priority.py index 0944522ac4ab..4f6e8eca1a13 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_priority.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_priority.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_delete.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_delete.py index 9714d64e1dc9..cdd618e5c946 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_delete.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_delete.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_failed.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_failed.py index ccb9ad556a0f..44684a04f2f6 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_failed.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_failed.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_priority.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_priority.py index 6e5972898f40..cf4f978901c8 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_priority.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_priority.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_succeeded.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_succeeded.py index 3ce89294ae4d..7dc3dfaf12f4 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_succeeded.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_succeeded.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list.py index f4d043a465e4..8dad07a01957 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list_by_resource_group.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list_by_resource_group.py index 5d98a127c333..739d80d3d5d9 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list_by_resource_group.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_list_by_resource_group.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_restart.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_restart.py index 8054536d7303..7d0390c9131e 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_restart.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_restart.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_start.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_start.py index f6b90b5d6513..20a6d590b0fd 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_start.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_start.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_stop.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_stop.py index 87c902493b54..4d15f5eba538 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_stop.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_stop.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_update.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_update.py index f94bcc40a9e0..bd0be6c9a733 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_update.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_update.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_list_logs.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_list_logs.py index 797334f30ec2..2f509155e3e2 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_list_logs.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_list_logs.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py index cdb2b2d5e9e4..16c92d41c2a2 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/subnet_service_association_link_delete.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/subnet_service_association_link_delete.py index 1556d1d8f6cb..22da00504f69 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/subnet_service_association_link_delete.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/subnet_service_association_link_delete.py @@ -8,7 +8,7 @@ from azure.identity import DefaultAzureCredential -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient """ # PREREQUISITES @@ -25,7 +25,7 @@ def main(): - client = ContainerInstanceClient( + client = ContainerInstanceManagementClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/conftest.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/conftest.py index 2097f76c8bb2..c71670816451 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/conftest.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/conftest.py @@ -21,14 +21,26 @@ # For security, please avoid record sensitive identity information in recordings @pytest.fixture(scope="session", autouse=True) def add_sanitizers(test_proxy): - containerinstance_subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - containerinstance_tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") - containerinstance_client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000") - containerinstance_client_secret = os.environ.get("AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000") - add_general_regex_sanitizer(regex=containerinstance_subscription_id, value="00000000-0000-0000-0000-000000000000") - add_general_regex_sanitizer(regex=containerinstance_tenant_id, value="00000000-0000-0000-0000-000000000000") - add_general_regex_sanitizer(regex=containerinstance_client_id, value="00000000-0000-0000-0000-000000000000") - add_general_regex_sanitizer(regex=containerinstance_client_secret, value="00000000-0000-0000-0000-000000000000") + containerinstancemanagement_subscription_id = os.environ.get( + "AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000" + ) + containerinstancemanagement_tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") + containerinstancemanagement_client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000") + containerinstancemanagement_client_secret = os.environ.get( + "AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000" + ) + add_general_regex_sanitizer( + regex=containerinstancemanagement_subscription_id, value="00000000-0000-0000-0000-000000000000" + ) + add_general_regex_sanitizer( + regex=containerinstancemanagement_tenant_id, value="00000000-0000-0000-0000-000000000000" + ) + add_general_regex_sanitizer( + regex=containerinstancemanagement_client_id, value="00000000-0000-0000-0000-000000000000" + ) + add_general_regex_sanitizer( + regex=containerinstancemanagement_client_secret, value="00000000-0000-0000-0000-000000000000" + ) add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]") add_header_regex_sanitizer(key="Cookie", value="cookie;") diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations.py similarity index 98% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations.py index c497368fef23..50e26ad87929 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,9 +14,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceCGProfileOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementCGProfileOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations_async.py similarity index 98% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations_async.py index 627842392b7d..a185f9959392 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profile_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations_async.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceClient +from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,9 +15,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceCGProfileOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementCGProfileOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profiles_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations.py similarity index 85% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profiles_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations.py index f39446d67e8c..14a732739181 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profiles_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,9 +14,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceCGProfilesOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementCGProfilesOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profiles_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations_async.py similarity index 85% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profiles_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations_async.py index 3f5a3f65a963..7932907102ad 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_cg_profiles_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profiles_operations_async.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceClient +from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,9 +15,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceCGProfilesOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementCGProfilesOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations.py similarity index 98% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations.py index fa4b41dcb520..f8063f9a4c8a 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,9 +14,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceContainerGroupsOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementContainerGroupsOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy @@ -36,7 +36,6 @@ def test_container_groups_begin_create_or_update(self, resource_group): resource_group_name=resource_group.name, container_group_name="str", container_group={ - "location": "str", "properties": { "containers": [ { @@ -262,6 +261,7 @@ def test_container_groups_begin_create_or_update(self, resource_group): "type": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, + "location": "str", "name": "str", "systemData": { "createdAt": "2020-02-20 00:00:00", diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations_async.py similarity index 98% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations_async.py index 0e752370224d..f9a22113fd65 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_container_groups_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_container_groups_operations_async.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceClient +from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,9 +15,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceContainerGroupsOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementContainerGroupsOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async @@ -38,7 +38,6 @@ async def test_container_groups_begin_create_or_update(self, resource_group): resource_group_name=resource_group.name, container_group_name="str", container_group={ - "location": "str", "properties": { "containers": [ { @@ -274,6 +273,7 @@ async def test_container_groups_begin_create_or_update(self, resource_group): "type": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, + "location": "str", "name": "str", "systemData": { "createdAt": "2020-02-20 00:00:00", diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_containers_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations.py similarity index 89% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_containers_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations.py index ad594fe33542..aaa0d7ae818f 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_containers_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,9 +14,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceContainersOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementContainersOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_containers_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations_async.py similarity index 88% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_containers_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations_async.py index 80cd643f6612..d7177ad0a5c3 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_containers_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_containers_operations_async.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceClient +from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,9 +15,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceContainersOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementContainersOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_location_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations.py similarity index 88% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_location_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations.py index fc731cef83fb..ffca51319cb7 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_location_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,9 +14,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceLocationOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementLocationOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_location_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations_async.py similarity index 87% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_location_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations_async.py index 43db6e13cc2c..705db7852370 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_location_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_location_operations_async.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceClient +from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,9 +15,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceLocationOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementLocationOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_ngroups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations.py similarity index 98% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_ngroups_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations.py index ce4be7a0b802..c020dece1ca5 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_ngroups_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,9 +14,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceNGroupsOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementNGroupsOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_ngroups_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations_async.py similarity index 98% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_ngroups_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations_async.py index f212815a49dd..53e5b9d9d211 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_ngroups_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ngroups_operations_async.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceClient +from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,9 +15,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceNGroupsOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementNGroupsOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations.py similarity index 81% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations.py index 134f64c0fd9f..c63add79181d 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,9 +14,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations_async.py similarity index 81% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations_async.py index 1ba12f9de153..0b2a7f7bd933 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_operations_async.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceClient +from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,9 +15,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_subnet_service_association_link_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations.py similarity index 82% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_subnet_service_association_link_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations.py index 2e64a3f8bf23..40d23b21098f 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_subnet_service_association_link_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance import ContainerInstanceClient +from azure.mgmt.containerinstance import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,9 +14,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceSubnetServiceAssociationLinkOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementSubnetServiceAssociationLinkOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_subnet_service_association_link_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations_async.py similarity index 82% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_subnet_service_association_link_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations_async.py index 830a7ca5117d..3c3bbc24e5e6 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_subnet_service_association_link_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_subnet_service_association_link_operations_async.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.containerinstance.aio import ContainerInstanceClient +from azure.mgmt.containerinstance.aio import ContainerInstanceManagementClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,9 +15,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceSubnetServiceAssociationLinkOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementSubnetServiceAssociationLinkOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(ContainerInstanceClient, is_async=True) + self.client = self.create_mgmt_client(ContainerInstanceManagementClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/tsp-location.yaml b/sdk/containerinstance/azure-mgmt-containerinstance/tsp-location.yaml index 4f4d9163ab5f..09b15e9af5c8 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/tsp-location.yaml +++ b/sdk/containerinstance/azure-mgmt-containerinstance/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance -commit: 87fd8965461f54b715bb5762be007bb1d10f6f82 +commit: 1d786ebb3dd70468c532496d3e4b12fb1c936b00 repo: Azure/azure-rest-api-specs additionalDirectories: From 6f675731198ba79779134dd743cd621f2b9b1e27 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Thu, 26 Mar 2026 17:06:33 +0800 Subject: [PATCH 7/7] changelog from report comparison --- .../azure-mgmt-containerinstance/CHANGELOG.md | 76 ++++++++++++++++++- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md index b372d119881c..0c767bcde4aa 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md +++ b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md @@ -2,7 +2,81 @@ ## 10.2.0b2 (2026-03-26) -skip changelog generation +### Features Added + + - Client `ContainerInstanceManagementClient` added method `send_request` + - Model `ContainerGroup` added property `properties` + - Model `ContainerGroup` added property `system_data` + - Model `InitContainerDefinition` added property `properties` + - Model `ListResultContainerGroup` added property `properties` + - Model `NGroupPatch` added property `properties` + - Added model `ArmResource` + - Added model `CloudError` + - Added model `InitContainerPropertiesDefinition` + - Added model `ProxyResource` + +### Breaking Changes + + - Model `ContainerGroup` deleted or renamed its instance variable `provisioning_state` + - Model `ContainerGroup` deleted or renamed its instance variable `secret_references` + - Model `ContainerGroup` deleted or renamed its instance variable `containers` + - Model `ContainerGroup` deleted or renamed its instance variable `image_registry_credentials` + - Model `ContainerGroup` deleted or renamed its instance variable `restart_policy` + - Model `ContainerGroup` deleted or renamed its instance variable `ip_address` + - Model `ContainerGroup` deleted or renamed its instance variable `os_type` + - Model `ContainerGroup` deleted or renamed its instance variable `volumes` + - Model `ContainerGroup` deleted or renamed its instance variable `instance_view` + - Model `ContainerGroup` deleted or renamed its instance variable `diagnostics` + - Model `ContainerGroup` deleted or renamed its instance variable `subnet_ids` + - Model `ContainerGroup` deleted or renamed its instance variable `dns_config` + - Model `ContainerGroup` deleted or renamed its instance variable `sku` + - Model `ContainerGroup` deleted or renamed its instance variable `encryption_properties` + - Model `ContainerGroup` deleted or renamed its instance variable `init_containers` + - Model `ContainerGroup` deleted or renamed its instance variable `extensions` + - Model `ContainerGroup` deleted or renamed its instance variable `confidential_compute_properties` + - Model `ContainerGroup` deleted or renamed its instance variable `priority` + - Model `ContainerGroup` deleted or renamed its instance variable `identity_acls` + - Model `ContainerGroup` deleted or renamed its instance variable `container_group_profile` + - Model `ContainerGroup` deleted or renamed its instance variable `standby_pool_profile` + - Model `ContainerGroup` deleted or renamed its instance variable `is_created_from_standby_pool` + - Model `ContainerGroupProperties` deleted or renamed its instance variable `identity` + - Model `InitContainerDefinition` deleted or renamed its instance variable `image` + - Model `InitContainerDefinition` deleted or renamed its instance variable `command` + - Model `InitContainerDefinition` deleted or renamed its instance variable `environment_variables` + - Model `InitContainerDefinition` deleted or renamed its instance variable `instance_view` + - Model `InitContainerDefinition` deleted or renamed its instance variable `volume_mounts` + - Model `InitContainerDefinition` deleted or renamed its instance variable `security_context` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `provisioning_state` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `secret_references` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `containers` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `image_registry_credentials` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `restart_policy` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `ip_address` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `os_type` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `volumes` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `diagnostics` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `subnet_ids` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `dns_config` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `sku` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `encryption_properties` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `init_containers` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `extensions` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `confidential_compute_properties` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `priority` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `identity_acls` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `container_group_profile` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `standby_pool_profile` + - Model `ListResultContainerGroup` deleted or renamed its instance variable `is_created_from_standby_pool` + - Model `ListResultContainerGroupProperties` deleted or renamed its instance variable `identity` + - Model `NGroupPatch` deleted or renamed its instance variable `elastic_profile` + - Model `NGroupPatch` deleted or renamed its instance variable `placement_profile` + - Model `NGroupPatch` deleted or renamed its instance variable `container_group_profiles` + - Model `NGroupPatch` deleted or renamed its instance variable `provisioning_state` + - Model `NGroupPatch` deleted or renamed its instance variable `update_profile` + - Deleted or renamed model `NGroupSkus` + - Deleted or renamed model `NGroupsSkusList` + - Method `ContainersOperations.list_logs` changed its parameter `tail` from `positional_or_keyword` to `keyword_only` + - Method `ContainersOperations.list_logs` changed its parameter `timestamps` from `positional_or_keyword` to `keyword_only` ## 10.2.0 (2026-03-25)