diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md index be8e3fa6e6bb..0ba504159f2a 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md +++ b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md @@ -1,5 +1,30 @@ # Release History +## 10.2.0b3 (2026-07-23) + +### Features Added + + - Client `ContainerInstanceManagementClient` added operation group `ai_agents_groups` + - Model `AzureFileVolume` added property `user_assigned_identity_client_id` + - Added model `AiAgentsGroup` + - Added model `AiAgentsGroupAccessToken` + - Added model `AiAgentsGroupNetworkProfile` + - Added model `AiAgentsGroupProperties` + - Added enum `AiAgentsGroupProvisioningState` + - Added model `AiAgentsGroupTagsUpdate` + - Added operation group `AiAgentsGroupsOperations` + +### Breaking Changes + + - Deleted or renamed client operation group `ContainerInstanceManagementClient.sandbox_groups` + - Deleted or renamed model `SandboxGroup` + - Deleted or renamed model `SandboxGroupAccessToken` + - Deleted or renamed model `SandboxGroupNetworkProfile` + - Deleted or renamed model `SandboxGroupProperties` + - Deleted or renamed model `SandboxGroupProvisioningState` + - Deleted or renamed model `SandboxGroupTagsUpdate` + - Deleted or renamed model `SandboxGroupsOperations` + ## 10.2.0b2 (2026-06-01) ### Features Added diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json b/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json index 26cb2e8f30f5..4c47acd988e8 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json +++ b/sdk/containerinstance/azure-mgmt-containerinstance/_metadata.json @@ -1,10 +1,11 @@ { - "apiVersion": "2026-06-01-preview", + "apiVersion": "2026-08-01-preview", "apiVersions": { - "Microsoft.ContainerInstance": "2026-06-01-preview" + "Microsoft.ContainerInstance": "2026-08-01-preview" }, - "commit": "f74fe1506285c80ec95fbd84aa670919d6091aab", + "commit": "8c66db435b08db558d154f98c998f3d9672dab58", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance", - "emitterVersion": "0.62.1" + "emitterVersion": "0.63.3", + "httpClientPythonVersion": "^0.34.2" } \ No newline at end of file diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/api.md b/sdk/containerinstance/azure-mgmt-containerinstance/api.md new file mode 100644 index 000000000000..dfc02c2c1a95 --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/api.md @@ -0,0 +1,4152 @@ +```py +namespace azure.mgmt.containerinstance + + class azure.mgmt.containerinstance.ContainerInstanceManagementClient: implements ContextManager + ai_agents_groups: AiAgentsGroupsOperations + cg_profile: CGProfileOperations + cg_profiles: CGProfilesOperations + container_groups: ContainerGroupsOperations + containers: ContainersOperations + location: LocationOperations + ngroups: NGroupsOperations + operations: Operations + subnet_service_association_link: SubnetServiceAssociationLinkOperations + + def __init__( + self, + credential: TokenCredential, + subscription_id: str, + base_url: Optional[str] = None, + *, + api_version: str = ..., + cloud_setting: Optional[AzureClouds] = ..., + polling_interval: Optional[int] = ..., + **kwargs: Any + ) -> None: ... + + def close(self) -> None: ... + + def send_request( + self, + request: HttpRequest, + *, + stream: bool = False, + **kwargs: Any + ) -> HttpResponse: ... + + +namespace azure.mgmt.containerinstance.aio + + class azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient: implements AsyncContextManager + ai_agents_groups: AiAgentsGroupsOperations + cg_profile: CGProfileOperations + cg_profiles: CGProfilesOperations + container_groups: ContainerGroupsOperations + containers: ContainersOperations + location: LocationOperations + ngroups: NGroupsOperations + operations: Operations + subnet_service_association_link: SubnetServiceAssociationLinkOperations + + def __init__( + self, + credential: AsyncTokenCredential, + subscription_id: str, + base_url: Optional[str] = None, + *, + api_version: str = ..., + cloud_setting: Optional[AzureClouds] = ..., + polling_interval: Optional[int] = ..., + **kwargs: Any + ) -> None: ... + + async def close(self) -> None: ... + + def send_request( + self, + request: HttpRequest, + *, + stream: bool = False, + **kwargs: Any + ) -> Awaitable[AsyncHttpResponse]: ... + + +namespace azure.mgmt.containerinstance.aio.operations + + class azure.mgmt.containerinstance.aio.operations.AiAgentsGroupsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + ai_agents_group_name: str, + resource: AiAgentsGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[AiAgentsGroup]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + ai_agents_group_name: str, + resource: AiAgentsGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[AiAgentsGroup]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + ai_agents_group_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[AiAgentsGroup]: ... + + @distributed_trace_async + @api_version_validation(method_added_on='2026-08-01-preview', params_added_on={'2026-08-01-preview': ['api_version', 'subscription_id', 'resource_group_name', 'ai_agents_group_name']}, api_versions_list=['2026-08-01-preview']) + async def begin_delete( + self, + resource_group_name: str, + ai_agents_group_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + ai_agents_group_name: str, + properties: AiAgentsGroupTagsUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[AiAgentsGroup]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + ai_agents_group_name: str, + properties: AiAgentsGroupTagsUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[AiAgentsGroup]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + ai_agents_group_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[AiAgentsGroup]: ... + + @distributed_trace_async + @api_version_validation(method_added_on='2026-08-01-preview', params_added_on={'2026-08-01-preview': ['api_version', 'subscription_id', 'resource_group_name', 'ai_agents_group_name', 'accept']}, api_versions_list=['2026-08-01-preview']) + async def connect( + self, + resource_group_name: str, + ai_agents_group_name: str, + **kwargs: Any + ) -> AiAgentsGroupAccessToken: ... + + @distributed_trace_async + @api_version_validation(method_added_on='2026-08-01-preview', params_added_on={'2026-08-01-preview': ['api_version', 'subscription_id', 'resource_group_name', 'ai_agents_group_name', 'accept']}, api_versions_list=['2026-08-01-preview']) + async def get( + self, + resource_group_name: str, + ai_agents_group_name: str, + **kwargs: Any + ) -> AiAgentsGroup: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-08-01-preview', params_added_on={'2026-08-01-preview': ['api_version', 'subscription_id', 'resource_group_name', 'accept']}, api_versions_list=['2026-08-01-preview']) + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncItemPaged[AiAgentsGroup]: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-08-01-preview', params_added_on={'2026-08-01-preview': ['api_version', 'subscription_id', 'accept']}, api_versions_list=['2026-08-01-preview']) + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged[AiAgentsGroup]: ... + + + class azure.mgmt.containerinstance.aio.operations.CGProfileOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + async def create_or_update( + self, + resource_group_name: str, + container_group_profile_name: str, + container_group_profile: ContainerGroupProfile, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroupProfile: ... + + @overload + async def create_or_update( + self, + resource_group_name: str, + container_group_profile_name: str, + container_group_profile: ContainerGroupProfile, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroupProfile: ... + + @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 + ) -> ContainerGroupProfile: ... + + @distributed_trace_async + async def delete( + self, + resource_group_name: str, + container_group_profile_name: str, + **kwargs: Any + ) -> None: ... + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + container_group_profile_name: str, + **kwargs: Any + ) -> ContainerGroupProfile: ... + + @distributed_trace_async + async def get_by_revision_number( + self, + resource_group_name: str, + container_group_profile_name: str, + revision_number: str, + **kwargs: Any + ) -> ContainerGroupProfile: ... + + @distributed_trace + def list_all_revisions( + self, + resource_group_name: str, + container_group_profile_name: str, + **kwargs: Any + ) -> AsyncItemPaged[ContainerGroupProfile]: ... + + @overload + async def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: ContainerGroupProfilePatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroupProfile: ... + + @overload + async def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: ContainerGroupProfilePatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroupProfile: ... + + @overload + async def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroupProfile: ... + + + class azure.mgmt.containerinstance.aio.operations.CGProfilesOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncItemPaged[ContainerGroupProfile]: ... + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged[ContainerGroupProfile]: ... + + + class azure.mgmt.containerinstance.aio.operations.ContainerGroupsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + container_group_name: str, + container_group: ContainerGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ContainerGroup]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + container_group_name: str, + container_group: ContainerGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ContainerGroup]: ... + + @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[ContainerGroup]: ... + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + container_group_name: str, + **kwargs: Any + ) -> AsyncLROPoller[ContainerGroup]: ... + + @distributed_trace_async + async def begin_restart( + self, + resource_group_name: str, + container_group_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @distributed_trace_async + async def begin_start( + self, + resource_group_name: str, + container_group_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + container_group_name: str, + **kwargs: Any + ) -> ContainerGroup: ... + + @distributed_trace_async + async def get_outbound_network_dependencies_endpoints( + self, + resource_group_name: str, + container_group_name: str, + **kwargs: Any + ) -> List[str]: ... + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged[ContainerGroup]: ... + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncItemPaged[ContainerGroup]: ... + + @distributed_trace_async + async def stop( + self, + resource_group_name: str, + container_group_name: str, + **kwargs: Any + ) -> None: ... + + @overload + async def update( + self, + resource_group_name: str, + container_group_name: str, + resource: Resource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroup: ... + + @overload + async def update( + self, + resource_group_name: str, + container_group_name: str, + resource: Resource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroup: ... + + @overload + async def update( + self, + resource_group_name: str, + container_group_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroup: ... + + + class azure.mgmt.containerinstance.aio.operations.ContainersOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace_async + async def attach( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + **kwargs: Any + ) -> ContainerAttachResponse: ... + + @overload + async def execute_command( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + container_exec_request: ContainerExecRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerExecResponse: ... + + @overload + async def execute_command( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + container_exec_request: ContainerExecRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerExecResponse: ... + + @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 + ) -> ContainerExecResponse: ... + + @distributed_trace_async + async def list_logs( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + *, + tail: Optional[int] = ..., + timestamps: Optional[bool] = ..., + **kwargs: Any + ) -> Logs: ... + + + class azure.mgmt.containerinstance.aio.operations.LocationOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace + def list_cached_images( + self, + location: str, + **kwargs: Any + ) -> AsyncItemPaged[CachedImages]: ... + + @distributed_trace + def list_capabilities( + self, + location: str, + **kwargs: Any + ) -> AsyncItemPaged[Capabilities]: ... + + @distributed_trace + def list_usage( + self, + location: str, + **kwargs: Any + ) -> AsyncItemPaged[Usage]: ... + + + class azure.mgmt.containerinstance.aio.operations.NGroupsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: NGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[NGroup]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: NGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[NGroup]: ... + + @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[NGroup]: ... + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + ngroups_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @distributed_trace_async + async def begin_restart( + self, + resource_group_name: str, + ngroups_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @distributed_trace_async + async def begin_start( + self, + resource_group_name: str, + ngroups_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: NGroupPatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[NGroup]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: NGroupPatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[NGroup]: ... + + @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[NGroup]: ... + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + ngroups_name: str, + **kwargs: Any + ) -> NGroup: ... + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged[NGroup]: ... + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncItemPaged[NGroup]: ... + + @distributed_trace_async + async def stop( + self, + resource_group_name: str, + ngroups_name: str, + **kwargs: Any + ) -> None: ... + + + class azure.mgmt.containerinstance.aio.operations.Operations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged[Operation]: ... + + + class azure.mgmt.containerinstance.aio.operations.SubnetServiceAssociationLinkOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + virtual_network_name: str, + subnet_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + +namespace azure.mgmt.containerinstance.models + + class azure.mgmt.containerinstance.models.AiAgentsGroup(TrackedResource): + id: str + identity: Optional[ManagedServiceIdentity] + location: str + name: str + properties: Optional[AiAgentsGroupProperties] + system_data: SystemData + tags: dict[str, str] + type: str + + @overload + def __init__( + self, + *, + identity: Optional[ManagedServiceIdentity] = ..., + location: str, + properties: Optional[AiAgentsGroupProperties] = ..., + tags: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.AiAgentsGroupAccessToken(_Model): + access_token: str + endpoint: str + not_after: datetime + + @overload + def __init__( + self, + *, + access_token: str, + endpoint: str, + not_after: datetime + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.AiAgentsGroupNetworkProfile(_Model): + subnets: Optional[list[SubnetReference]] + + @overload + def __init__( + self, + *, + subnets: Optional[list[SubnetReference]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.AiAgentsGroupProperties(_Model): + management_resource_group_id: Optional[str] + network_profile: Optional[AiAgentsGroupNetworkProfile] + provisioning_state: Optional[Union[str, AiAgentsGroupProvisioningState]] + + @overload + def __init__( + self, + *, + network_profile: Optional[AiAgentsGroupNetworkProfile] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.AiAgentsGroupProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + ACCEPTED = "Accepted" + CANCELED = "Canceled" + DELETING = "Deleting" + FAILED = "Failed" + SUCCEEDED = "Succeeded" + UPDATING = "Updating" + + + class azure.mgmt.containerinstance.models.AiAgentsGroupTagsUpdate(_Model): + identity: Optional[ManagedServiceIdentity] + tags: Optional[dict[str, str]] + + @overload + def __init__( + self, + *, + identity: Optional[ManagedServiceIdentity] = ..., + tags: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ApiEntityReference(_Model): + id: Optional[str] + + @overload + def __init__( + self, + *, + id: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ApplicationGateway(_Model): + backend_address_pools: Optional[list[ApplicationGatewayBackendAddressPool]] + resource: Optional[str] + + @overload + def __init__( + self, + *, + backend_address_pools: Optional[list[ApplicationGatewayBackendAddressPool]] = ..., + resource: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ApplicationGatewayBackendAddressPool(_Model): + resource: Optional[str] + + @overload + def __init__( + self, + *, + resource: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ArmResource(_Model): + id: Optional[str] + name: Optional[str] + system_data: Optional[SystemData] + type: Optional[str] + + + class azure.mgmt.containerinstance.models.AzureFileShareAccessTier(str, Enum, metaclass=CaseInsensitiveEnumMeta): + COOL = "Cool" + HOT = "Hot" + PREMIUM = "Premium" + TRANSACTION_OPTIMIZED = "TransactionOptimized" + + + class azure.mgmt.containerinstance.models.AzureFileShareAccessType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + EXCLUSIVE = "Exclusive" + SHARED = "Shared" + + + class azure.mgmt.containerinstance.models.AzureFileVolume(_Model): + read_only: Optional[bool] + share_name: str + storage_account_key: Optional[str] + storage_account_key_reference: Optional[str] + storage_account_name: str + user_assigned_identity_client_id: Optional[str] + + @overload + def __init__( + self, + *, + read_only: Optional[bool] = ..., + share_name: str, + storage_account_key: Optional[str] = ..., + storage_account_key_reference: Optional[str] = ..., + storage_account_name: str, + user_assigned_identity_client_id: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.CachedImages(_Model): + image: str + os_type: str + + @overload + def __init__( + self, + *, + image: str, + os_type: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.Capabilities(_Model): + capabilities: Optional[CapabilitiesCapabilities] + gpu: Optional[str] + ip_address_type: Optional[str] + location: Optional[str] + os_type: Optional[str] + resource_type: Optional[str] + + + class azure.mgmt.containerinstance.models.CapabilitiesCapabilities(_Model): + max_cpu: Optional[float] + max_gpu_count: Optional[float] + max_memory_in_gb: Optional[float] + + + class azure.mgmt.containerinstance.models.CloudError(_Model): + error: Optional[CloudErrorBody] + + @overload + def __init__( + self, + *, + error: Optional[CloudErrorBody] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.CloudErrorBody(_Model): + code: Optional[str] + details: Optional[list[CloudErrorBody]] + message: Optional[str] + target: Optional[str] + + @overload + def __init__( + self, + *, + code: Optional[str] = ..., + details: Optional[list[CloudErrorBody]] = ..., + message: Optional[str] = ..., + target: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ConfidentialComputeProperties(_Model): + cce_policy: Optional[str] + + @overload + def __init__( + self, + *, + cce_policy: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ConfigMap(_Model): + key_value_pairs: Optional[dict[str, str]] + + @overload + def __init__( + self, + *, + key_value_pairs: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.Container(_Model): + name: str + properties: ContainerProperties + + def __getattr__(self, name: str) -> Any: ... + + @overload + def __init__( + self, + *, + name: str, + properties: ContainerProperties + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + def __setattr__( + self, + key: str, + value: Any + ) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerAttachResponse(_Model): + password: Optional[str] + web_socket_uri: Optional[str] + + @overload + def __init__( + self, + *, + password: Optional[str] = ..., + web_socket_uri: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerExec(_Model): + command: Optional[list[str]] + + @overload + def __init__( + self, + *, + command: Optional[list[str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerExecRequest(_Model): + command: Optional[str] + terminal_size: Optional[ContainerExecRequestTerminalSize] + + @overload + def __init__( + self, + *, + command: Optional[str] = ..., + terminal_size: Optional[ContainerExecRequestTerminalSize] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerExecRequestTerminalSize(_Model): + cols: Optional[int] + rows: Optional[int] + + @overload + def __init__( + self, + *, + cols: Optional[int] = ..., + rows: Optional[int] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerExecResponse(_Model): + password: Optional[str] + web_socket_uri: Optional[str] + + @overload + def __init__( + self, + *, + password: Optional[str] = ..., + web_socket_uri: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerGroup(ProxyResource): + id: str + identity: Optional[ContainerGroupIdentity] + location: Optional[str] + name: str + properties: ContainerGroupProperties + system_data: SystemData + tags: Optional[dict[str, str]] + type: str + zones: Optional[list[str]] + + def __getattr__(self, name: str) -> Any: ... + + @overload + def __init__( + self, + *, + identity: Optional[ContainerGroupIdentity] = ..., + location: Optional[str] = ..., + properties: ContainerGroupProperties, + tags: Optional[dict[str, str]] = ..., + zones: Optional[list[str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + def __setattr__( + self, + key: str, + value: Any + ) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerGroupDiagnostics(_Model): + log_analytics: Optional[LogAnalytics] + + @overload + def __init__( + self, + *, + log_analytics: Optional[LogAnalytics] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerGroupIdentity(_Model): + principal_id: Optional[str] + tenant_id: Optional[str] + type: Optional[Union[str, ResourceIdentityType]] + user_assigned_identities: Optional[dict[str, UserAssignedIdentities]] + + @overload + def __init__( + self, + *, + type: Optional[Union[str, ResourceIdentityType]] = ..., + user_assigned_identities: Optional[dict[str, UserAssignedIdentities]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerGroupIpAddressType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + PRIVATE = "Private" + PUBLIC = "Public" + + + class azure.mgmt.containerinstance.models.ContainerGroupNetworkProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): + TCP = "TCP" + UDP = "UDP" + + + class azure.mgmt.containerinstance.models.ContainerGroupPriority(str, Enum, metaclass=CaseInsensitiveEnumMeta): + REGULAR = "Regular" + SPOT = "Spot" + + + class azure.mgmt.containerinstance.models.ContainerGroupProfile(ProxyResource): + id: str + location: Optional[str] + name: str + properties: Optional[ContainerGroupProfileProperties] + system_data: SystemData + tags: Optional[dict[str, str]] + type: str + zones: Optional[list[str]] + + def __getattr__(self, name: str) -> Any: ... + + @overload + def __init__( + self, + *, + location: Optional[str] = ..., + properties: Optional[ContainerGroupProfileProperties] = ..., + tags: Optional[dict[str, str]] = ..., + zones: Optional[list[str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + def __setattr__( + self, + key: str, + value: Any + ) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerGroupProfilePatch(_Model): + tags: Optional[dict[str, str]] + + @overload + def __init__( + self, + *, + tags: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerGroupProfileProperties(_Model): + confidential_compute_properties: Optional[ConfidentialComputeProperties] + containers: list[Container] + diagnostics: Optional[ContainerGroupDiagnostics] + encryption_properties: Optional[EncryptionProperties] + extensions: Optional[list[DeploymentExtensionSpec]] + image_registry_credentials: Optional[list[ImageRegistryCredential]] + init_containers: Optional[list[InitContainerDefinition]] + ip_address: Optional[IpAddress] + os_type: Union[str, OperatingSystemTypes] + priority: Optional[Union[str, ContainerGroupPriority]] + registered_revisions: Optional[list[int]] + restart_policy: Optional[Union[str, ContainerGroupRestartPolicy]] + revision: Optional[int] + security_context: Optional[SecurityContextDefinition] + shutdown_grace_period: Optional[datetime] + sku: Optional[Union[str, ContainerGroupSku]] + time_to_live: Optional[datetime] + use_krypton: Optional[bool] + volumes: Optional[list[Volume]] + + @overload + def __init__( + self, + *, + confidential_compute_properties: Optional[ConfidentialComputeProperties] = ..., + containers: list[Container], + diagnostics: Optional[ContainerGroupDiagnostics] = ..., + encryption_properties: Optional[EncryptionProperties] = ..., + extensions: Optional[list[DeploymentExtensionSpec]] = ..., + image_registry_credentials: Optional[list[ImageRegistryCredential]] = ..., + init_containers: Optional[list[InitContainerDefinition]] = ..., + ip_address: Optional[IpAddress] = ..., + os_type: Union[str, OperatingSystemTypes], + priority: Optional[Union[str, ContainerGroupPriority]] = ..., + restart_policy: Optional[Union[str, ContainerGroupRestartPolicy]] = ..., + security_context: Optional[SecurityContextDefinition] = ..., + shutdown_grace_period: Optional[datetime] = ..., + sku: Optional[Union[str, ContainerGroupSku]] = ..., + time_to_live: Optional[datetime] = ..., + use_krypton: Optional[bool] = ..., + volumes: Optional[list[Volume]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerGroupProfileReferenceDefinition(_Model): + id: Optional[str] + revision: Optional[int] + + @overload + def __init__( + self, + *, + id: Optional[str] = ..., + revision: Optional[int] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerGroupProfileStub(_Model): + container_group_properties: Optional[NGroupContainerGroupProperties] + network_profile: Optional[NetworkProfile] + resource: Optional[ApiEntityReference] + revision: Optional[int] + storage_profile: Optional[StorageProfile] + + @overload + def __init__( + self, + *, + container_group_properties: Optional[NGroupContainerGroupProperties] = ..., + network_profile: Optional[NetworkProfile] = ..., + resource: Optional[ApiEntityReference] = ..., + revision: Optional[int] = ..., + storage_profile: Optional[StorageProfile] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerGroupProperties(_Model): + confidential_compute_properties: Optional[ConfidentialComputeProperties] + container_group_profile: Optional[ContainerGroupProfileReferenceDefinition] + containers: list[Container] + diagnostics: Optional[ContainerGroupDiagnostics] + dns_config: Optional[DnsConfiguration] + encryption_properties: Optional[EncryptionProperties] + extensions: Optional[list[DeploymentExtensionSpec]] + identity_acls: Optional[IdentityAcls] + image_registry_credentials: Optional[list[ImageRegistryCredential]] + init_containers: Optional[list[InitContainerDefinition]] + instance_view: Optional[ContainerGroupPropertiesInstanceView] + ip_address: Optional[IpAddress] + is_created_from_standby_pool: Optional[bool] + os_type: Optional[Union[str, OperatingSystemTypes]] + priority: Optional[Union[str, ContainerGroupPriority]] + provisioning_state: Optional[str] + restart_policy: Optional[Union[str, ContainerGroupRestartPolicy]] + secret_references: Optional[list[SecretReference]] + sku: Optional[Union[str, ContainerGroupSku]] + standby_pool_profile: Optional[StandbyPoolProfileDefinition] + subnet_ids: Optional[list[ContainerGroupSubnetId]] + volumes: Optional[list[Volume]] + + @overload + def __init__( + self, + *, + confidential_compute_properties: Optional[ConfidentialComputeProperties] = ..., + container_group_profile: Optional[ContainerGroupProfileReferenceDefinition] = ..., + containers: list[Container], + diagnostics: Optional[ContainerGroupDiagnostics] = ..., + dns_config: Optional[DnsConfiguration] = ..., + encryption_properties: Optional[EncryptionProperties] = ..., + extensions: Optional[list[DeploymentExtensionSpec]] = ..., + identity_acls: Optional[IdentityAcls] = ..., + image_registry_credentials: Optional[list[ImageRegistryCredential]] = ..., + init_containers: Optional[list[InitContainerDefinition]] = ..., + ip_address: Optional[IpAddress] = ..., + os_type: Optional[Union[str, OperatingSystemTypes]] = ..., + priority: Optional[Union[str, ContainerGroupPriority]] = ..., + restart_policy: Optional[Union[str, ContainerGroupRestartPolicy]] = ..., + secret_references: Optional[list[SecretReference]] = ..., + sku: Optional[Union[str, ContainerGroupSku]] = ..., + standby_pool_profile: Optional[StandbyPoolProfileDefinition] = ..., + subnet_ids: Optional[list[ContainerGroupSubnetId]] = ..., + volumes: Optional[list[Volume]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerGroupPropertiesInstanceView(_Model): + events: Optional[list[Event]] + state: Optional[str] + + + class azure.mgmt.containerinstance.models.ContainerGroupRestartPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): + ALWAYS = "Always" + NEVER = "Never" + ON_FAILURE = "OnFailure" + + + class azure.mgmt.containerinstance.models.ContainerGroupSku(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CONFIDENTIAL = "Confidential" + DEDICATED = "Dedicated" + NOT_SPECIFIED = "NotSpecified" + STANDARD = "Standard" + + + class azure.mgmt.containerinstance.models.ContainerGroupSubnetId(_Model): + id: str + name: Optional[str] + + @overload + def __init__( + self, + *, + id: str, + name: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerHttpGet(_Model): + http_headers: Optional[list[HttpHeader]] + path: Optional[str] + port: int + scheme: Optional[Union[str, Scheme]] + + @overload + def __init__( + self, + *, + http_headers: Optional[list[HttpHeader]] = ..., + path: Optional[str] = ..., + port: int, + scheme: Optional[Union[str, Scheme]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerInstanceOperationsOrigin(str, Enum, metaclass=CaseInsensitiveEnumMeta): + SYSTEM = "System" + USER = "User" + + + class azure.mgmt.containerinstance.models.ContainerNetworkProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): + TCP = "TCP" + UDP = "UDP" + + + class azure.mgmt.containerinstance.models.ContainerPort(_Model): + port: int + protocol: Optional[Union[str, ContainerNetworkProtocol]] + + @overload + def __init__( + self, + *, + port: int, + protocol: Optional[Union[str, ContainerNetworkProtocol]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerProbe(_Model): + exec_property: Optional[ContainerExec] + failure_threshold: Optional[int] + http_get: Optional[ContainerHttpGet] + initial_delay_seconds: Optional[int] + period_seconds: Optional[int] + success_threshold: Optional[int] + timeout_seconds: Optional[int] + + @overload + def __init__( + self, + *, + exec_property: Optional[ContainerExec] = ..., + failure_threshold: Optional[int] = ..., + http_get: Optional[ContainerHttpGet] = ..., + initial_delay_seconds: Optional[int] = ..., + period_seconds: Optional[int] = ..., + success_threshold: Optional[int] = ..., + timeout_seconds: Optional[int] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerProperties(_Model): + command: Optional[list[str]] + config_map: Optional[ConfigMap] + environment_variables: Optional[list[EnvironmentVariable]] + image: Optional[str] + instance_view: Optional[ContainerPropertiesInstanceView] + liveness_probe: Optional[ContainerProbe] + ports: Optional[list[ContainerPort]] + readiness_probe: Optional[ContainerProbe] + resources: Optional[ResourceRequirements] + security_context: Optional[SecurityContextDefinition] + volume_mounts: Optional[list[VolumeMount]] + + @overload + def __init__( + self, + *, + command: Optional[list[str]] = ..., + config_map: Optional[ConfigMap] = ..., + environment_variables: Optional[list[EnvironmentVariable]] = ..., + image: Optional[str] = ..., + liveness_probe: Optional[ContainerProbe] = ..., + ports: Optional[list[ContainerPort]] = ..., + readiness_probe: Optional[ContainerProbe] = ..., + resources: Optional[ResourceRequirements] = ..., + security_context: Optional[SecurityContextDefinition] = ..., + volume_mounts: Optional[list[VolumeMount]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ContainerPropertiesInstanceView(_Model): + current_state: Optional[ContainerState] + events: Optional[list[Event]] + previous_state: Optional[ContainerState] + restart_count: Optional[int] + + + class azure.mgmt.containerinstance.models.ContainerState(_Model): + detail_status: Optional[str] + exit_code: Optional[int] + finish_time: Optional[datetime] + start_time: Optional[datetime] + state: Optional[str] + + + class azure.mgmt.containerinstance.models.CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + APPLICATION = "Application" + KEY = "Key" + MANAGED_IDENTITY = "ManagedIdentity" + USER = "User" + + + class azure.mgmt.containerinstance.models.DeploymentExtensionSpec(_Model): + name: str + properties: Optional[DeploymentExtensionSpecProperties] + + def __getattr__(self, name: str) -> Any: ... + + @overload + def __init__( + self, + *, + name: str, + properties: Optional[DeploymentExtensionSpecProperties] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + def __setattr__( + self, + key: str, + value: Any + ) -> None: ... + + + class azure.mgmt.containerinstance.models.DeploymentExtensionSpecProperties(_Model): + extension_type: str + protected_settings: Optional[Any] + settings: Optional[Any] + version: str + + @overload + def __init__( + self, + *, + extension_type: str, + protected_settings: Optional[Any] = ..., + settings: Optional[Any] = ..., + version: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.DnsConfiguration(_Model): + name_servers: list[str] + options: Optional[str] + search_domains: Optional[str] + + @overload + def __init__( + self, + *, + name_servers: list[str], + options: Optional[str] = ..., + search_domains: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.DnsNameLabelReusePolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): + NOREUSE = "Noreuse" + RESOURCE_GROUP_REUSE = "ResourceGroupReuse" + SUBSCRIPTION_REUSE = "SubscriptionReuse" + TENANT_REUSE = "TenantReuse" + UNSECURE = "Unsecure" + + + class azure.mgmt.containerinstance.models.ElasticProfile(_Model): + container_group_naming_policy: Optional[ElasticProfileContainerGroupNamingPolicy] + desired_count: Optional[int] + maintain_desired_count: Optional[bool] + + @overload + def __init__( + self, + *, + container_group_naming_policy: Optional[ElasticProfileContainerGroupNamingPolicy] = ..., + desired_count: Optional[int] = ..., + maintain_desired_count: Optional[bool] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicy(_Model): + guid_naming_policy: Optional[ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy] + + @overload + def __init__( + self, + *, + guid_naming_policy: Optional[ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy(_Model): + prefix: Optional[str] + + @overload + def __init__( + self, + *, + prefix: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.EncryptionProperties(_Model): + identity: Optional[str] + key_name: str + key_version: str + vault_base_url: str + + @overload + def __init__( + self, + *, + identity: Optional[str] = ..., + key_name: str, + key_version: str, + vault_base_url: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.EnvironmentVariable(_Model): + name: str + secure_value: Optional[str] + secure_value_reference: Optional[str] + value: Optional[str] + + @overload + def __init__( + self, + *, + name: str, + secure_value: Optional[str] = ..., + secure_value_reference: Optional[str] = ..., + value: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ErrorAdditionalInfo(_Model): + info: Optional[Any] + type: Optional[str] + + + class azure.mgmt.containerinstance.models.ErrorDetail(_Model): + additional_info: Optional[list[ErrorAdditionalInfo]] + code: Optional[str] + details: Optional[list[ErrorDetail]] + message: Optional[str] + target: Optional[str] + + + class azure.mgmt.containerinstance.models.ErrorResponse(_Model): + error: Optional[ErrorDetail] + + @overload + def __init__( + self, + *, + error: Optional[ErrorDetail] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.Event(_Model): + count: Optional[int] + first_timestamp: Optional[datetime] + last_timestamp: Optional[datetime] + message: Optional[str] + name: Optional[str] + type: Optional[str] + + + class azure.mgmt.containerinstance.models.FileShare(_Model): + name: Optional[str] + properties: Optional[FileShareProperties] + resource_group_name: Optional[str] + storage_account_name: Optional[str] + + @overload + def __init__( + self, + *, + name: Optional[str] = ..., + properties: Optional[FileShareProperties] = ..., + resource_group_name: Optional[str] = ..., + storage_account_name: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.FileShareProperties(_Model): + share_access_tier: Optional[Union[str, AzureFileShareAccessTier]] + share_access_type: Optional[Union[str, AzureFileShareAccessType]] + + @overload + def __init__( + self, + *, + share_access_tier: Optional[Union[str, AzureFileShareAccessTier]] = ..., + share_access_type: Optional[Union[str, AzureFileShareAccessType]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.GitRepoVolume(_Model): + directory: Optional[str] + repository: str + revision: Optional[str] + + @overload + def __init__( + self, + *, + directory: Optional[str] = ..., + repository: str, + revision: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.GpuResource(_Model): + count: int + sku: Union[str, GpuSku] + + @overload + def __init__( + self, + *, + count: int, + sku: Union[str, GpuSku] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.GpuSku(str, Enum, metaclass=CaseInsensitiveEnumMeta): + K80 = "K80" + P100 = "P100" + V100 = "V100" + + + class azure.mgmt.containerinstance.models.HttpHeader(_Model): + name: Optional[str] + value: Optional[str] + + @overload + def __init__( + self, + *, + name: Optional[str] = ..., + value: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.IdentityAccessControl(_Model): + access: Optional[Union[str, IdentityAccessLevel]] + identity: Optional[str] + + @overload + def __init__( + self, + *, + access: Optional[Union[str, IdentityAccessLevel]] = ..., + identity: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.IdentityAccessLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): + ALL = "All" + SYSTEM = "System" + USER = "User" + + + class azure.mgmt.containerinstance.models.IdentityAcls(_Model): + acls: Optional[list[IdentityAccessControl]] + default_access: Optional[Union[str, IdentityAccessLevel]] + + @overload + def __init__( + self, + *, + acls: Optional[list[IdentityAccessControl]] = ..., + default_access: Optional[Union[str, IdentityAccessLevel]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ImageRegistryCredential(_Model): + identity: Optional[str] + identity_url: Optional[str] + password: Optional[str] + password_reference: Optional[str] + server: str + username: Optional[str] + + @overload + def __init__( + self, + *, + identity: Optional[str] = ..., + identity_url: Optional[str] = ..., + password: Optional[str] = ..., + password_reference: Optional[str] = ..., + server: str, + username: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.InitContainerDefinition(_Model): + name: str + properties: InitContainerPropertiesDefinition + + def __getattr__(self, name: str) -> Any: ... + + @overload + def __init__( + self, + *, + name: str, + properties: InitContainerPropertiesDefinition + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + def __setattr__( + self, + key: str, + value: Any + ) -> None: ... + + + class azure.mgmt.containerinstance.models.InitContainerPropertiesDefinition(_Model): + command: Optional[list[str]] + environment_variables: Optional[list[EnvironmentVariable]] + image: Optional[str] + instance_view: Optional[InitContainerPropertiesDefinitionInstanceView] + security_context: Optional[SecurityContextDefinition] + volume_mounts: Optional[list[VolumeMount]] + + @overload + def __init__( + self, + *, + command: Optional[list[str]] = ..., + environment_variables: Optional[list[EnvironmentVariable]] = ..., + image: Optional[str] = ..., + security_context: Optional[SecurityContextDefinition] = ..., + volume_mounts: Optional[list[VolumeMount]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.InitContainerPropertiesDefinitionInstanceView(_Model): + current_state: Optional[ContainerState] + events: Optional[list[Event]] + previous_state: Optional[ContainerState] + restart_count: Optional[int] + + + class azure.mgmt.containerinstance.models.IpAddress(_Model): + auto_generated_domain_name_label_scope: Optional[Union[str, DnsNameLabelReusePolicy]] + dns_name_label: Optional[str] + fqdn: Optional[str] + ip: Optional[str] + ports: list[Port] + type: Union[str, ContainerGroupIpAddressType] + + @overload + def __init__( + self, + *, + auto_generated_domain_name_label_scope: Optional[Union[str, DnsNameLabelReusePolicy]] = ..., + dns_name_label: Optional[str] = ..., + ip: Optional[str] = ..., + ports: list[Port], + type: Union[str, ContainerGroupIpAddressType] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.LoadBalancer(_Model): + backend_address_pools: Optional[list[LoadBalancerBackendAddressPool]] + + @overload + def __init__( + self, + *, + backend_address_pools: Optional[list[LoadBalancerBackendAddressPool]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.LoadBalancerBackendAddressPool(_Model): + resource: Optional[str] + + @overload + def __init__( + self, + *, + resource: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.LogAnalytics(_Model): + log_type: Optional[Union[str, LogAnalyticsLogType]] + metadata: Optional[dict[str, str]] + workspace_id: str + workspace_key: str + workspace_resource_id: Optional[str] + + @overload + def __init__( + self, + *, + log_type: Optional[Union[str, LogAnalyticsLogType]] = ..., + metadata: Optional[dict[str, str]] = ..., + workspace_id: str, + workspace_key: str, + workspace_resource_id: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.LogAnalyticsLogType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CONTAINER_INSIGHTS = "ContainerInsights" + CONTAINER_INSTANCE_LOGS = "ContainerInstanceLogs" + + + class azure.mgmt.containerinstance.models.Logs(_Model): + content: Optional[str] + + @overload + def __init__( + self, + *, + content: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ManagedServiceIdentity(_Model): + principal_id: Optional[str] + tenant_id: Optional[str] + type: Union[str, ManagedServiceIdentityType] + user_assigned_identities: Optional[dict[str, UserAssignedIdentity]] + + @overload + def __init__( + self, + *, + type: Union[str, ManagedServiceIdentityType], + user_assigned_identities: Optional[dict[str, UserAssignedIdentity]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ManagedServiceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + NONE = "None" + SYSTEM_ASSIGNED = "SystemAssigned" + SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" + USER_ASSIGNED = "UserAssigned" + + + class azure.mgmt.containerinstance.models.NGroup(ProxyResource): + id: str + identity: Optional[NGroupIdentity] + location: Optional[str] + name: str + properties: Optional[NGroupProperties] + system_data: SystemData + tags: Optional[dict[str, str]] + type: str + zones: Optional[list[str]] + + def __getattr__(self, name: str) -> Any: ... + + @overload + def __init__( + self, + *, + identity: Optional[NGroupIdentity] = ..., + location: Optional[str] = ..., + properties: Optional[NGroupProperties] = ..., + tags: Optional[dict[str, str]] = ..., + zones: Optional[list[str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + def __setattr__( + self, + key: str, + value: Any + ) -> None: ... + + + class azure.mgmt.containerinstance.models.NGroupCGPropertyContainer(_Model): + name: Optional[str] + properties: Optional[NGroupCGPropertyContainerProperties] + + @overload + def __init__( + self, + *, + name: Optional[str] = ..., + properties: Optional[NGroupCGPropertyContainerProperties] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.NGroupCGPropertyContainerProperties(_Model): + volume_mounts: Optional[list[VolumeMount]] + + @overload + def __init__( + self, + *, + volume_mounts: Optional[list[VolumeMount]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.NGroupCGPropertyVolume(_Model): + azure_file: Optional[AzureFileVolume] + name: str + + @overload + def __init__( + self, + *, + azure_file: Optional[AzureFileVolume] = ..., + name: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.NGroupContainerGroupProperties(_Model): + containers: Optional[list[NGroupCGPropertyContainer]] + subnet_ids: Optional[list[ContainerGroupSubnetId]] + volumes: Optional[list[NGroupCGPropertyVolume]] + + @overload + def __init__( + self, + *, + containers: Optional[list[NGroupCGPropertyContainer]] = ..., + subnet_ids: Optional[list[ContainerGroupSubnetId]] = ..., + volumes: Optional[list[NGroupCGPropertyVolume]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.NGroupIdentity(_Model): + principal_id: Optional[str] + tenant_id: Optional[str] + type: Optional[Union[str, ResourceIdentityType]] + user_assigned_identities: Optional[dict[str, UserAssignedIdentities]] + + @overload + def __init__( + self, + *, + type: Optional[Union[str, ResourceIdentityType]] = ..., + user_assigned_identities: Optional[dict[str, UserAssignedIdentities]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.NGroupPatch(_Model): + identity: Optional[NGroupIdentity] + properties: Optional[NGroupProperties] + system_data: Optional[SystemData] + tags: Optional[dict[str, str]] + zones: Optional[list[str]] + + def __getattr__(self, name: str) -> Any: ... + + @overload + def __init__( + self, + *, + identity: Optional[NGroupIdentity] = ..., + properties: Optional[NGroupProperties] = ..., + tags: Optional[dict[str, str]] = ..., + zones: Optional[list[str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + def __setattr__( + self, + key: str, + value: Any + ) -> None: ... + + + class azure.mgmt.containerinstance.models.NGroupProperties(_Model): + container_group_profiles: Optional[list[ContainerGroupProfileStub]] + elastic_profile: Optional[ElasticProfile] + placement_profile: Optional[PlacementProfile] + provisioning_state: Optional[Union[str, NGroupProvisioningState]] + update_profile: Optional[UpdateProfile] + + @overload + def __init__( + self, + *, + container_group_profiles: Optional[list[ContainerGroupProfileStub]] = ..., + elastic_profile: Optional[ElasticProfile] = ..., + placement_profile: Optional[PlacementProfile] = ..., + update_profile: Optional[UpdateProfile] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.NGroupProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CANCELED = "Canceled" + CREATING = "Creating" + DELETING = "Deleting" + FAILED = "Failed" + MIGRATING = "Migrating" + SUCCEEDED = "Succeeded" + UPDATING = "Updating" + + + class azure.mgmt.containerinstance.models.NGroupUpdateMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): + MANUAL = "Manual" + ROLLING = "Rolling" + + + class azure.mgmt.containerinstance.models.NetworkProfile(_Model): + application_gateway: Optional[ApplicationGateway] + load_balancer: Optional[LoadBalancer] + + @overload + def __init__( + self, + *, + application_gateway: Optional[ApplicationGateway] = ..., + load_balancer: Optional[LoadBalancer] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): + LINUX = "Linux" + WINDOWS = "Windows" + + + class azure.mgmt.containerinstance.models.Operation(_Model): + display: OperationDisplay + name: str + origin: Optional[Union[str, ContainerInstanceOperationsOrigin]] + properties: Optional[Any] + + def __getattr__(self, name: str) -> Any: ... + + @overload + def __init__( + self, + *, + display: OperationDisplay, + name: str, + origin: Optional[Union[str, ContainerInstanceOperationsOrigin]] = ..., + properties: Optional[Any] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + def __setattr__( + self, + key: str, + value: Any + ) -> None: ... + + + class azure.mgmt.containerinstance.models.OperationDisplay(_Model): + description: Optional[str] + operation: Optional[str] + provider: Optional[str] + resource: Optional[str] + + @overload + def __init__( + self, + *, + description: Optional[str] = ..., + operation: Optional[str] = ..., + provider: Optional[str] = ..., + resource: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.PlacementProfile(_Model): + fault_domain_count: Optional[int] + + @overload + def __init__( + self, + *, + fault_domain_count: Optional[int] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.Port(_Model): + port: int + protocol: Optional[Union[str, ContainerGroupNetworkProtocol]] + + @overload + def __init__( + self, + *, + port: int, + protocol: Optional[Union[str, ContainerGroupNetworkProtocol]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ProxyResource(ArmResource): + id: str + name: str + system_data: SystemData + type: str + + + class azure.mgmt.containerinstance.models.Resource(_Model): + id: Optional[str] + location: Optional[str] + name: Optional[str] + tags: Optional[dict[str, str]] + type: Optional[str] + zones: Optional[list[str]] + + @overload + def __init__( + self, + *, + location: Optional[str] = ..., + tags: Optional[dict[str, str]] = ..., + zones: Optional[list[str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ResourceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + NONE = "None" + SYSTEM_ASSIGNED = "SystemAssigned" + SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned, UserAssigned" + USER_ASSIGNED = "UserAssigned" + + + class azure.mgmt.containerinstance.models.ResourceLimits(_Model): + cpu: Optional[float] + gpu: Optional[GpuResource] + memory_in_gb: Optional[float] + + @overload + def __init__( + self, + *, + cpu: Optional[float] = ..., + gpu: Optional[GpuResource] = ..., + memory_in_gb: Optional[float] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ResourceRequests(_Model): + cpu: float + gpu: Optional[GpuResource] + memory_in_gb: float + + @overload + def __init__( + self, + *, + cpu: float, + gpu: Optional[GpuResource] = ..., + memory_in_gb: float + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.ResourceRequirements(_Model): + limits: Optional[ResourceLimits] + requests: ResourceRequests + + @overload + def __init__( + self, + *, + limits: Optional[ResourceLimits] = ..., + requests: ResourceRequests + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.Scheme(str, Enum, metaclass=CaseInsensitiveEnumMeta): + HTTP = "http" + HTTPS = "https" + + + class azure.mgmt.containerinstance.models.SecretReference(_Model): + identity: str + name: str + secret_reference_uri: str + + @overload + def __init__( + self, + *, + identity: str, + name: str, + secret_reference_uri: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.SecurityContextCapabilitiesDefinition(_Model): + add: Optional[list[str]] + drop: Optional[list[str]] + + @overload + def __init__( + self, + *, + add: Optional[list[str]] = ..., + drop: Optional[list[str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.SecurityContextDefinition(_Model): + allow_privilege_escalation: Optional[bool] + capabilities: Optional[SecurityContextCapabilitiesDefinition] + privileged: Optional[bool] + run_as_group: Optional[int] + run_as_user: Optional[int] + seccomp_profile: Optional[str] + + @overload + def __init__( + self, + *, + allow_privilege_escalation: Optional[bool] = ..., + capabilities: Optional[SecurityContextCapabilitiesDefinition] = ..., + privileged: Optional[bool] = ..., + run_as_group: Optional[int] = ..., + run_as_user: Optional[int] = ..., + seccomp_profile: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.StandbyPoolProfileDefinition(_Model): + fail_container_group_create_on_reuse_failure: Optional[bool] + id: Optional[str] + + @overload + def __init__( + self, + *, + fail_container_group_create_on_reuse_failure: Optional[bool] = ..., + id: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.StorageProfile(_Model): + file_shares: Optional[list[FileShare]] + + @overload + def __init__( + self, + *, + file_shares: Optional[list[FileShare]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.SubnetReference(_Model): + id: str + + @overload + def __init__( + self, + *, + id: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.SystemData(_Model): + created_at: Optional[datetime] + created_by: Optional[str] + created_by_type: Optional[Union[str, CreatedByType]] + last_modified_at: Optional[datetime] + last_modified_by: Optional[str] + last_modified_by_type: Optional[Union[str, CreatedByType]] + + @overload + def __init__( + self, + *, + created_at: Optional[datetime] = ..., + created_by: Optional[str] = ..., + created_by_type: Optional[Union[str, CreatedByType]] = ..., + last_modified_at: Optional[datetime] = ..., + last_modified_by: Optional[str] = ..., + last_modified_by_type: Optional[Union[str, CreatedByType]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.TrackedResource(ArmResource): + id: str + location: str + name: str + system_data: SystemData + tags: Optional[dict[str, str]] + type: str + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.UpdateProfile(_Model): + rolling_update_profile: Optional[UpdateProfileRollingUpdateProfile] + update_mode: Optional[Union[str, NGroupUpdateMode]] + + @overload + def __init__( + self, + *, + rolling_update_profile: Optional[UpdateProfileRollingUpdateProfile] = ..., + update_mode: Optional[Union[str, NGroupUpdateMode]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.UpdateProfileRollingUpdateProfile(_Model): + in_place_update: Optional[bool] + max_batch_percent: Optional[int] + max_unhealthy_percent: Optional[int] + pause_time_between_batches: Optional[str] + + @overload + def __init__( + self, + *, + in_place_update: Optional[bool] = ..., + max_batch_percent: Optional[int] = ..., + max_unhealthy_percent: Optional[int] = ..., + pause_time_between_batches: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.Usage(_Model): + current_value: Optional[int] + id: Optional[str] + limit: Optional[int] + name: Optional[UsageName] + unit: Optional[str] + + + class azure.mgmt.containerinstance.models.UsageName(_Model): + localized_value: Optional[str] + value: Optional[str] + + + class azure.mgmt.containerinstance.models.UserAssignedIdentities(_Model): + client_id: Optional[str] + principal_id: Optional[str] + + + class azure.mgmt.containerinstance.models.UserAssignedIdentity(_Model): + client_id: Optional[str] + principal_id: Optional[str] + + + class azure.mgmt.containerinstance.models.Volume(_Model): + azure_file: Optional[AzureFileVolume] + empty_dir: Optional[Any] + git_repo: Optional[GitRepoVolume] + name: str + secret: Optional[dict[str, str]] + secret_reference: Optional[dict[str, str]] + + @overload + def __init__( + self, + *, + azure_file: Optional[AzureFileVolume] = ..., + empty_dir: Optional[Any] = ..., + git_repo: Optional[GitRepoVolume] = ..., + name: str, + secret: Optional[dict[str, str]] = ..., + secret_reference: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.containerinstance.models.VolumeMount(_Model): + mount_path: str + name: str + read_only: Optional[bool] + + @overload + def __init__( + self, + *, + mount_path: str, + name: str, + read_only: Optional[bool] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + +namespace azure.mgmt.containerinstance.operations + + class azure.mgmt.containerinstance.operations.AiAgentsGroupsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + ai_agents_group_name: str, + resource: AiAgentsGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[AiAgentsGroup]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + ai_agents_group_name: str, + resource: AiAgentsGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[AiAgentsGroup]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + ai_agents_group_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[AiAgentsGroup]: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-08-01-preview', params_added_on={'2026-08-01-preview': ['api_version', 'subscription_id', 'resource_group_name', 'ai_agents_group_name']}, api_versions_list=['2026-08-01-preview']) + def begin_delete( + self, + resource_group_name: str, + ai_agents_group_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + ai_agents_group_name: str, + properties: AiAgentsGroupTagsUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[AiAgentsGroup]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + ai_agents_group_name: str, + properties: AiAgentsGroupTagsUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[AiAgentsGroup]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + ai_agents_group_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[AiAgentsGroup]: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-08-01-preview', params_added_on={'2026-08-01-preview': ['api_version', 'subscription_id', 'resource_group_name', 'ai_agents_group_name', 'accept']}, api_versions_list=['2026-08-01-preview']) + def connect( + self, + resource_group_name: str, + ai_agents_group_name: str, + **kwargs: Any + ) -> AiAgentsGroupAccessToken: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-08-01-preview', params_added_on={'2026-08-01-preview': ['api_version', 'subscription_id', 'resource_group_name', 'ai_agents_group_name', 'accept']}, api_versions_list=['2026-08-01-preview']) + def get( + self, + resource_group_name: str, + ai_agents_group_name: str, + **kwargs: Any + ) -> AiAgentsGroup: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-08-01-preview', params_added_on={'2026-08-01-preview': ['api_version', 'subscription_id', 'resource_group_name', 'accept']}, api_versions_list=['2026-08-01-preview']) + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> ItemPaged[AiAgentsGroup]: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-08-01-preview', params_added_on={'2026-08-01-preview': ['api_version', 'subscription_id', 'accept']}, api_versions_list=['2026-08-01-preview']) + def list_by_subscription(self, **kwargs: Any) -> ItemPaged[AiAgentsGroup]: ... + + + class azure.mgmt.containerinstance.operations.CGProfileOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + def create_or_update( + self, + resource_group_name: str, + container_group_profile_name: str, + container_group_profile: ContainerGroupProfile, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroupProfile: ... + + @overload + def create_or_update( + self, + resource_group_name: str, + container_group_profile_name: str, + container_group_profile: ContainerGroupProfile, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroupProfile: ... + + @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 + ) -> ContainerGroupProfile: ... + + @distributed_trace + def delete( + self, + resource_group_name: str, + container_group_profile_name: str, + **kwargs: Any + ) -> None: ... + + @distributed_trace + def get( + self, + resource_group_name: str, + container_group_profile_name: str, + **kwargs: Any + ) -> ContainerGroupProfile: ... + + @distributed_trace + def get_by_revision_number( + self, + resource_group_name: str, + container_group_profile_name: str, + revision_number: str, + **kwargs: Any + ) -> ContainerGroupProfile: ... + + @distributed_trace + def list_all_revisions( + self, + resource_group_name: str, + container_group_profile_name: str, + **kwargs: Any + ) -> ItemPaged[ContainerGroupProfile]: ... + + @overload + def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: ContainerGroupProfilePatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroupProfile: ... + + @overload + def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: ContainerGroupProfilePatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroupProfile: ... + + @overload + def update( + self, + resource_group_name: str, + container_group_profile_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroupProfile: ... + + + class azure.mgmt.containerinstance.operations.CGProfilesOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> ItemPaged[ContainerGroupProfile]: ... + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> ItemPaged[ContainerGroupProfile]: ... + + + class azure.mgmt.containerinstance.operations.ContainerGroupsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + container_group_name: str, + container_group: ContainerGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ContainerGroup]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + container_group_name: str, + container_group: ContainerGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ContainerGroup]: ... + + @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[ContainerGroup]: ... + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + container_group_name: str, + **kwargs: Any + ) -> LROPoller[ContainerGroup]: ... + + @distributed_trace + def begin_restart( + self, + resource_group_name: str, + container_group_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @distributed_trace + def begin_start( + self, + resource_group_name: str, + container_group_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @distributed_trace + def get( + self, + resource_group_name: str, + container_group_name: str, + **kwargs: Any + ) -> ContainerGroup: ... + + @distributed_trace + def get_outbound_network_dependencies_endpoints( + self, + resource_group_name: str, + container_group_name: str, + **kwargs: Any + ) -> List[str]: ... + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged[ContainerGroup]: ... + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> ItemPaged[ContainerGroup]: ... + + @distributed_trace + def stop( + self, + resource_group_name: str, + container_group_name: str, + **kwargs: Any + ) -> None: ... + + @overload + def update( + self, + resource_group_name: str, + container_group_name: str, + resource: Resource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroup: ... + + @overload + def update( + self, + resource_group_name: str, + container_group_name: str, + resource: Resource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroup: ... + + @overload + def update( + self, + resource_group_name: str, + container_group_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerGroup: ... + + + class azure.mgmt.containerinstance.operations.ContainersOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace + def attach( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + **kwargs: Any + ) -> ContainerAttachResponse: ... + + @overload + def execute_command( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + container_exec_request: ContainerExecRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerExecResponse: ... + + @overload + def execute_command( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + container_exec_request: ContainerExecRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ContainerExecResponse: ... + + @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 + ) -> ContainerExecResponse: ... + + @distributed_trace + def list_logs( + self, + resource_group_name: str, + container_group_name: str, + container_name: str, + *, + tail: Optional[int] = ..., + timestamps: Optional[bool] = ..., + **kwargs: Any + ) -> Logs: ... + + + class azure.mgmt.containerinstance.operations.LocationOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace + def list_cached_images( + self, + location: str, + **kwargs: Any + ) -> ItemPaged[CachedImages]: ... + + @distributed_trace + def list_capabilities( + self, + location: str, + **kwargs: Any + ) -> ItemPaged[Capabilities]: ... + + @distributed_trace + def list_usage( + self, + location: str, + **kwargs: Any + ) -> ItemPaged[Usage]: ... + + + class azure.mgmt.containerinstance.operations.NGroupsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: NGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[NGroup]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: NGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[NGroup]: ... + + @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[NGroup]: ... + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + ngroups_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @distributed_trace + def begin_restart( + self, + resource_group_name: str, + ngroups_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @distributed_trace + def begin_start( + self, + resource_group_name: str, + ngroups_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: NGroupPatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[NGroup]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: NGroupPatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[NGroup]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + ngroups_name: str, + n_group: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[NGroup]: ... + + @distributed_trace + def get( + self, + resource_group_name: str, + ngroups_name: str, + **kwargs: Any + ) -> NGroup: ... + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged[NGroup]: ... + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> ItemPaged[NGroup]: ... + + @distributed_trace + def stop( + self, + resource_group_name: str, + ngroups_name: str, + **kwargs: Any + ) -> None: ... + + + class azure.mgmt.containerinstance.operations.Operations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged[Operation]: ... + + + class azure.mgmt.containerinstance.operations.SubnetServiceAssociationLinkOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + virtual_network_name: str, + subnet_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + +namespace azure.mgmt.containerinstance.types + + class azure.mgmt.containerinstance.types.AiAgentsGroup(TrackedResource): + key "id": str + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + key "location": Required[str] + key "name": str + key "properties": ForwardRef('AiAgentsGroupProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + identity: ManagedServiceIdentity + location: str + name: str + properties: AiAgentsGroupProperties + system_data: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.containerinstance.types.AiAgentsGroupNetworkProfile(TypedDict, total=False): + subnets: list[SubnetReference] + + + class azure.mgmt.containerinstance.types.AiAgentsGroupProperties(TypedDict, total=False): + key "managementResourceGroupId": str + key "networkProfile": ForwardRef('AiAgentsGroupNetworkProfile', module='types') + key "provisioningState": Union[str, AiAgentsGroupProvisioningState] + management_resource_group_id: str + network_profile: AiAgentsGroupNetworkProfile + provisioning_state: Union[str, AiAgentsGroupProvisioningState] + + + class azure.mgmt.containerinstance.types.AiAgentsGroupTagsUpdate(TypedDict, total=False): + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + identity: ManagedServiceIdentity + tags: dict[str, str] + + + class azure.mgmt.containerinstance.types.ApiEntityReference(TypedDict, total=False): + key "id": str + id: str + + + class azure.mgmt.containerinstance.types.ApplicationGateway(TypedDict, total=False): + key "resource": str + backendAddressPools: list[ApplicationGatewayBackendAddressPool] + backend_address_pools: list[ApplicationGatewayBackendAddressPool] + resource: str + + + class azure.mgmt.containerinstance.types.ApplicationGatewayBackendAddressPool(TypedDict, total=False): + key "resource": str + resource: str + + + class azure.mgmt.containerinstance.types.ArmResource(TypedDict, total=False): + key "id": str + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + system_data: SystemData + type: str + + + class azure.mgmt.containerinstance.types.AzureFileVolume(TypedDict, total=False): + key "readOnly": bool + key "shareName": Required[str] + key "storageAccountKey": str + key "storageAccountKeyReference": str + key "storageAccountName": Required[str] + key "userAssignedIdentityClientId": str + read_only: bool + share_name: str + storage_account_key: str + storage_account_key_reference: str + storage_account_name: str + user_assigned_identity_client_id: str + + + class azure.mgmt.containerinstance.types.ConfidentialComputeProperties(TypedDict, total=False): + key "ccePolicy": str + cce_policy: str + + + class azure.mgmt.containerinstance.types.ConfigMap(TypedDict, total=False): + keyValuePairs: dict[str, str] + key_value_pairs: dict[str, str] + + + class azure.mgmt.containerinstance.types.Container(TypedDict, total=False): + key "name": Required[str] + key "properties": Required[ContainerProperties] + name: str + properties: ContainerProperties + + + class azure.mgmt.containerinstance.types.ContainerExec(TypedDict, total=False): + command: list[str] + + + class azure.mgmt.containerinstance.types.ContainerExecRequest(TypedDict, total=False): + key "command": str + key "terminalSize": ForwardRef('ContainerExecRequestTerminalSize', module='types') + command: str + terminal_size: ContainerExecRequestTerminalSize + + + class azure.mgmt.containerinstance.types.ContainerExecRequestTerminalSize(TypedDict, total=False): + key "cols": int + key "rows": int + cols: int + rows: int + + + class azure.mgmt.containerinstance.types.ContainerGroup(ProxyResource): + key "id": str + key "identity": ForwardRef('ContainerGroupIdentity', module='types') + key "location": str + key "name": str + key "properties": Required[ContainerGroupProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + identity: ContainerGroupIdentity + location: str + name: str + properties: ContainerGroupProperties + system_data: SystemData + tags: dict[str, str] + type: str + zones: list[str] + + + class azure.mgmt.containerinstance.types.ContainerGroupDiagnostics(TypedDict, total=False): + key "logAnalytics": ForwardRef('LogAnalytics', module='types') + log_analytics: LogAnalytics + + + class azure.mgmt.containerinstance.types.ContainerGroupIdentity(TypedDict, total=False): + key "principalId": str + key "tenantId": str + key "type": Union[str, ResourceIdentityType] + principal_id: str + tenant_id: str + type: Union[str, ResourceIdentityType] + userAssignedIdentities: dict[str, UserAssignedIdentities] + user_assigned_identities: dict[str, UserAssignedIdentities] + + + class azure.mgmt.containerinstance.types.ContainerGroupProfile(ProxyResource): + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('ContainerGroupProfileProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + location: str + name: str + properties: ContainerGroupProfileProperties + system_data: SystemData + tags: dict[str, str] + type: str + zones: list[str] + + + class azure.mgmt.containerinstance.types.ContainerGroupProfilePatch(TypedDict, total=False): + tags: dict[str, str] + + + class azure.mgmt.containerinstance.types.ContainerGroupProfileProperties(TypedDict, total=False): + key "confidentialComputeProperties": ForwardRef('ConfidentialComputeProperties', module='types') + key "containers": Required[list[Container]] + key "diagnostics": ForwardRef('ContainerGroupDiagnostics', module='types') + key "encryptionProperties": ForwardRef('EncryptionProperties', module='types') + key "ipAddress": ForwardRef('IpAddress', module='types') + key "osType": Required[Union[str, OperatingSystemTypes]] + key "priority": Union[str, ContainerGroupPriority] + key "restartPolicy": Union[str, ContainerGroupRestartPolicy] + key "revision": int + key "securityContext": ForwardRef('SecurityContextDefinition', module='types') + key "shutdownGracePeriod": str + key "sku": Union[str, ContainerGroupSku] + key "timeToLive": str + key "useKrypton": bool + confidential_compute_properties: ConfidentialComputeProperties + containers: list[Container] + diagnostics: ContainerGroupDiagnostics + encryption_properties: EncryptionProperties + extensions: list[DeploymentExtensionSpec] + imageRegistryCredentials: list[ImageRegistryCredential] + image_registry_credentials: list[ImageRegistryCredential] + initContainers: list[InitContainerDefinition] + init_containers: list[InitContainerDefinition] + ip_address: IpAddress + os_type: Union[str, OperatingSystemTypes] + priority: Union[str, ContainerGroupPriority] + registeredRevisions: list[int] + registered_revisions: list[int] + restart_policy: Union[str, ContainerGroupRestartPolicy] + revision: int + security_context: SecurityContextDefinition + shutdown_grace_period: str + sku: Union[str, ContainerGroupSku] + time_to_live: str + use_krypton: bool + volumes: list[Volume] + + + class azure.mgmt.containerinstance.types.ContainerGroupProfileReferenceDefinition(TypedDict, total=False): + key "id": str + key "revision": int + id: str + revision: int + + + class azure.mgmt.containerinstance.types.ContainerGroupProfileStub(TypedDict, total=False): + key "containerGroupProperties": ForwardRef('NGroupContainerGroupProperties', module='types') + key "networkProfile": ForwardRef('NetworkProfile', module='types') + key "resource": ForwardRef('ApiEntityReference', module='types') + key "revision": int + key "storageProfile": ForwardRef('StorageProfile', module='types') + container_group_properties: NGroupContainerGroupProperties + network_profile: NetworkProfile + resource: ApiEntityReference + revision: int + storage_profile: StorageProfile + + + class azure.mgmt.containerinstance.types.ContainerGroupProperties(TypedDict, total=False): + key "confidentialComputeProperties": ForwardRef('ConfidentialComputeProperties', module='types') + key "containerGroupProfile": ForwardRef('ContainerGroupProfileReferenceDefinition', module='types') + key "containers": Required[list[Container]] + key "diagnostics": ForwardRef('ContainerGroupDiagnostics', module='types') + key "dnsConfig": ForwardRef('DnsConfiguration', module='types') + key "encryptionProperties": ForwardRef('EncryptionProperties', module='types') + key "identityAcls": ForwardRef('IdentityAcls', module='types') + key "instanceView": ForwardRef('ContainerGroupPropertiesInstanceView', module='types') + key "ipAddress": ForwardRef('IpAddress', module='types') + key "isCreatedFromStandbyPool": bool + key "osType": Union[str, OperatingSystemTypes] + key "priority": Union[str, ContainerGroupPriority] + key "provisioningState": str + key "restartPolicy": Union[str, ContainerGroupRestartPolicy] + key "sku": Union[str, ContainerGroupSku] + key "standbyPoolProfile": ForwardRef('StandbyPoolProfileDefinition', module='types') + confidential_compute_properties: ConfidentialComputeProperties + container_group_profile: ContainerGroupProfileReferenceDefinition + containers: list[Container] + diagnostics: ContainerGroupDiagnostics + dns_config: DnsConfiguration + encryption_properties: EncryptionProperties + extensions: list[DeploymentExtensionSpec] + identity_acls: IdentityAcls + imageRegistryCredentials: list[ImageRegistryCredential] + image_registry_credentials: list[ImageRegistryCredential] + initContainers: list[InitContainerDefinition] + init_containers: list[InitContainerDefinition] + instance_view: ContainerGroupPropertiesInstanceView + ip_address: IpAddress + is_created_from_standby_pool: bool + os_type: Union[str, OperatingSystemTypes] + priority: Union[str, ContainerGroupPriority] + provisioning_state: str + restart_policy: Union[str, ContainerGroupRestartPolicy] + secretReferences: list[SecretReference] + secret_references: list[SecretReference] + sku: Union[str, ContainerGroupSku] + standby_pool_profile: StandbyPoolProfileDefinition + subnetIds: list[ContainerGroupSubnetId] + subnet_ids: list[ContainerGroupSubnetId] + volumes: list[Volume] + + + class azure.mgmt.containerinstance.types.ContainerGroupPropertiesInstanceView(TypedDict, total=False): + key "state": str + events: list[Event] + state: str + + + class azure.mgmt.containerinstance.types.ContainerGroupSubnetId(TypedDict, total=False): + key "id": Required[str] + key "name": str + id: str + name: str + + + class azure.mgmt.containerinstance.types.ContainerHttpGet(TypedDict, total=False): + key "path": str + key "port": Required[int] + key "scheme": Union[str, Scheme] + httpHeaders: list[HttpHeader] + http_headers: list[HttpHeader] + path: str + port: int + scheme: Union[str, Scheme] + + + class azure.mgmt.containerinstance.types.ContainerPort(TypedDict, total=False): + key "port": Required[int] + key "protocol": Union[str, ContainerNetworkProtocol] + port: int + protocol: Union[str, ContainerNetworkProtocol] + + + class azure.mgmt.containerinstance.types.ContainerProbe(TypedDict, total=False): + key "exec": ForwardRef('ContainerExec', module='types') + key "failureThreshold": int + key "httpGet": ForwardRef('ContainerHttpGet', module='types') + key "initialDelaySeconds": int + key "periodSeconds": int + key "successThreshold": int + key "timeoutSeconds": int + exec_property: ContainerExec + failure_threshold: int + http_get: ContainerHttpGet + initial_delay_seconds: int + period_seconds: int + success_threshold: int + timeout_seconds: int + + + class azure.mgmt.containerinstance.types.ContainerProperties(TypedDict, total=False): + key "configMap": ForwardRef('ConfigMap', module='types') + key "image": str + key "instanceView": ForwardRef('ContainerPropertiesInstanceView', module='types') + key "livenessProbe": ForwardRef('ContainerProbe', module='types') + key "readinessProbe": ForwardRef('ContainerProbe', module='types') + key "resources": ForwardRef('ResourceRequirements', module='types') + key "securityContext": ForwardRef('SecurityContextDefinition', module='types') + command: list[str] + config_map: ConfigMap + environmentVariables: list[EnvironmentVariable] + environment_variables: list[EnvironmentVariable] + image: str + instance_view: ContainerPropertiesInstanceView + liveness_probe: ContainerProbe + ports: list[ContainerPort] + readiness_probe: ContainerProbe + resources: ResourceRequirements + security_context: SecurityContextDefinition + volumeMounts: list[VolumeMount] + volume_mounts: list[VolumeMount] + + + class azure.mgmt.containerinstance.types.ContainerPropertiesInstanceView(TypedDict, total=False): + key "currentState": ForwardRef('ContainerState', module='types') + key "previousState": ForwardRef('ContainerState', module='types') + key "restartCount": int + current_state: ContainerState + events: list[Event] + previous_state: ContainerState + restart_count: int + + + class azure.mgmt.containerinstance.types.ContainerState(TypedDict, total=False): + key "detailStatus": str + key "exitCode": int + key "finishTime": str + key "startTime": str + key "state": str + detail_status: str + exit_code: int + finish_time: str + start_time: str + state: str + + + class azure.mgmt.containerinstance.types.DeploymentExtensionSpec(TypedDict, total=False): + key "name": Required[str] + key "properties": ForwardRef('DeploymentExtensionSpecProperties', module='types') + name: str + properties: DeploymentExtensionSpecProperties + + + class azure.mgmt.containerinstance.types.DeploymentExtensionSpecProperties(TypedDict, total=False): + key "extensionType": Required[str] + key "protectedSettings": Any + key "settings": Any + key "version": Required[str] + extension_type: str + protected_settings: Any + settings: Any + version: str + + + class azure.mgmt.containerinstance.types.DnsConfiguration(TypedDict, total=False): + key "nameServers": Required[list[str]] + key "options": str + key "searchDomains": str + name_servers: list[str] + options: str + search_domains: str + + + class azure.mgmt.containerinstance.types.ElasticProfile(TypedDict, total=False): + key "containerGroupNamingPolicy": ForwardRef('ElasticProfileContainerGroupNamingPolicy', module='types') + key "desiredCount": int + key "maintainDesiredCount": bool + container_group_naming_policy: ElasticProfileContainerGroupNamingPolicy + desired_count: int + maintain_desired_count: bool + + + class azure.mgmt.containerinstance.types.ElasticProfileContainerGroupNamingPolicy(TypedDict, total=False): + key "guidNamingPolicy": ForwardRef('ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy', module='types') + guid_naming_policy: ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy + + + class azure.mgmt.containerinstance.types.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy(TypedDict, total=False): + key "prefix": str + prefix: str + + + class azure.mgmt.containerinstance.types.EncryptionProperties(TypedDict, total=False): + key "identity": str + key "keyName": Required[str] + key "keyVersion": Required[str] + key "vaultBaseUrl": Required[str] + identity: str + key_name: str + key_version: str + vault_base_url: str + + + class azure.mgmt.containerinstance.types.EnvironmentVariable(TypedDict, total=False): + key "name": Required[str] + key "secureValue": str + key "secureValueReference": str + key "value": str + name: str + secure_value: str + secure_value_reference: str + value: str + + + class azure.mgmt.containerinstance.types.Event(TypedDict, total=False): + key "count": int + key "firstTimestamp": str + key "lastTimestamp": str + key "message": str + key "name": str + key "type": str + count: int + first_timestamp: str + last_timestamp: str + message: str + name: str + type: str + + + class azure.mgmt.containerinstance.types.FileShare(TypedDict, total=False): + key "name": str + key "properties": ForwardRef('FileShareProperties', module='types') + key "resourceGroupName": str + key "storageAccountName": str + name: str + properties: FileShareProperties + resource_group_name: str + storage_account_name: str + + + class azure.mgmt.containerinstance.types.FileShareProperties(TypedDict, total=False): + key "shareAccessTier": Union[str, AzureFileShareAccessTier] + key "shareAccessType": Union[str, AzureFileShareAccessType] + share_access_tier: Union[str, AzureFileShareAccessTier] + share_access_type: Union[str, AzureFileShareAccessType] + + + class azure.mgmt.containerinstance.types.GitRepoVolume(TypedDict, total=False): + key "directory": str + key "repository": Required[str] + key "revision": str + directory: str + repository: str + revision: str + + + class azure.mgmt.containerinstance.types.GpuResource(TypedDict, total=False): + key "count": Required[int] + key "sku": Required[Union[str, GpuSku]] + count: int + sku: Union[str, GpuSku] + + + class azure.mgmt.containerinstance.types.HttpHeader(TypedDict, total=False): + key "name": str + key "value": str + name: str + value: str + + + class azure.mgmt.containerinstance.types.IdentityAccessControl(TypedDict, total=False): + key "access": Union[str, IdentityAccessLevel] + key "identity": str + access: Union[str, IdentityAccessLevel] + identity: str + + + class azure.mgmt.containerinstance.types.IdentityAcls(TypedDict, total=False): + key "defaultAccess": Union[str, IdentityAccessLevel] + acls: list[IdentityAccessControl] + default_access: Union[str, IdentityAccessLevel] + + + class azure.mgmt.containerinstance.types.ImageRegistryCredential(TypedDict, total=False): + key "identity": str + key "identityUrl": str + key "password": str + key "passwordReference": str + key "server": Required[str] + key "username": str + identity: str + identity_url: str + password: str + password_reference: str + server: str + username: str + + + class azure.mgmt.containerinstance.types.InitContainerDefinition(TypedDict, total=False): + key "name": Required[str] + key "properties": Required[InitContainerPropertiesDefinition] + name: str + properties: InitContainerPropertiesDefinition + + + class azure.mgmt.containerinstance.types.InitContainerPropertiesDefinition(TypedDict, total=False): + key "image": str + key "instanceView": ForwardRef('InitContainerPropertiesDefinitionInstanceView', module='types') + key "securityContext": ForwardRef('SecurityContextDefinition', module='types') + command: list[str] + environmentVariables: list[EnvironmentVariable] + environment_variables: list[EnvironmentVariable] + image: str + instance_view: InitContainerPropertiesDefinitionInstanceView + security_context: SecurityContextDefinition + volumeMounts: list[VolumeMount] + volume_mounts: list[VolumeMount] + + + class azure.mgmt.containerinstance.types.InitContainerPropertiesDefinitionInstanceView(TypedDict, total=False): + key "currentState": ForwardRef('ContainerState', module='types') + key "previousState": ForwardRef('ContainerState', module='types') + key "restartCount": int + current_state: ContainerState + events: list[Event] + previous_state: ContainerState + restart_count: int + + + class azure.mgmt.containerinstance.types.IpAddress(TypedDict, total=False): + key "autoGeneratedDomainNameLabelScope": Union[str, DnsNameLabelReusePolicy] + key "dnsNameLabel": str + key "fqdn": str + key "ip": str + key "ports": Required[list[Port]] + key "type": Required[Union[str, ContainerGroupIpAddressType]] + auto_generated_domain_name_label_scope: Union[str, DnsNameLabelReusePolicy] + dns_name_label: str + fqdn: str + ip: str + ports: list[Port] + type: Union[str, ContainerGroupIpAddressType] + + + class azure.mgmt.containerinstance.types.LoadBalancer(TypedDict, total=False): + backendAddressPools: list[LoadBalancerBackendAddressPool] + backend_address_pools: list[LoadBalancerBackendAddressPool] + + + class azure.mgmt.containerinstance.types.LoadBalancerBackendAddressPool(TypedDict, total=False): + key "resource": str + resource: str + + + class azure.mgmt.containerinstance.types.LogAnalytics(TypedDict, total=False): + key "logType": Union[str, LogAnalyticsLogType] + key "workspaceId": Required[str] + key "workspaceKey": Required[str] + key "workspaceResourceId": str + log_type: Union[str, LogAnalyticsLogType] + metadata: dict[str, str] + workspace_id: str + workspace_key: str + workspace_resource_id: str + + + class azure.mgmt.containerinstance.types.ManagedServiceIdentity(TypedDict, total=False): + key "principalId": str + key "tenantId": str + key "type": Required[Union[str, ManagedServiceIdentityType]] + principal_id: str + tenant_id: str + type: Union[str, ManagedServiceIdentityType] + userAssignedIdentities: dict[str, UserAssignedIdentity] + user_assigned_identities: dict[str, UserAssignedIdentity] + + + class azure.mgmt.containerinstance.types.NGroup(ProxyResource): + key "id": str + key "identity": ForwardRef('NGroupIdentity', module='types') + key "location": str + key "name": str + key "properties": ForwardRef('NGroupProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + identity: NGroupIdentity + location: str + name: str + properties: NGroupProperties + system_data: SystemData + tags: dict[str, str] + type: str + zones: list[str] + + + class azure.mgmt.containerinstance.types.NGroupCGPropertyContainer(TypedDict, total=False): + key "name": str + key "properties": ForwardRef('NGroupCGPropertyContainerProperties', module='types') + name: str + properties: NGroupCGPropertyContainerProperties + + + class azure.mgmt.containerinstance.types.NGroupCGPropertyContainerProperties(TypedDict, total=False): + volumeMounts: list[VolumeMount] + volume_mounts: list[VolumeMount] + + + class azure.mgmt.containerinstance.types.NGroupCGPropertyVolume(TypedDict, total=False): + key "azureFile": ForwardRef('AzureFileVolume', module='types') + key "name": Required[str] + azure_file: AzureFileVolume + name: str + + + class azure.mgmt.containerinstance.types.NGroupContainerGroupProperties(TypedDict, total=False): + containers: list[NGroupCGPropertyContainer] + subnetIds: list[ContainerGroupSubnetId] + subnet_ids: list[ContainerGroupSubnetId] + volumes: list[NGroupCGPropertyVolume] + + + class azure.mgmt.containerinstance.types.NGroupIdentity(TypedDict, total=False): + key "principalId": str + key "tenantId": str + key "type": Union[str, ResourceIdentityType] + principal_id: str + tenant_id: str + type: Union[str, ResourceIdentityType] + userAssignedIdentities: dict[str, UserAssignedIdentities] + user_assigned_identities: dict[str, UserAssignedIdentities] + + + class azure.mgmt.containerinstance.types.NGroupPatch(TypedDict, total=False): + key "identity": ForwardRef('NGroupIdentity', module='types') + key "properties": ForwardRef('NGroupProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + identity: NGroupIdentity + properties: NGroupProperties + system_data: SystemData + tags: dict[str, str] + zones: list[str] + + + class azure.mgmt.containerinstance.types.NGroupProperties(TypedDict, total=False): + key "elasticProfile": ForwardRef('ElasticProfile', module='types') + key "placementProfile": ForwardRef('PlacementProfile', module='types') + key "provisioningState": Union[str, NGroupProvisioningState] + key "updateProfile": ForwardRef('UpdateProfile', module='types') + containerGroupProfiles: list[ContainerGroupProfileStub] + container_group_profiles: list[ContainerGroupProfileStub] + elastic_profile: ElasticProfile + placement_profile: PlacementProfile + provisioning_state: Union[str, NGroupProvisioningState] + update_profile: UpdateProfile + + + class azure.mgmt.containerinstance.types.NetworkProfile(TypedDict, total=False): + key "applicationGateway": ForwardRef('ApplicationGateway', module='types') + key "loadBalancer": ForwardRef('LoadBalancer', module='types') + application_gateway: ApplicationGateway + load_balancer: LoadBalancer + + + class azure.mgmt.containerinstance.types.PlacementProfile(TypedDict, total=False): + key "faultDomainCount": int + fault_domain_count: int + + + class azure.mgmt.containerinstance.types.Port(TypedDict, total=False): + key "port": Required[int] + key "protocol": Union[str, ContainerGroupNetworkProtocol] + port: int + protocol: Union[str, ContainerGroupNetworkProtocol] + + + class azure.mgmt.containerinstance.types.ProxyResource(ArmResource): + key "id": str + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + system_data: SystemData + type: str + + + class azure.mgmt.containerinstance.types.Resource(TypedDict, total=False): + key "id": str + key "location": str + key "name": str + key "type": str + id: str + location: str + name: str + tags: dict[str, str] + type: str + zones: list[str] + + + class azure.mgmt.containerinstance.types.ResourceLimits(TypedDict, total=False): + key "cpu": float + key "gpu": ForwardRef('GpuResource', module='types') + key "memoryInGB": float + cpu: float + gpu: GpuResource + memory_in_gb: float + + + class azure.mgmt.containerinstance.types.ResourceRequests(TypedDict, total=False): + key "cpu": Required[float] + key "gpu": ForwardRef('GpuResource', module='types') + key "memoryInGB": Required[float] + cpu: float + gpu: GpuResource + memory_in_gb: float + + + class azure.mgmt.containerinstance.types.ResourceRequirements(TypedDict, total=False): + key "limits": ForwardRef('ResourceLimits', module='types') + key "requests": Required[ResourceRequests] + limits: ResourceLimits + requests: ResourceRequests + + + class azure.mgmt.containerinstance.types.SecretReference(TypedDict, total=False): + key "identity": Required[str] + key "name": Required[str] + key "secretReferenceUri": Required[str] + identity: str + name: str + secret_reference_uri: str + + + class azure.mgmt.containerinstance.types.SecurityContextCapabilitiesDefinition(TypedDict, total=False): + add: list[str] + drop: list[str] + + + class azure.mgmt.containerinstance.types.SecurityContextDefinition(TypedDict, total=False): + key "allowPrivilegeEscalation": bool + key "capabilities": ForwardRef('SecurityContextCapabilitiesDefinition', module='types') + key "privileged": bool + key "runAsGroup": int + key "runAsUser": int + key "seccompProfile": str + allow_privilege_escalation: bool + capabilities: SecurityContextCapabilitiesDefinition + privileged: bool + run_as_group: int + run_as_user: int + seccomp_profile: str + + + class azure.mgmt.containerinstance.types.StandbyPoolProfileDefinition(TypedDict, total=False): + key "failContainerGroupCreateOnReuseFailure": bool + key "id": str + fail_container_group_create_on_reuse_failure: bool + id: str + + + class azure.mgmt.containerinstance.types.StorageProfile(TypedDict, total=False): + fileShares: list[FileShare] + file_shares: list[FileShare] + + + class azure.mgmt.containerinstance.types.SubnetReference(TypedDict, total=False): + key "id": Required[str] + id: str + + + class azure.mgmt.containerinstance.types.SystemData(TypedDict, total=False): + key "createdAt": str + key "createdBy": str + key "createdByType": Union[str, CreatedByType] + key "lastModifiedAt": str + key "lastModifiedBy": str + key "lastModifiedByType": Union[str, CreatedByType] + created_at: str + created_by: str + created_by_type: Union[str, CreatedByType] + last_modified_at: str + last_modified_by: str + last_modified_by_type: Union[str, CreatedByType] + + + class azure.mgmt.containerinstance.types.TrackedResource(ArmResource): + key "id": str + key "location": Required[str] + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + location: str + name: str + system_data: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.containerinstance.types.UpdateProfile(TypedDict, total=False): + key "rollingUpdateProfile": ForwardRef('UpdateProfileRollingUpdateProfile', module='types') + key "updateMode": Union[str, NGroupUpdateMode] + rolling_update_profile: UpdateProfileRollingUpdateProfile + update_mode: Union[str, NGroupUpdateMode] + + + class azure.mgmt.containerinstance.types.UpdateProfileRollingUpdateProfile(TypedDict, total=False): + key "inPlaceUpdate": bool + key "maxBatchPercent": int + key "maxUnhealthyPercent": int + key "pauseTimeBetweenBatches": str + in_place_update: bool + max_batch_percent: int + max_unhealthy_percent: int + pause_time_between_batches: str + + + class azure.mgmt.containerinstance.types.UserAssignedIdentities(TypedDict, total=False): + key "clientId": str + key "principalId": str + client_id: str + principal_id: str + + + class azure.mgmt.containerinstance.types.UserAssignedIdentity(TypedDict, total=False): + key "clientId": str + key "principalId": str + client_id: str + principal_id: str + + + class azure.mgmt.containerinstance.types.Volume(TypedDict, total=False): + key "azureFile": ForwardRef('AzureFileVolume', module='types') + key "emptyDir": Any + key "gitRepo": ForwardRef('GitRepoVolume', module='types') + key "name": Required[str] + azure_file: AzureFileVolume + empty_dir: Any + git_repo: GitRepoVolume + name: str + secret: dict[str, str] + secretReference: dict[str, str] + secret_reference: dict[str, str] + + + class azure.mgmt.containerinstance.types.VolumeMount(TypedDict, total=False): + key "mountPath": Required[str] + key "name": Required[str] + key "readOnly": bool + mount_path: str + name: str + read_only: bool + + +``` \ No newline at end of file diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/api.metadata.yml b/sdk/containerinstance/azure-mgmt-containerinstance/api.metadata.yml new file mode 100644 index 000000000000..5bb9efeaaf0c --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/api.metadata.yml @@ -0,0 +1,3 @@ +apiMdSha256: 9c4e96309d2c8b203f233756ce2caeca9715737bb24bac7cb4efb357537d7f45 +parserVersion: 0.3.30 +pythonVersion: 3.13.14 diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json b/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json index 463cd4f8c7c9..529d8e338a25 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json +++ b/sdk/containerinstance/azure-mgmt-containerinstance/apiview-properties.json @@ -1,10 +1,16 @@ { "CrossLanguagePackageId": "Microsoft.ContainerInstance", "CrossLanguageDefinitionId": { + "azure.mgmt.containerinstance.models.ArmResource": "Azure.ResourceManager.CommonTypes.Resource", + "azure.mgmt.containerinstance.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource", + "azure.mgmt.containerinstance.models.AiAgentsGroup": "Microsoft.ContainerInstance.AiAgentsGroup", + "azure.mgmt.containerinstance.models.AiAgentsGroupAccessToken": "Microsoft.ContainerInstance.AiAgentsGroupAccessToken", + "azure.mgmt.containerinstance.models.AiAgentsGroupNetworkProfile": "Microsoft.ContainerInstance.AiAgentsGroupNetworkProfile", + "azure.mgmt.containerinstance.models.AiAgentsGroupProperties": "Microsoft.ContainerInstance.AiAgentsGroupProperties", + "azure.mgmt.containerinstance.models.AiAgentsGroupTagsUpdate": "Microsoft.ContainerInstance.AiAgentsGroupTagsUpdate", "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", @@ -83,12 +89,6 @@ "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.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource", - "azure.mgmt.containerinstance.models.SandboxGroup": "Microsoft.ContainerInstance.SandboxGroup", - "azure.mgmt.containerinstance.models.SandboxGroupAccessToken": "Microsoft.ContainerInstance.SandboxGroupAccessToken", - "azure.mgmt.containerinstance.models.SandboxGroupNetworkProfile": "Microsoft.ContainerInstance.SandboxGroupNetworkProfile", - "azure.mgmt.containerinstance.models.SandboxGroupProperties": "Microsoft.ContainerInstance.SandboxGroupProperties", - "azure.mgmt.containerinstance.models.SandboxGroupTagsUpdate": "Microsoft.ContainerInstance.SandboxGroupTagsUpdate", "azure.mgmt.containerinstance.models.SecretReference": "Microsoft.ContainerInstance.SecretReference", "azure.mgmt.containerinstance.models.SecurityContextCapabilitiesDefinition": "Microsoft.ContainerInstance.SecurityContextCapabilitiesDefinition", "azure.mgmt.containerinstance.models.SecurityContextDefinition": "Microsoft.ContainerInstance.SecurityContextDefinition", @@ -123,7 +123,7 @@ "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.models.SandboxGroupProvisioningState": "Microsoft.ContainerInstance.SandboxGroupProvisioningState", + "azure.mgmt.containerinstance.models.AiAgentsGroupProvisioningState": "Microsoft.ContainerInstance.AiAgentsGroupProvisioningState", "azure.mgmt.containerinstance.models.ManagedServiceIdentityType": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType", "azure.mgmt.containerinstance.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list", "azure.mgmt.containerinstance.aio.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list", @@ -177,20 +177,20 @@ "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.SandboxGroupsOperations.list_by_subscription": "Microsoft.ContainerInstance.SandboxGroups.listBySubscription", - "azure.mgmt.containerinstance.aio.operations.SandboxGroupsOperations.list_by_subscription": "Microsoft.ContainerInstance.SandboxGroups.listBySubscription", - "azure.mgmt.containerinstance.operations.SandboxGroupsOperations.list_by_resource_group": "Microsoft.ContainerInstance.SandboxGroups.listByResourceGroup", - "azure.mgmt.containerinstance.aio.operations.SandboxGroupsOperations.list_by_resource_group": "Microsoft.ContainerInstance.SandboxGroups.listByResourceGroup", - "azure.mgmt.containerinstance.operations.SandboxGroupsOperations.get": "Microsoft.ContainerInstance.SandboxGroups.get", - "azure.mgmt.containerinstance.aio.operations.SandboxGroupsOperations.get": "Microsoft.ContainerInstance.SandboxGroups.get", - "azure.mgmt.containerinstance.operations.SandboxGroupsOperations.begin_create_or_update": "Microsoft.ContainerInstance.SandboxGroups.createOrUpdate", - "azure.mgmt.containerinstance.aio.operations.SandboxGroupsOperations.begin_create_or_update": "Microsoft.ContainerInstance.SandboxGroups.createOrUpdate", - "azure.mgmt.containerinstance.operations.SandboxGroupsOperations.begin_update": "Microsoft.ContainerInstance.SandboxGroups.update", - "azure.mgmt.containerinstance.aio.operations.SandboxGroupsOperations.begin_update": "Microsoft.ContainerInstance.SandboxGroups.update", - "azure.mgmt.containerinstance.operations.SandboxGroupsOperations.begin_delete": "Microsoft.ContainerInstance.SandboxGroups.delete", - "azure.mgmt.containerinstance.aio.operations.SandboxGroupsOperations.begin_delete": "Microsoft.ContainerInstance.SandboxGroups.delete", - "azure.mgmt.containerinstance.operations.SandboxGroupsOperations.connect": "Microsoft.ContainerInstance.SandboxGroups.connect", - "azure.mgmt.containerinstance.aio.operations.SandboxGroupsOperations.connect": "Microsoft.ContainerInstance.SandboxGroups.connect", + "azure.mgmt.containerinstance.operations.AiAgentsGroupsOperations.list_by_subscription": "Microsoft.ContainerInstance.AiAgentsGroups.listBySubscription", + "azure.mgmt.containerinstance.aio.operations.AiAgentsGroupsOperations.list_by_subscription": "Microsoft.ContainerInstance.AiAgentsGroups.listBySubscription", + "azure.mgmt.containerinstance.operations.AiAgentsGroupsOperations.list_by_resource_group": "Microsoft.ContainerInstance.AiAgentsGroups.listByResourceGroup", + "azure.mgmt.containerinstance.aio.operations.AiAgentsGroupsOperations.list_by_resource_group": "Microsoft.ContainerInstance.AiAgentsGroups.listByResourceGroup", + "azure.mgmt.containerinstance.operations.AiAgentsGroupsOperations.get": "Microsoft.ContainerInstance.AiAgentsGroups.get", + "azure.mgmt.containerinstance.aio.operations.AiAgentsGroupsOperations.get": "Microsoft.ContainerInstance.AiAgentsGroups.get", + "azure.mgmt.containerinstance.operations.AiAgentsGroupsOperations.begin_create_or_update": "Microsoft.ContainerInstance.AiAgentsGroups.createOrUpdate", + "azure.mgmt.containerinstance.aio.operations.AiAgentsGroupsOperations.begin_create_or_update": "Microsoft.ContainerInstance.AiAgentsGroups.createOrUpdate", + "azure.mgmt.containerinstance.operations.AiAgentsGroupsOperations.begin_update": "Microsoft.ContainerInstance.AiAgentsGroups.update", + "azure.mgmt.containerinstance.aio.operations.AiAgentsGroupsOperations.begin_update": "Microsoft.ContainerInstance.AiAgentsGroups.update", + "azure.mgmt.containerinstance.operations.AiAgentsGroupsOperations.begin_delete": "Microsoft.ContainerInstance.AiAgentsGroups.delete", + "azure.mgmt.containerinstance.aio.operations.AiAgentsGroupsOperations.begin_delete": "Microsoft.ContainerInstance.AiAgentsGroups.delete", + "azure.mgmt.containerinstance.operations.AiAgentsGroupsOperations.connect": "Microsoft.ContainerInstance.AiAgentsGroups.connect", + "azure.mgmt.containerinstance.aio.operations.AiAgentsGroupsOperations.connect": "Microsoft.ContainerInstance.AiAgentsGroups.connect", "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", @@ -210,5 +210,5 @@ "azure.mgmt.containerinstance.operations.SubnetServiceAssociationLinkOperations.begin_delete": "Microsoft.ContainerInstance.SubnetServiceAssociationLinkOperationGroup.delete", "azure.mgmt.containerinstance.aio.operations.SubnetServiceAssociationLinkOperations.begin_delete": "Microsoft.ContainerInstance.SubnetServiceAssociationLinkOperationGroup.delete" }, - "CrossLanguageVersion": "833191393460" + "CrossLanguageVersion": "07d5bdb3c6aa" } \ No newline at end of file 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 30852f5e19a2..7e88b767b700 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_client.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_client.py @@ -20,6 +20,7 @@ from ._configuration import ContainerInstanceManagementClientConfiguration from ._utils.serialization import Deserializer, Serializer from .operations import ( + AiAgentsGroupsOperations, CGProfileOperations, CGProfilesOperations, ContainerGroupsOperations, @@ -27,7 +28,6 @@ LocationOperations, NGroupsOperations, Operations, - SandboxGroupsOperations, SubnetServiceAssociationLinkOperations, ) @@ -52,8 +52,8 @@ class ContainerInstanceManagementClient: # pylint: disable=too-many-instance-at :vartype ngroups: azure.mgmt.containerinstance.operations.NGroupsOperations :ivar cg_profile: CGProfileOperations operations :vartype cg_profile: azure.mgmt.containerinstance.operations.CGProfileOperations - :ivar sandbox_groups: SandboxGroupsOperations operations - :vartype sandbox_groups: azure.mgmt.containerinstance.operations.SandboxGroupsOperations + :ivar ai_agents_groups: AiAgentsGroupsOperations operations + :vartype ai_agents_groups: azure.mgmt.containerinstance.operations.AiAgentsGroupsOperations :ivar containers: ContainersOperations operations :vartype containers: azure.mgmt.containerinstance.operations.ContainersOperations :ivar cg_profiles: CGProfilesOperations operations @@ -73,7 +73,7 @@ class ContainerInstanceManagementClient: # pylint: disable=too-many-instance-at None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2026-06-01-preview" and None. Default value is None. If not set, the operation's default API + "2026-08-01-preview" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -134,7 +134,7 @@ def __init__( ) self.ngroups = NGroupsOperations(self._client, self._config, self._serialize, self._deserialize) self.cg_profile = CGProfileOperations(self._client, self._config, self._serialize, self._deserialize) - self.sandbox_groups = SandboxGroupsOperations(self._client, self._config, self._serialize, self._deserialize) + self.ai_agents_groups = AiAgentsGroupsOperations(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) 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 58d8a0e3ce57..ecbc11127a34 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py @@ -34,7 +34,7 @@ class ContainerInstanceManagementClientConfiguration: # pylint: disable=too-man None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2026-06-01-preview" and None. Default value is None. If not set, the operation's default API + "2026-08-01-preview" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -48,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2026-06-01-preview") + api_version: str = kwargs.pop("api_version", "2026-08-01-preview") if credential is None: raise ValueError("Parameter 'credential' must not be None.") 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 ea765788358a..87676c65a8f0 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_patch.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_patch.py @@ -8,6 +8,7 @@ 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 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 index d725c55906d3..0f2c5bdfe70f 100644 --- 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 @@ -109,6 +109,29 @@ def _serialize_bytes(o, format: typing.Optional[str] = None) -> str: return encoded +def _serialize_duration(td: timedelta, format: typing.Optional[str] = None): + """Serialize a timedelta to its wire representation. + + For the ``seconds``/``milliseconds`` encodings the value is converted to a + numeric value, otherwise it falls back to an ISO 8601 duration string. + + :param timedelta td: The timedelta to serialize. + :param str format: The duration encoding format. + :rtype: int or float or str + :return: serialized duration + """ + seconds = td.total_seconds() + if format == "duration-seconds-int": + return int(seconds) + if format == "duration-seconds-float": + return seconds + if format == "duration-milliseconds-int": + return int(seconds * 1000) + if format == "duration-milliseconds-float": + return seconds * 1000 + return _timedelta_as_isostr(td) + + def _serialize_datetime(o, format: typing.Optional[str] = None): if hasattr(o, "year") and hasattr(o, "hour"): if format == "rfc7231": @@ -301,6 +324,12 @@ def _deserialize_duration(attr): return isodate.parse_duration(attr) +def _deserialize_duration_numeric(attr, unit): + if isinstance(attr, timedelta): + return attr + return timedelta(**{unit: float(attr)}) + + def _deserialize_decimal(attr): if isinstance(attr, decimal.Decimal): return attr @@ -330,6 +359,10 @@ def _deserialize_int_as_str(attr): "unix-timestamp": _deserialize_datetime_unix_timestamp, "base64": _deserialize_bytes, "base64url": _deserialize_bytes_base64, + "duration-seconds-int": functools.partial(_deserialize_duration_numeric, unit="seconds"), + "duration-seconds-float": functools.partial(_deserialize_duration_numeric, unit="seconds"), + "duration-milliseconds-int": functools.partial(_deserialize_duration_numeric, unit="milliseconds"), + "duration-milliseconds-float": functools.partial(_deserialize_duration_numeric, unit="milliseconds"), } @@ -425,21 +458,21 @@ def __ne__(self, other: typing.Any) -> bool: def keys(self) -> typing.KeysView[str]: """ - :returns: a set-like object providing a view on D's keys + :returns: a set-like object providing a view on the mapping'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 + :returns: an object providing a view on the mapping'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 + :returns: a set-like object providing a view on the mapping's items :rtype: ~typing.ItemsView """ return self._data.items() @@ -449,7 +482,7 @@ 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. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ try: @@ -484,19 +517,19 @@ 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. + :raises KeyError: if the dictionary is empty. """ return self._data.popitem() def clear(self) -> None: """ - Remove all items from D. + Remove all items from the dictionary. """ 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. + Update the dictionary from a mapping or an iterable of key-value pairs. :param any args: Either a mapping object or an iterable of key-value pairs. """ self._data.update(*args, **kwargs) @@ -509,10 +542,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint 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 + Return the value for key if key is in the dictionary; otherwise set the key to + default and return default. :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. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ if default is _UNSET: @@ -564,7 +598,7 @@ def _serialize(o, format: typing.Optional[str] = None): # pylint: disable=too-m pass # Last, try datetime.timedelta try: - return _timedelta_as_isostr(o) + return _serialize_duration(o, format) except AttributeError: # This will be raised when it hits value.total_seconds in the method above pass 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 a088671e9c51..75906e2eb77f 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 @@ -520,6 +520,10 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None: "rfc-1123": Serializer.serialize_rfc, "unix-time": Serializer.serialize_unix, "duration": Serializer.serialize_duration, + "duration-seconds-int": Serializer.serialize_duration_seconds_int, + "duration-seconds-float": Serializer.serialize_duration_seconds_float, + "duration-milliseconds-int": Serializer.serialize_duration_milliseconds_int, + "duration-milliseconds-float": Serializer.serialize_duration_milliseconds_float, "date": Serializer.serialize_date, "time": Serializer.serialize_time, "decimal": Serializer.serialize_decimal, @@ -1109,6 +1113,61 @@ def serialize_duration(attr, **kwargs): # pylint: disable=unused-argument attr = isodate.parse_duration(attr) return isodate.duration_isoformat(attr) + @staticmethod + def _serialize_duration_numeric(attr, scale, as_int): + """Serialize a TimeDelta into a numeric value scaled to the wire unit. + + :param TimeDelta attr: Object to be serialized. + :param int scale: Multiplier applied to total seconds (1 for seconds, 1000 for milliseconds). + :param bool as_int: Whether to truncate the result to an int. + :rtype: int or float + :return: serialized duration + """ + if isinstance(attr, str): + attr = isodate.parse_duration(attr) + value = attr.total_seconds() * scale if isinstance(attr, datetime.timedelta) else attr + return int(value) if as_int else float(value) + + @staticmethod + def serialize_duration_seconds_int(attr, **kwargs): # pylint: disable=unused-argument + """Serialize TimeDelta object into an integer number of seconds. + + :param TimeDelta attr: Object to be serialized. + :rtype: int + :return: serialized duration + """ + return Serializer._serialize_duration_numeric(attr, 1, True) + + @staticmethod + def serialize_duration_seconds_float(attr, **kwargs): # pylint: disable=unused-argument + """Serialize TimeDelta object into a floating point number of seconds. + + :param TimeDelta attr: Object to be serialized. + :rtype: float + :return: serialized duration + """ + return Serializer._serialize_duration_numeric(attr, 1, False) + + @staticmethod + def serialize_duration_milliseconds_int(attr, **kwargs): # pylint: disable=unused-argument + """Serialize TimeDelta object into an integer number of milliseconds. + + :param TimeDelta attr: Object to be serialized. + :rtype: int + :return: serialized duration + """ + return Serializer._serialize_duration_numeric(attr, 1000, True) + + @staticmethod + def serialize_duration_milliseconds_float(attr, **kwargs): # pylint: disable=unused-argument + """Serialize TimeDelta object into a floating point number of milliseconds. + + :param TimeDelta attr: Object to be serialized. + :rtype: float + :return: serialized duration + """ + return Serializer._serialize_duration_numeric(attr, 1000, False) + @staticmethod def serialize_rfc(attr, **kwargs): # pylint: disable=unused-argument """Serialize Datetime object into RFC-1123 formatted string. @@ -1381,6 +1440,10 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None: "rfc-1123": Deserializer.deserialize_rfc, "unix-time": Deserializer.deserialize_unix, "duration": Deserializer.deserialize_duration, + "duration-seconds-int": Deserializer.deserialize_duration_seconds, + "duration-seconds-float": Deserializer.deserialize_duration_seconds, + "duration-milliseconds-int": Deserializer.deserialize_duration_milliseconds, + "duration-milliseconds-float": Deserializer.deserialize_duration_milliseconds, "date": Deserializer.deserialize_date, "time": Deserializer.deserialize_time, "decimal": Deserializer.deserialize_decimal, @@ -1393,6 +1456,10 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None: } self.deserialize_expected_types = { "duration": (isodate.Duration, datetime.timedelta), + "duration-seconds-int": (isodate.Duration, datetime.timedelta), + "duration-seconds-float": (isodate.Duration, datetime.timedelta), + "duration-milliseconds-int": (isodate.Duration, datetime.timedelta), + "duration-milliseconds-float": (isodate.Duration, datetime.timedelta), "iso-8601": (datetime.datetime), } self.dependencies: dict[str, type] = dict(classes) if classes else {} @@ -1954,6 +2021,48 @@ def deserialize_duration(attr): raise DeserializationError(msg) from err return duration + @staticmethod + def _deserialize_duration_numeric(attr, unit): + """Deserialize a numeric duration value into a TimeDelta object. + + :param float attr: response value to be deserialized. + :param str unit: The wire unit, used as the ``timedelta`` keyword + (``"seconds"`` or ``"milliseconds"``). + :return: Deserialized duration + :rtype: TimeDelta + :raises DeserializationError: if value is invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + try: + duration = datetime.timedelta(**{unit: float(attr)}) # type: ignore + except (ValueError, OverflowError, TypeError) as err: + msg = "Cannot deserialize duration object." + raise DeserializationError(msg) from err + return duration + + @staticmethod + def deserialize_duration_seconds(attr): + """Deserialize a numeric number of seconds into a TimeDelta object. + + :param float attr: response value to be deserialized. + :return: Deserialized duration + :rtype: TimeDelta + :raises DeserializationError: if value is invalid. + """ + return Deserializer._deserialize_duration_numeric(attr, "seconds") + + @staticmethod + def deserialize_duration_milliseconds(attr): + """Deserialize a numeric number of milliseconds into a TimeDelta object. + + :param float attr: response value to be deserialized. + :return: Deserialized duration + :rtype: TimeDelta + :raises DeserializationError: if value is invalid. + """ + return Deserializer._deserialize_duration_numeric(attr, "milliseconds") + @staticmethod def deserialize_date(attr): """Deserialize ISO-8601 formatted string into Date object. 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 f20d865d221c..a7c91865e11c 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.0b2" +VERSION = "10.2.0b3" 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 192b33453877..aa1ec377a44d 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 @@ -20,6 +20,7 @@ from .._utils.serialization import Deserializer, Serializer from ._configuration import ContainerInstanceManagementClientConfiguration from .operations import ( + AiAgentsGroupsOperations, CGProfileOperations, CGProfilesOperations, ContainerGroupsOperations, @@ -27,7 +28,6 @@ LocationOperations, NGroupsOperations, Operations, - SandboxGroupsOperations, SubnetServiceAssociationLinkOperations, ) @@ -53,8 +53,8 @@ class ContainerInstanceManagementClient: # pylint: disable=too-many-instance-at :vartype ngroups: azure.mgmt.containerinstance.aio.operations.NGroupsOperations :ivar cg_profile: CGProfileOperations operations :vartype cg_profile: azure.mgmt.containerinstance.aio.operations.CGProfileOperations - :ivar sandbox_groups: SandboxGroupsOperations operations - :vartype sandbox_groups: azure.mgmt.containerinstance.aio.operations.SandboxGroupsOperations + :ivar ai_agents_groups: AiAgentsGroupsOperations operations + :vartype ai_agents_groups: azure.mgmt.containerinstance.aio.operations.AiAgentsGroupsOperations :ivar containers: ContainersOperations operations :vartype containers: azure.mgmt.containerinstance.aio.operations.ContainersOperations :ivar cg_profiles: CGProfilesOperations operations @@ -74,7 +74,7 @@ class ContainerInstanceManagementClient: # pylint: disable=too-many-instance-at None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2026-06-01-preview" and None. Default value is None. If not set, the operation's default API + "2026-08-01-preview" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -137,7 +137,7 @@ def __init__( ) self.ngroups = NGroupsOperations(self._client, self._config, self._serialize, self._deserialize) self.cg_profile = CGProfileOperations(self._client, self._config, self._serialize, self._deserialize) - self.sandbox_groups = SandboxGroupsOperations(self._client, self._config, self._serialize, self._deserialize) + self.ai_agents_groups = AiAgentsGroupsOperations(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) 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 28f47ea419cd..d1d9520fbc96 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 @@ -34,7 +34,7 @@ class ContainerInstanceManagementClientConfiguration: # pylint: disable=too-man None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2026-06-01-preview" and None. Default value is None. If not set, the operation's default API + "2026-08-01-preview" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -48,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2026-06-01-preview") + api_version: str = kwargs.pop("api_version", "2026-08-01-preview") if credential is None: raise ValueError("Parameter 'credential' must not be None.") 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 ea765788358a..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 @@ -8,6 +8,7 @@ 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 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 ac78f51916c4..33ee077c1021 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 @@ -16,7 +16,7 @@ from ._operations import ContainerGroupsOperations # type: ignore from ._operations import NGroupsOperations # type: ignore from ._operations import CGProfileOperations # type: ignore -from ._operations import SandboxGroupsOperations # type: ignore +from ._operations import AiAgentsGroupsOperations # type: ignore from ._operations import ContainersOperations # type: ignore from ._operations import CGProfilesOperations # type: ignore from ._operations import LocationOperations # type: ignore @@ -31,7 +31,7 @@ "ContainerGroupsOperations", "NGroupsOperations", "CGProfileOperations", - "SandboxGroupsOperations", + "AiAgentsGroupsOperations", "ContainersOperations", "CGProfilesOperations", "LocationOperations", 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 ab97f53217ab..1a84880676fb 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 @@ -33,11 +33,18 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -from ... import models as _models +from ... import models as _models, types as _types from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from ..._utils.serialization import Deserializer, Serializer from ..._validation import api_version_validation from ...operations._operations import ( + build_ai_agents_groups_connect_request, + build_ai_agents_groups_create_or_update_request, + build_ai_agents_groups_delete_request, + build_ai_agents_groups_get_request, + build_ai_agents_groups_list_by_resource_group_request, + build_ai_agents_groups_list_by_subscription_request, + build_ai_agents_groups_update_request, build_cg_profile_create_or_update_request, build_cg_profile_delete_request, build_cg_profile_get_by_revision_number_request, @@ -72,20 +79,12 @@ build_ngroups_stop_request, build_ngroups_update_request, build_operations_list_request, - build_sandbox_groups_connect_request, - build_sandbox_groups_create_or_update_request, - build_sandbox_groups_delete_request, - build_sandbox_groups_get_request, - build_sandbox_groups_list_by_resource_group_request, - build_sandbox_groups_list_by_subscription_request, - build_sandbox_groups_update_request, build_subnet_service_association_link_delete_request, ) from .._configuration import ContainerInstanceManagementClientConfiguration T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -JSON = MutableMapping[str, Any] List = list @@ -298,7 +297,7 @@ async def _create_or_update_initial( self, resource_group_name: str, container_group_name: str, - container_group: Union[_models.ContainerGroup, JSON, IO[bytes]], + container_group: Union[_models.ContainerGroup, _types.ContainerGroup, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -405,7 +404,7 @@ async def begin_create_or_update( self, resource_group_name: str, container_group_name: str, - container_group: JSON, + container_group: _types.ContainerGroup, *, content_type: str = "application/json", **kwargs: Any @@ -421,7 +420,7 @@ async def begin_create_or_update( :type container_group_name: str :param container_group: The properties of the container group to be created or updated. Required. - :type container_group: JSON + :type container_group: ~azure.mgmt.containerinstance.types.ContainerGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -467,7 +466,7 @@ async def begin_create_or_update( self, resource_group_name: str, container_group_name: str, - container_group: Union[_models.ContainerGroup, JSON, IO[bytes]], + container_group: Union[_models.ContainerGroup, _types.ContainerGroup, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ContainerGroup]: """Create or update container groups. @@ -479,9 +478,10 @@ async def begin_create_or_update( :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] + :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 + ~azure.mgmt.containerinstance.types.ContainerGroup 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] @@ -573,7 +573,7 @@ async def update( self, resource_group_name: str, container_group_name: str, - resource: JSON, + resource: _types.Resource, *, content_type: str = "application/json", **kwargs: Any @@ -588,7 +588,7 @@ async def update( :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 + :type resource: ~azure.mgmt.containerinstance.types.Resource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -631,7 +631,7 @@ async def update( self, resource_group_name: str, container_group_name: str, - resource: Union[_models.Resource, JSON, IO[bytes]], + resource: Union[_models.Resource, _types.Resource, IO[bytes]], **kwargs: Any ) -> _models.ContainerGroup: """Update container groups. @@ -643,9 +643,10 @@ async def update( :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] + :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 + ~azure.mgmt.containerinstance.types.Resource or IO[bytes] :return: ContainerGroup. The ContainerGroup is compatible with MutableMapping :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup :raises ~azure.core.exceptions.HttpResponseError: @@ -1524,7 +1525,7 @@ async def _create_or_update_initial( self, resource_group_name: str, ngroups_name: str, - n_group: Union[_models.NGroup, JSON, IO[bytes]], + n_group: Union[_models.NGroup, _types.NGroup, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -1637,7 +1638,7 @@ async def begin_create_or_update( self, resource_group_name: str, ngroups_name: str, - n_group: JSON, + n_group: _types.NGroup, *, content_type: str = "application/json", **kwargs: Any @@ -1652,7 +1653,7 @@ async def begin_create_or_update( :param ngroups_name: The NGroups name. Required. :type ngroups_name: str :param n_group: The NGroup object. Required. - :type n_group: JSON + :type n_group: ~azure.mgmt.containerinstance.types.NGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1697,7 +1698,7 @@ async def begin_create_or_update( self, resource_group_name: str, ngroups_name: str, - n_group: Union[_models.NGroup, JSON, IO[bytes]], + n_group: Union[_models.NGroup, _types.NGroup, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.NGroup]: """NGroup PUT REST API. @@ -1709,9 +1710,9 @@ async def begin_create_or_update( :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] + :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 + ~azure.mgmt.containerinstance.types.NGroup 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] @@ -1778,7 +1779,7 @@ async def _update_initial( self, resource_group_name: str, ngroups_name: str, - n_group: Union[_models.NGroupPatch, JSON, IO[bytes]], + n_group: Union[_models.NGroupPatch, _types.NGroupPatch, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -1892,7 +1893,7 @@ async def begin_update( self, resource_group_name: str, ngroups_name: str, - n_group: JSON, + n_group: _types.NGroupPatch, *, content_type: str = "application/json", **kwargs: Any @@ -1907,7 +1908,7 @@ async def begin_update( :param ngroups_name: The NGroups name. Required. :type ngroups_name: str :param n_group: The NGroup object. Required. - :type n_group: JSON + :type n_group: ~azure.mgmt.containerinstance.types.NGroupPatch :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1952,7 +1953,7 @@ async def begin_update( self, resource_group_name: str, ngroups_name: str, - n_group: Union[_models.NGroupPatch, JSON, IO[bytes]], + n_group: Union[_models.NGroupPatch, _types.NGroupPatch, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.NGroup]: """NGroups PATCH REST API. @@ -1964,9 +1965,9 @@ async def begin_update( :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] + :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 + ~azure.mgmt.containerinstance.types.NGroupPatch 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] @@ -2965,7 +2966,7 @@ async def create_or_update( self, resource_group_name: str, container_group_profile_name: str, - container_group_profile: JSON, + container_group_profile: _types.ContainerGroupProfile, *, content_type: str = "application/json", **kwargs: Any @@ -2980,7 +2981,7 @@ async def create_or_update( :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 + :type container_group_profile: ~azure.mgmt.containerinstance.types.ContainerGroupProfile :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3023,7 +3024,7 @@ async def create_or_update( self, resource_group_name: str, container_group_profile_name: str, - container_group_profile: Union[_models.ContainerGroupProfile, JSON, IO[bytes]], + container_group_profile: Union[_models.ContainerGroupProfile, _types.ContainerGroupProfile, IO[bytes]], **kwargs: Any ) -> _models.ContainerGroupProfile: """Create or Update a ContainerGroupProfile. @@ -3035,10 +3036,10 @@ async def create_or_update( :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. + :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 - JSON or IO[bytes] + ~azure.mgmt.containerinstance.types.ContainerGroupProfile or IO[bytes] :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile :raises ~azure.core.exceptions.HttpResponseError: @@ -3149,7 +3150,7 @@ async def update( self, resource_group_name: str, container_group_profile_name: str, - properties: JSON, + properties: _types.ContainerGroupProfilePatch, *, content_type: str = "application/json", **kwargs: Any @@ -3164,7 +3165,7 @@ async def update( :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 + :type properties: ~azure.mgmt.containerinstance.types.ContainerGroupProfilePatch :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3207,7 +3208,7 @@ async def update( self, resource_group_name: str, container_group_profile_name: str, - properties: Union[_models.ContainerGroupProfilePatch, JSON, IO[bytes]], + properties: Union[_models.ContainerGroupProfilePatch, _types.ContainerGroupProfilePatch, IO[bytes]], **kwargs: Any ) -> _models.ContainerGroupProfile: """Container group profile PATCH REST API. @@ -3219,10 +3220,10 @@ async def update( :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] + :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 + ~azure.mgmt.containerinstance.types.ContainerGroupProfilePatch or IO[bytes] :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile :raises ~azure.core.exceptions.HttpResponseError: @@ -3359,14 +3360,14 @@ async def delete(self, resource_group_name: str, container_group_profile_name: s return cls(pipeline_response, None, {}) # type: ignore -class SandboxGroupsOperations: +class AiAgentsGroupsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.containerinstance.aio.ContainerInstanceManagementClient`'s - :attr:`sandbox_groups` attribute. + :attr:`ai_agents_groups` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -3380,24 +3381,24 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace @api_version_validation( - method_added_on="2026-06-01-preview", - params_added_on={"2026-06-01-preview": ["api_version", "subscription_id", "accept"]}, - api_versions_list=["2026-06-01-preview"], + method_added_on="2026-08-01-preview", + params_added_on={"2026-08-01-preview": ["api_version", "subscription_id", "accept"]}, + api_versions_list=["2026-08-01-preview"], ) - def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.SandboxGroup"]: - """List SandboxGroup resources by subscription ID. + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.AiAgentsGroup"]: + """List AiAgentsGroup resources by subscription ID. - List SandboxGroup resources by subscription ID. + List AiAgentsGroup resources by subscription ID. - :return: An iterator like instance of SandboxGroup + :return: An iterator like instance of AiAgentsGroup :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.SandboxGroup] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.SandboxGroup]] = kwargs.pop("cls", None) + cls: ClsType[List[_models.AiAgentsGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -3410,7 +3411,7 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.Sandbox def prepare_request(next_link=None): if not next_link: - _request = build_sandbox_groups_list_by_subscription_request( + _request = build_ai_agents_groups_list_by_subscription_request( subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -3451,7 +3452,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.SandboxGroup], + List[_models.AiAgentsGroup], deserialized.get("value", []), ) if cls: @@ -3481,27 +3482,29 @@ async def get_next(next_link=None): @distributed_trace @api_version_validation( - method_added_on="2026-06-01-preview", - params_added_on={"2026-06-01-preview": ["api_version", "subscription_id", "resource_group_name", "accept"]}, - api_versions_list=["2026-06-01-preview"], + method_added_on="2026-08-01-preview", + params_added_on={"2026-08-01-preview": ["api_version", "subscription_id", "resource_group_name", "accept"]}, + api_versions_list=["2026-08-01-preview"], ) - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.SandboxGroup"]: - """List SandboxGroup resources by resource group. + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.AiAgentsGroup"]: + """List AiAgentsGroup resources by resource group. - List SandboxGroup resources by resource group. + List AiAgentsGroup resources 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 SandboxGroup + :return: An iterator like instance of AiAgentsGroup :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.SandboxGroup] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.SandboxGroup]] = kwargs.pop("cls", None) + cls: ClsType[List[_models.AiAgentsGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -3514,7 +3517,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy def prepare_request(next_link=None): if not next_link: - _request = build_sandbox_groups_list_by_resource_group_request( + _request = build_ai_agents_groups_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, @@ -3556,7 +3559,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.SandboxGroup], + List[_models.AiAgentsGroup], deserialized.get("value", []), ) if cls: @@ -3586,30 +3589,30 @@ async def get_next(next_link=None): @distributed_trace_async @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": [ + "2026-08-01-preview": [ "api_version", "subscription_id", "resource_group_name", - "sandbox_group_name", + "ai_agents_group_name", "accept", ] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) - async def get(self, resource_group_name: str, sandbox_group_name: str, **kwargs: Any) -> _models.SandboxGroup: - """Get a SandboxGroup. + async def get(self, resource_group_name: str, ai_agents_group_name: str, **kwargs: Any) -> _models.AiAgentsGroup: + """Get an AiAgentsGroup. - Get a SandboxGroup. + Get an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str - :return: SandboxGroup. The SandboxGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.containerinstance.models.SandboxGroup + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str + :return: AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.AiAgentsGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -3623,11 +3626,11 @@ async def get(self, resource_group_name: str, sandbox_group_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.SandboxGroup] = kwargs.pop("cls", None) + cls: ClsType[_models.AiAgentsGroup] = kwargs.pop("cls", None) - _request = build_sandbox_groups_get_request( + _request = build_ai_agents_groups_get_request( resource_group_name=resource_group_name, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -3662,7 +3665,7 @@ async def get(self, resource_group_name: str, sandbox_group_name: str, **kwargs: if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SandboxGroup, response.json()) + deserialized = _deserialize(_models.AiAgentsGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -3670,24 +3673,24 @@ async def get(self, resource_group_name: str, sandbox_group_name: str, **kwargs: return deserialized # type: ignore @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": [ + "2026-08-01-preview": [ "api_version", "subscription_id", "resource_group_name", - "sandbox_group_name", + "ai_agents_group_name", "content_type", "accept", ] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) async def _create_or_update_initial( self, resource_group_name: str, - sandbox_group_name: str, - resource: Union[_models.SandboxGroup, JSON, IO[bytes]], + ai_agents_group_name: str, + resource: Union[_models.AiAgentsGroup, _types.AiAgentsGroup, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -3711,9 +3714,9 @@ async def _create_or_update_initial( else: _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_sandbox_groups_create_or_update_request( + _request = build_ai_agents_groups_create_or_update_request( resource_group_name=resource_group_name, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, subscription_id=self._config.subscription_id, content_type=content_type, api_version=self._config.api_version, @@ -3764,29 +3767,29 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - sandbox_group_name: str, - resource: _models.SandboxGroup, + ai_agents_group_name: str, + resource: _models.AiAgentsGroup, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SandboxGroup]: - """Create a SandboxGroup. + ) -> AsyncLROPoller[_models.AiAgentsGroup]: + """Create an AiAgentsGroup. - Create a SandboxGroup. + Create an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :param resource: Resource create parameters. Required. - :type resource: ~azure.mgmt.containerinstance.models.SandboxGroup + :type resource: ~azure.mgmt.containerinstance.models.AiAgentsGroup :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 SandboxGroup. The SandboxGroup is + :return: An instance of AsyncLROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -3794,29 +3797,29 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - sandbox_group_name: str, - resource: JSON, + ai_agents_group_name: str, + resource: _types.AiAgentsGroup, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SandboxGroup]: - """Create a SandboxGroup. + ) -> AsyncLROPoller[_models.AiAgentsGroup]: + """Create an AiAgentsGroup. - Create a SandboxGroup. + Create an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :param resource: Resource create parameters. Required. - :type resource: JSON + :type resource: ~azure.mgmt.containerinstance.types.AiAgentsGroup :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 SandboxGroup. The SandboxGroup is + :return: An instance of AsyncLROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -3824,83 +3827,84 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - sandbox_group_name: str, + ai_agents_group_name: str, resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SandboxGroup]: - """Create a SandboxGroup. + ) -> AsyncLROPoller[_models.AiAgentsGroup]: + """Create an AiAgentsGroup. - Create a SandboxGroup. + Create an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :param resource: Resource create parameters. 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: An instance of AsyncLROPoller that returns SandboxGroup. The SandboxGroup is + :return: An instance of AsyncLROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": [ + "2026-08-01-preview": [ "api_version", "subscription_id", "resource_group_name", - "sandbox_group_name", + "ai_agents_group_name", "content_type", "accept", ] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) async def begin_create_or_update( self, resource_group_name: str, - sandbox_group_name: str, - resource: Union[_models.SandboxGroup, JSON, IO[bytes]], + ai_agents_group_name: str, + resource: Union[_models.AiAgentsGroup, _types.AiAgentsGroup, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.SandboxGroup]: - """Create a SandboxGroup. + ) -> AsyncLROPoller[_models.AiAgentsGroup]: + """Create an AiAgentsGroup. - Create a SandboxGroup. + Create an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str - :param resource: Resource create parameters. Is one of the following types: SandboxGroup, JSON, - IO[bytes] Required. - :type resource: ~azure.mgmt.containerinstance.models.SandboxGroup or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns SandboxGroup. The SandboxGroup is + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str + :param resource: Resource create parameters. Is either a AiAgentsGroup type or a IO[bytes] + type. Required. + :type resource: ~azure.mgmt.containerinstance.models.AiAgentsGroup or + ~azure.mgmt.containerinstance.types.AiAgentsGroup or IO[bytes] + :return: An instance of AsyncLROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :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.SandboxGroup] = kwargs.pop("cls", None) + cls: ClsType[_models.AiAgentsGroup] = 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, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, resource=resource, content_type=content_type, cls=lambda x, y, z: x, @@ -3913,7 +3917,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.SandboxGroup, response.json()) + deserialized = _deserialize(_models.AiAgentsGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -3931,35 +3935,35 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.SandboxGroup].from_continuation_token( + return AsyncLROPoller[_models.AiAgentsGroup].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.SandboxGroup]( + return AsyncLROPoller[_models.AiAgentsGroup]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": [ + "2026-08-01-preview": [ "api_version", "subscription_id", "resource_group_name", - "sandbox_group_name", + "ai_agents_group_name", "content_type", "accept", ] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) async def _update_initial( self, resource_group_name: str, - sandbox_group_name: str, - properties: Union[_models.SandboxGroupTagsUpdate, JSON, IO[bytes]], + ai_agents_group_name: str, + properties: Union[_models.AiAgentsGroupTagsUpdate, _types.AiAgentsGroupTagsUpdate, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -3983,9 +3987,9 @@ async def _update_initial( else: _content = json.dumps(properties, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_sandbox_groups_update_request( + _request = build_ai_agents_groups_update_request( resource_group_name=resource_group_name, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, subscription_id=self._config.subscription_id, content_type=content_type, api_version=self._config.api_version, @@ -4034,29 +4038,29 @@ async def _update_initial( async def begin_update( self, resource_group_name: str, - sandbox_group_name: str, - properties: _models.SandboxGroupTagsUpdate, + ai_agents_group_name: str, + properties: _models.AiAgentsGroupTagsUpdate, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SandboxGroup]: - """Update a SandboxGroup. + ) -> AsyncLROPoller[_models.AiAgentsGroup]: + """Update an AiAgentsGroup. - Update a SandboxGroup. + Update an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :param properties: The resource properties to be updated. Required. - :type properties: ~azure.mgmt.containerinstance.models.SandboxGroupTagsUpdate + :type properties: ~azure.mgmt.containerinstance.models.AiAgentsGroupTagsUpdate :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 SandboxGroup. The SandboxGroup is + :return: An instance of AsyncLROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -4064,29 +4068,29 @@ async def begin_update( async def begin_update( self, resource_group_name: str, - sandbox_group_name: str, - properties: JSON, + ai_agents_group_name: str, + properties: _types.AiAgentsGroupTagsUpdate, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SandboxGroup]: - """Update a SandboxGroup. + ) -> AsyncLROPoller[_models.AiAgentsGroup]: + """Update an AiAgentsGroup. - Update a SandboxGroup. + Update an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :param properties: The resource properties to be updated. Required. - :type properties: JSON + :type properties: ~azure.mgmt.containerinstance.types.AiAgentsGroupTagsUpdate :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 SandboxGroup. The SandboxGroup is + :return: An instance of AsyncLROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -4094,84 +4098,84 @@ async def begin_update( async def begin_update( self, resource_group_name: str, - sandbox_group_name: str, + ai_agents_group_name: str, properties: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SandboxGroup]: - """Update a SandboxGroup. + ) -> AsyncLROPoller[_models.AiAgentsGroup]: + """Update an AiAgentsGroup. - Update a SandboxGroup. + Update an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :param properties: The resource properties 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: An instance of AsyncLROPoller that returns SandboxGroup. The SandboxGroup is + :return: An instance of AsyncLROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": [ + "2026-08-01-preview": [ "api_version", "subscription_id", "resource_group_name", - "sandbox_group_name", + "ai_agents_group_name", "content_type", "accept", ] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) async def begin_update( self, resource_group_name: str, - sandbox_group_name: str, - properties: Union[_models.SandboxGroupTagsUpdate, JSON, IO[bytes]], + ai_agents_group_name: str, + properties: Union[_models.AiAgentsGroupTagsUpdate, _types.AiAgentsGroupTagsUpdate, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.SandboxGroup]: - """Update a SandboxGroup. + ) -> AsyncLROPoller[_models.AiAgentsGroup]: + """Update an AiAgentsGroup. - Update a SandboxGroup. + Update an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str - :param properties: The resource properties to be updated. Is one of the following types: - SandboxGroupTagsUpdate, JSON, IO[bytes] Required. - :type properties: ~azure.mgmt.containerinstance.models.SandboxGroupTagsUpdate or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns SandboxGroup. The SandboxGroup is + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str + :param properties: The resource properties to be updated. Is either a AiAgentsGroupTagsUpdate + type or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.containerinstance.models.AiAgentsGroupTagsUpdate or + ~azure.mgmt.containerinstance.types.AiAgentsGroupTagsUpdate or IO[bytes] + :return: An instance of AsyncLROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :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.SandboxGroup] = kwargs.pop("cls", None) + cls: ClsType[_models.AiAgentsGroup] = 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, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, properties=properties, content_type=content_type, cls=lambda x, y, z: x, @@ -4184,7 +4188,7 @@ async def begin_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.SandboxGroup, response.json()) + deserialized = _deserialize(_models.AiAgentsGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -4202,25 +4206,25 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.SandboxGroup].from_continuation_token( + return AsyncLROPoller[_models.AiAgentsGroup].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.SandboxGroup]( + return AsyncLROPoller[_models.AiAgentsGroup]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": ["api_version", "subscription_id", "resource_group_name", "sandbox_group_name"] + "2026-08-01-preview": ["api_version", "subscription_id", "resource_group_name", "ai_agents_group_name"] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) async def _delete_initial( - self, resource_group_name: str, sandbox_group_name: str, **kwargs: Any + self, resource_group_name: str, ai_agents_group_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -4235,9 +4239,9 @@ async def _delete_initial( cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_sandbox_groups_delete_request( + _request = build_ai_agents_groups_delete_request( resource_group_name=resource_group_name, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -4282,24 +4286,24 @@ async def _delete_initial( @distributed_trace_async @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": ["api_version", "subscription_id", "resource_group_name", "sandbox_group_name"] + "2026-08-01-preview": ["api_version", "subscription_id", "resource_group_name", "ai_agents_group_name"] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) async def begin_delete( - self, resource_group_name: str, sandbox_group_name: str, **kwargs: Any + self, resource_group_name: str, ai_agents_group_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Delete a SandboxGroup. + """Delete an AiAgentsGroup. - Delete a SandboxGroup. + Delete an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -4314,7 +4318,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -4350,32 +4354,33 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @distributed_trace_async @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": [ + "2026-08-01-preview": [ "api_version", "subscription_id", "resource_group_name", - "sandbox_group_name", + "ai_agents_group_name", "accept", ] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) async def connect( - self, resource_group_name: str, sandbox_group_name: str, **kwargs: Any - ) -> _models.SandboxGroupAccessToken: - """Get an access token and endpoint for connecting to the SandboxGroup. + self, resource_group_name: str, ai_agents_group_name: str, **kwargs: Any + ) -> _models.AiAgentsGroupAccessToken: + """Get an access token and endpoint for connecting to the AiAgentsGroup. - Get an access token and endpoint for connecting to the SandboxGroup. + Get an access token and endpoint for connecting to the AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str - :return: SandboxGroupAccessToken. The SandboxGroupAccessToken is compatible with MutableMapping - :rtype: ~azure.mgmt.containerinstance.models.SandboxGroupAccessToken + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str + :return: AiAgentsGroupAccessToken. The AiAgentsGroupAccessToken is compatible with + MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.AiAgentsGroupAccessToken :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -4389,11 +4394,11 @@ async def connect( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.SandboxGroupAccessToken] = kwargs.pop("cls", None) + cls: ClsType[_models.AiAgentsGroupAccessToken] = kwargs.pop("cls", None) - _request = build_sandbox_groups_connect_request( + _request = build_ai_agents_groups_connect_request( resource_group_name=resource_group_name, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -4428,7 +4433,7 @@ async def connect( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SandboxGroupAccessToken, response.json()) + deserialized = _deserialize(_models.AiAgentsGroupAccessToken, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -4587,7 +4592,7 @@ async def execute_command( resource_group_name: str, container_group_name: str, container_name: str, - container_exec_request: JSON, + container_exec_request: _types.ContainerExecRequest, *, content_type: str = "application/json", **kwargs: Any @@ -4605,7 +4610,7 @@ async def execute_command( :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 + :type container_exec_request: ~azure.mgmt.containerinstance.types.ContainerExecRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4653,7 +4658,7 @@ async def execute_command( resource_group_name: str, container_group_name: str, container_name: str, - container_exec_request: Union[_models.ContainerExecRequest, JSON, IO[bytes]], + container_exec_request: Union[_models.ContainerExecRequest, _types.ContainerExecRequest, IO[bytes]], **kwargs: Any ) -> _models.ContainerExecResponse: """Executes a command in a specific container instance. @@ -4668,10 +4673,10 @@ async def execute_command( :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] + :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 + ~azure.mgmt.containerinstance.types.ContainerExecRequest or IO[bytes] :return: ContainerExecResponse. The ContainerExecResponse is compatible with MutableMapping :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse :raises ~azure.core.exceptions.HttpResponseError: 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 ea765788358a..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 @@ -8,6 +8,7 @@ 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 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 e565c7dbc530..75edd571e880 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 @@ -14,6 +14,11 @@ from ._models import ( # type: ignore + AiAgentsGroup, + AiAgentsGroupAccessToken, + AiAgentsGroupNetworkProfile, + AiAgentsGroupProperties, + AiAgentsGroupTagsUpdate, ApiEntityReference, ApplicationGateway, ApplicationGatewayBackendAddressPool, @@ -96,11 +101,6 @@ ResourceLimits, ResourceRequests, ResourceRequirements, - SandboxGroup, - SandboxGroupAccessToken, - SandboxGroupNetworkProfile, - SandboxGroupProperties, - SandboxGroupTagsUpdate, SecretReference, SecurityContextCapabilitiesDefinition, SecurityContextDefinition, @@ -120,6 +120,7 @@ ) from ._enums import ( # type: ignore + AiAgentsGroupProvisioningState, AzureFileShareAccessTier, AzureFileShareAccessType, ContainerGroupIpAddressType, @@ -139,7 +140,6 @@ NGroupUpdateMode, OperatingSystemTypes, ResourceIdentityType, - SandboxGroupProvisioningState, Scheme, ) from ._patch import __all__ as _patch_all @@ -147,6 +147,11 @@ from ._patch import patch_sdk as _patch_sdk __all__ = [ + "AiAgentsGroup", + "AiAgentsGroupAccessToken", + "AiAgentsGroupNetworkProfile", + "AiAgentsGroupProperties", + "AiAgentsGroupTagsUpdate", "ApiEntityReference", "ApplicationGateway", "ApplicationGatewayBackendAddressPool", @@ -229,11 +234,6 @@ "ResourceLimits", "ResourceRequests", "ResourceRequirements", - "SandboxGroup", - "SandboxGroupAccessToken", - "SandboxGroupNetworkProfile", - "SandboxGroupProperties", - "SandboxGroupTagsUpdate", "SecretReference", "SecurityContextCapabilitiesDefinition", "SecurityContextDefinition", @@ -250,6 +250,7 @@ "UserAssignedIdentity", "Volume", "VolumeMount", + "AiAgentsGroupProvisioningState", "AzureFileShareAccessTier", "AzureFileShareAccessType", "ContainerGroupIpAddressType", @@ -269,7 +270,6 @@ "NGroupUpdateMode", "OperatingSystemTypes", "ResourceIdentityType", - "SandboxGroupProvisioningState", "Scheme", ] __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/models/_enums.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_enums.py index 4c44eabf6c3d..16d83976f2bf 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_enums.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/_enums.py @@ -10,6 +10,23 @@ from azure.core import CaseInsensitiveEnumMeta +class AiAgentsGroupProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The provisioning state of an AiAgentsGroup resource.""" + + SUCCEEDED = "Succeeded" + """Resource has been created.""" + FAILED = "Failed" + """Resource creation failed.""" + CANCELED = "Canceled" + """Resource creation was canceled.""" + UPDATING = "Updating" + """The resource is being updated.""" + DELETING = "Deleting" + """The resource is being deleted.""" + ACCEPTED = "Accepted" + """The resource provisioning request was accepted but not yet started.""" + + 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: @@ -247,23 +264,6 @@ class ResourceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """None.""" -class SandboxGroupProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of a SandboxGroup resource.""" - - SUCCEEDED = "Succeeded" - """Resource has been created.""" - FAILED = "Failed" - """Resource creation failed.""" - CANCELED = "Canceled" - """Resource creation was canceled.""" - UPDATING = "Updating" - """The resource is being updated.""" - DELETING = "Deleting" - """The resource is being deleted.""" - ACCEPTED = "Accepted" - """The resource provisioning request was accepted but not yet started.""" - - class Scheme(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The scheme.""" 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 37c0fb31f640..0aadcefe24d4 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 @@ -17,6 +17,281 @@ from .. import models as _models +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 TrackedResource(ArmResource): + """Tracked 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 tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + """ + + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + location: str = rest_field(visibility=["read", "create"]) + """The geo-location where the resource lives. Required.""" + + @overload + def __init__( + self, + *, + location: str, + 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 AiAgentsGroup(TrackedResource): + """An AiAgentsGroup tracked 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 tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: The resource-specific properties for this resource. + :vartype properties: ~azure.mgmt.containerinstance.models.AiAgentsGroupProperties + :ivar identity: The managed service identities assigned to this resource. + :vartype identity: ~azure.mgmt.containerinstance.models.ManagedServiceIdentity + """ + + properties: Optional["_models.AiAgentsGroupProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The resource-specific properties for this resource.""" + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The managed service identities assigned to this resource.""" + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.AiAgentsGroupProperties"] = None, + identity: Optional["_models.ManagedServiceIdentity"] = 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 AiAgentsGroupAccessToken(_Model): + """The result of getting an access token for an AiAgentsGroup. + + :ivar endpoint: The endpoint URL to use with the access token. Required. + :vartype endpoint: str + :ivar access_token: The access token used to authenticate against the endpoint. Required. + :vartype access_token: str + :ivar not_after: The UTC date and time at which the access token expires. Required. + :vartype not_after: ~datetime.datetime + """ + + endpoint: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint URL to use with the access token. Required.""" + access_token: str = rest_field(name="accessToken", visibility=["read", "create", "update", "delete", "query"]) + """The access token used to authenticate against the endpoint. Required.""" + not_after: datetime.datetime = rest_field( + name="notAfter", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The UTC date and time at which the access token expires. Required.""" + + @overload + def __init__( + self, + *, + endpoint: str, + access_token: str, + not_after: datetime.datetime, + ) -> 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 AiAgentsGroupNetworkProfile(_Model): + """The network profile for an AiAgentsGroup. + + :ivar subnets: The list of subnets associated with the AiAgentsGroup. + :vartype subnets: list[~azure.mgmt.containerinstance.models.SubnetReference] + """ + + subnets: Optional[list["_models.SubnetReference"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The list of subnets associated with the AiAgentsGroup.""" + + @overload + def __init__( + self, + *, + subnets: Optional[list["_models.SubnetReference"]] = 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 AiAgentsGroupProperties(_Model): + """Properties of an AiAgentsGroup. + + :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", + "Failed", "Canceled", "Updating", "Deleting", and "Accepted". + :vartype provisioning_state: str or + ~azure.mgmt.containerinstance.models.AiAgentsGroupProvisioningState + :ivar network_profile: The network profile of the AiAgentsGroup. + :vartype network_profile: ~azure.mgmt.containerinstance.models.AiAgentsGroupNetworkProfile + :ivar management_resource_group_id: The ARM resource ID of the management resource group + associated with this AiAgentsGroup. + :vartype management_resource_group_id: str + """ + + provisioning_state: Optional[Union[str, "_models.AiAgentsGroupProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", + \"Updating\", \"Deleting\", and \"Accepted\".""" + network_profile: Optional["_models.AiAgentsGroupNetworkProfile"] = rest_field( + name="networkProfile", visibility=["read", "create"] + ) + """The network profile of the AiAgentsGroup.""" + management_resource_group_id: Optional[str] = rest_field(name="managementResourceGroupId", visibility=["read"]) + """The ARM resource ID of the management resource group associated with this AiAgentsGroup.""" + + @overload + def __init__( + self, + *, + network_profile: Optional["_models.AiAgentsGroupNetworkProfile"] = 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 AiAgentsGroupTagsUpdate(_Model): + """The type used for updating an AiAgentsGroup resource. + + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar identity: The managed service identities assigned to this resource. + :vartype identity: ~azure.mgmt.containerinstance.models.ManagedServiceIdentity + """ + + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The managed service identities assigned to this resource.""" + + @overload + def __init__( + self, + *, + tags: Optional[dict[str, str]] = None, + identity: Optional["_models.ManagedServiceIdentity"] = 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 ApiEntityReference(_Model): """The API entity reference. @@ -111,34 +386,6 @@ 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. @@ -155,6 +402,9 @@ class AzureFileVolume(_Model): :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 + :ivar user_assigned_identity_client_id: The client id of the user-assigned managed identity + that has access to the Azure File share. + :vartype user_assigned_identity_client_id: str """ share_name: str = rest_field(name="shareName", visibility=["read", "create", "update", "delete", "query"]) @@ -173,6 +423,10 @@ class AzureFileVolume(_Model): name="storageAccountKeyReference", visibility=["read", "create", "update", "delete", "query"] ) """The reference to the storage account access key used to access the Azure File share.""" + user_assigned_identity_client_id: Optional[str] = rest_field( + name="userAssignedIdentityClientId", visibility=["read", "create", "update", "delete", "query"] + ) + """The client id of the user-assigned managed identity that has access to the Azure File share.""" @overload def __init__( @@ -183,6 +437,7 @@ def __init__( read_only: Optional[bool] = None, storage_account_key: Optional[str] = None, storage_account_key_reference: Optional[str] = None, + user_assigned_identity_client_id: Optional[str] = None, ) -> None: ... @overload @@ -3795,253 +4050,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TrackedResource(ArmResource): - """Tracked 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 tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - """ - - tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """Resource tags.""" - location: str = rest_field(visibility=["read", "create"]) - """The geo-location where the resource lives. Required.""" - - @overload - def __init__( - self, - *, - location: str, - 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 SandboxGroup(TrackedResource): - """A SandboxGroup tracked 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 tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - :ivar properties: The resource-specific properties for this resource. - :vartype properties: ~azure.mgmt.containerinstance.models.SandboxGroupProperties - :ivar identity: The managed service identities assigned to this resource. - :vartype identity: ~azure.mgmt.containerinstance.models.ManagedServiceIdentity - """ - - properties: Optional["_models.SandboxGroupProperties"] = rest_field( - visibility=["read", "create", "update", "delete", "query"] - ) - """The resource-specific properties for this resource.""" - identity: Optional["_models.ManagedServiceIdentity"] = rest_field( - visibility=["read", "create", "update", "delete", "query"] - ) - """The managed service identities assigned to this resource.""" - - @overload - def __init__( - self, - *, - location: str, - tags: Optional[dict[str, str]] = None, - properties: Optional["_models.SandboxGroupProperties"] = None, - identity: Optional["_models.ManagedServiceIdentity"] = 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 SandboxGroupAccessToken(_Model): - """The result of getting an access token for a SandboxGroup. - - :ivar endpoint: The endpoint URL to use with the access token. Required. - :vartype endpoint: str - :ivar access_token: The access token used to authenticate against the endpoint. Required. - :vartype access_token: str - :ivar not_after: The UTC date and time at which the access token expires. Required. - :vartype not_after: ~datetime.datetime - """ - - endpoint: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The endpoint URL to use with the access token. Required.""" - access_token: str = rest_field(name="accessToken", visibility=["read", "create", "update", "delete", "query"]) - """The access token used to authenticate against the endpoint. Required.""" - not_after: datetime.datetime = rest_field( - name="notAfter", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" - ) - """The UTC date and time at which the access token expires. Required.""" - - @overload - def __init__( - self, - *, - endpoint: str, - access_token: str, - not_after: datetime.datetime, - ) -> 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 SandboxGroupNetworkProfile(_Model): - """The network profile for a SandboxGroup. - - :ivar subnets: The list of subnets associated with the SandboxGroup. - :vartype subnets: list[~azure.mgmt.containerinstance.models.SubnetReference] - """ - - subnets: Optional[list["_models.SubnetReference"]] = rest_field( - visibility=["read", "create", "update", "delete", "query"] - ) - """The list of subnets associated with the SandboxGroup.""" - - @overload - def __init__( - self, - *, - subnets: Optional[list["_models.SubnetReference"]] = 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 SandboxGroupProperties(_Model): - """Properties of a SandboxGroup. - - :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", "Canceled", "Updating", "Deleting", and "Accepted". - :vartype provisioning_state: str or - ~azure.mgmt.containerinstance.models.SandboxGroupProvisioningState - :ivar network_profile: The network profile of the SandboxGroup. - :vartype network_profile: ~azure.mgmt.containerinstance.models.SandboxGroupNetworkProfile - :ivar management_resource_group_id: The ARM resource ID of the management resource group - associated with this SandboxGroup. - :vartype management_resource_group_id: str - """ - - provisioning_state: Optional[Union[str, "_models.SandboxGroupProvisioningState"]] = rest_field( - name="provisioningState", visibility=["read"] - ) - """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", - \"Updating\", \"Deleting\", and \"Accepted\".""" - network_profile: Optional["_models.SandboxGroupNetworkProfile"] = rest_field( - name="networkProfile", visibility=["read", "create"] - ) - """The network profile of the SandboxGroup.""" - management_resource_group_id: Optional[str] = rest_field(name="managementResourceGroupId", visibility=["read"]) - """The ARM resource ID of the management resource group associated with this SandboxGroup.""" - - @overload - def __init__( - self, - *, - network_profile: Optional["_models.SandboxGroupNetworkProfile"] = 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 SandboxGroupTagsUpdate(_Model): - """The type used for updating a SandboxGroup resource. - - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar identity: The managed service identities assigned to this resource. - :vartype identity: ~azure.mgmt.containerinstance.models.ManagedServiceIdentity - """ - - tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """Resource tags.""" - identity: Optional["_models.ManagedServiceIdentity"] = rest_field( - visibility=["read", "create", "update", "delete", "query"] - ) - """The managed service identities assigned to this resource.""" - - @overload - def __init__( - self, - *, - tags: Optional[dict[str, str]] = None, - identity: Optional["_models.ManagedServiceIdentity"] = 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. 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 ea765788358a..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 @@ -8,6 +8,7 @@ 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 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 ac78f51916c4..33ee077c1021 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 @@ -16,7 +16,7 @@ from ._operations import ContainerGroupsOperations # type: ignore from ._operations import NGroupsOperations # type: ignore from ._operations import CGProfileOperations # type: ignore -from ._operations import SandboxGroupsOperations # type: ignore +from ._operations import AiAgentsGroupsOperations # type: ignore from ._operations import ContainersOperations # type: ignore from ._operations import CGProfilesOperations # type: ignore from ._operations import LocationOperations # type: ignore @@ -31,7 +31,7 @@ "ContainerGroupsOperations", "NGroupsOperations", "CGProfileOperations", - "SandboxGroupsOperations", + "AiAgentsGroupsOperations", "ContainersOperations", "CGProfilesOperations", "LocationOperations", 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 11626cbf4d9f..0cdd93ef6c0f 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 @@ -32,7 +32,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models as _models +from .. import models as _models, types as _types from .._configuration import ContainerInstanceManagementClientConfiguration from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer @@ -40,7 +40,6 @@ T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -JSON = MutableMapping[str, Any] List = list _SERIALIZER = Serializer() @@ -51,7 +50,7 @@ def build_operations_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -72,7 +71,7 @@ def build_container_groups_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -101,7 +100,7 @@ def build_container_groups_create_or_update_request( # pylint: disable=name-too _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -132,7 +131,7 @@ def build_container_groups_update_request( _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -162,7 +161,7 @@ def build_container_groups_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -189,7 +188,7 @@ def build_container_groups_restart_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart" path_format_arguments = { @@ -211,7 +210,7 @@ def build_container_groups_stop_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop" path_format_arguments = { @@ -233,7 +232,7 @@ def build_container_groups_start_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start" path_format_arguments = { @@ -256,7 +255,7 @@ def build_container_groups_get_outbound_network_dependencies_endpoints_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -282,7 +281,7 @@ def build_container_groups_list_request(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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -308,7 +307,7 @@ def build_container_groups_list_by_resource_group_request( # pylint: disable=na _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -335,7 +334,7 @@ def build_ngroups_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -364,7 +363,7 @@ def build_ngroups_create_or_update_request( _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -395,7 +394,7 @@ def build_ngroups_update_request( _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -424,7 +423,7 @@ def build_ngroups_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}" path_format_arguments = { @@ -447,7 +446,7 @@ def build_ngroups_list_by_resource_group_request( # pylint: disable=name-too-lo _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -472,7 +471,7 @@ def build_ngroups_list_request(subscription_id: str, **kwargs: Any) -> HttpReque _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -497,7 +496,7 @@ def build_ngroups_start_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/start" path_format_arguments = { @@ -519,7 +518,7 @@ def build_ngroups_stop_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/stop" path_format_arguments = { @@ -541,7 +540,7 @@ def build_ngroups_restart_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/restart" path_format_arguments = { @@ -568,7 +567,7 @@ def build_cg_profile_get_by_revision_number_request( # pylint: disable=name-too _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -599,7 +598,7 @@ def build_cg_profile_list_all_revisions_request( # pylint: disable=name-too-lon _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -629,7 +628,7 @@ def build_cg_profile_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -660,7 +659,7 @@ def build_cg_profile_create_or_update_request( # pylint: disable=name-too-long _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -693,7 +692,7 @@ def build_cg_profile_update_request( _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -724,7 +723,7 @@ def build_cg_profile_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" path_format_arguments = { @@ -743,17 +742,17 @@ def build_cg_profile_delete_request( return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) -def build_sandbox_groups_list_by_subscription_request( # pylint: disable=name-too-long +def build_ai_agents_groups_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/sandboxGroups" + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/aiAgentsGroups" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } @@ -769,17 +768,17 @@ def build_sandbox_groups_list_by_subscription_request( # pylint: disable=name-t return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_sandbox_groups_list_by_resource_group_request( # pylint: disable=name-too-long +def build_ai_agents_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/sandboxGroups" + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/aiAgentsGroups" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), @@ -796,21 +795,21 @@ def build_sandbox_groups_list_by_resource_group_request( # pylint: disable=name return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_sandbox_groups_get_request( - resource_group_name: str, sandbox_group_name: str, subscription_id: str, **kwargs: Any +def build_ai_agents_groups_get_request( + resource_group_name: str, ai_agents_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/sandboxGroups/{sandboxGroupName}" + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/aiAgentsGroups/{aiAgentsGroupName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sandboxGroupName": _SERIALIZER.url("sandbox_group_name", sandbox_group_name, "str"), + "aiAgentsGroupName": _SERIALIZER.url("ai_agents_group_name", ai_agents_group_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -824,22 +823,22 @@ def build_sandbox_groups_get_request( return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_sandbox_groups_create_or_update_request( # pylint: disable=name-too-long - resource_group_name: str, sandbox_group_name: str, subscription_id: str, **kwargs: Any +def build_ai_agents_groups_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, ai_agents_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/sandboxGroups/{sandboxGroupName}" + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/aiAgentsGroups/{aiAgentsGroupName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sandboxGroupName": _SERIALIZER.url("sandbox_group_name", sandbox_group_name, "str"), + "aiAgentsGroupName": _SERIALIZER.url("ai_agents_group_name", ai_agents_group_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -855,22 +854,22 @@ def build_sandbox_groups_create_or_update_request( # pylint: disable=name-too-l return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) -def build_sandbox_groups_update_request( - resource_group_name: str, sandbox_group_name: str, subscription_id: str, **kwargs: Any +def build_ai_agents_groups_update_request( + resource_group_name: str, ai_agents_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/sandboxGroups/{sandboxGroupName}" + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/aiAgentsGroups/{aiAgentsGroupName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sandboxGroupName": _SERIALIZER.url("sandbox_group_name", sandbox_group_name, "str"), + "aiAgentsGroupName": _SERIALIZER.url("ai_agents_group_name", ai_agents_group_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -886,18 +885,18 @@ def build_sandbox_groups_update_request( return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) -def build_sandbox_groups_delete_request( - resource_group_name: str, sandbox_group_name: str, subscription_id: str, **kwargs: Any +def build_ai_agents_groups_delete_request( + resource_group_name: str, ai_agents_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/sandboxGroups/{sandboxGroupName}" + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/aiAgentsGroups/{aiAgentsGroupName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sandboxGroupName": _SERIALIZER.url("sandbox_group_name", sandbox_group_name, "str"), + "aiAgentsGroupName": _SERIALIZER.url("ai_agents_group_name", ai_agents_group_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -908,21 +907,21 @@ def build_sandbox_groups_delete_request( return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) -def build_sandbox_groups_connect_request( - resource_group_name: str, sandbox_group_name: str, subscription_id: str, **kwargs: Any +def build_ai_agents_groups_connect_request( + resource_group_name: str, ai_agents_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/sandboxGroups/{sandboxGroupName}/connect" + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/aiAgentsGroups/{aiAgentsGroupName}/connect" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sandboxGroupName": _SERIALIZER.url("sandbox_group_name", sandbox_group_name, "str"), + "aiAgentsGroupName": _SERIALIZER.url("ai_agents_group_name", ai_agents_group_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -949,7 +948,7 @@ def build_containers_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -983,7 +982,7 @@ def build_containers_execute_command_request( _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1014,7 +1013,7 @@ def build_containers_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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1043,7 +1042,7 @@ def build_cg_profiles_list_by_subscription_request( # pylint: disable=name-too- _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1069,7 +1068,7 @@ def build_cg_profiles_list_by_resource_group_request( # pylint: disable=name-to _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1094,7 +1093,7 @@ def build_location_list_usage_request(location: str, subscription_id: str, **kwa _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1121,7 +1120,7 @@ def build_location_list_cached_images_request( # pylint: disable=name-too-long _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1146,7 +1145,7 @@ def build_location_list_capabilities_request(location: str, subscription_id: str _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", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1172,7 +1171,7 @@ def build_subnet_service_association_link_delete_request( # pylint: disable=nam ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-01-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default" path_format_arguments = { @@ -1399,7 +1398,7 @@ def _create_or_update_initial( self, resource_group_name: str, container_group_name: str, - container_group: Union[_models.ContainerGroup, JSON, IO[bytes]], + container_group: Union[_models.ContainerGroup, _types.ContainerGroup, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -1506,7 +1505,7 @@ def begin_create_or_update( self, resource_group_name: str, container_group_name: str, - container_group: JSON, + container_group: _types.ContainerGroup, *, content_type: str = "application/json", **kwargs: Any @@ -1522,7 +1521,7 @@ def begin_create_or_update( :type container_group_name: str :param container_group: The properties of the container group to be created or updated. Required. - :type container_group: JSON + :type container_group: ~azure.mgmt.containerinstance.types.ContainerGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1568,7 +1567,7 @@ def begin_create_or_update( self, resource_group_name: str, container_group_name: str, - container_group: Union[_models.ContainerGroup, JSON, IO[bytes]], + container_group: Union[_models.ContainerGroup, _types.ContainerGroup, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ContainerGroup]: """Create or update container groups. @@ -1580,9 +1579,10 @@ def begin_create_or_update( :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] + :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 + ~azure.mgmt.containerinstance.types.ContainerGroup 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] @@ -1674,7 +1674,7 @@ def update( self, resource_group_name: str, container_group_name: str, - resource: JSON, + resource: _types.Resource, *, content_type: str = "application/json", **kwargs: Any @@ -1689,7 +1689,7 @@ def update( :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 + :type resource: ~azure.mgmt.containerinstance.types.Resource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1732,7 +1732,7 @@ def update( self, resource_group_name: str, container_group_name: str, - resource: Union[_models.Resource, JSON, IO[bytes]], + resource: Union[_models.Resource, _types.Resource, IO[bytes]], **kwargs: Any ) -> _models.ContainerGroup: """Update container groups. @@ -1744,9 +1744,10 @@ def update( :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] + :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 + ~azure.mgmt.containerinstance.types.Resource or IO[bytes] :return: ContainerGroup. The ContainerGroup is compatible with MutableMapping :rtype: ~azure.mgmt.containerinstance.models.ContainerGroup :raises ~azure.core.exceptions.HttpResponseError: @@ -2613,7 +2614,7 @@ def _create_or_update_initial( self, resource_group_name: str, ngroups_name: str, - n_group: Union[_models.NGroup, JSON, IO[bytes]], + n_group: Union[_models.NGroup, _types.NGroup, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -2726,7 +2727,7 @@ def begin_create_or_update( self, resource_group_name: str, ngroups_name: str, - n_group: JSON, + n_group: _types.NGroup, *, content_type: str = "application/json", **kwargs: Any @@ -2741,7 +2742,7 @@ def begin_create_or_update( :param ngroups_name: The NGroups name. Required. :type ngroups_name: str :param n_group: The NGroup object. Required. - :type n_group: JSON + :type n_group: ~azure.mgmt.containerinstance.types.NGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -2786,7 +2787,7 @@ def begin_create_or_update( self, resource_group_name: str, ngroups_name: str, - n_group: Union[_models.NGroup, JSON, IO[bytes]], + n_group: Union[_models.NGroup, _types.NGroup, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.NGroup]: """NGroup PUT REST API. @@ -2798,9 +2799,9 @@ def begin_create_or_update( :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] + :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 + ~azure.mgmt.containerinstance.types.NGroup 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] @@ -2867,7 +2868,7 @@ def _update_initial( self, resource_group_name: str, ngroups_name: str, - n_group: Union[_models.NGroupPatch, JSON, IO[bytes]], + n_group: Union[_models.NGroupPatch, _types.NGroupPatch, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -2981,7 +2982,7 @@ def begin_update( self, resource_group_name: str, ngroups_name: str, - n_group: JSON, + n_group: _types.NGroupPatch, *, content_type: str = "application/json", **kwargs: Any @@ -2996,7 +2997,7 @@ def begin_update( :param ngroups_name: The NGroups name. Required. :type ngroups_name: str :param n_group: The NGroup object. Required. - :type n_group: JSON + :type n_group: ~azure.mgmt.containerinstance.types.NGroupPatch :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3041,7 +3042,7 @@ def begin_update( self, resource_group_name: str, ngroups_name: str, - n_group: Union[_models.NGroupPatch, JSON, IO[bytes]], + n_group: Union[_models.NGroupPatch, _types.NGroupPatch, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.NGroup]: """NGroups PATCH REST API. @@ -3053,9 +3054,9 @@ def begin_update( :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] + :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 + ~azure.mgmt.containerinstance.types.NGroupPatch 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] @@ -4054,7 +4055,7 @@ def create_or_update( self, resource_group_name: str, container_group_profile_name: str, - container_group_profile: JSON, + container_group_profile: _types.ContainerGroupProfile, *, content_type: str = "application/json", **kwargs: Any @@ -4069,7 +4070,7 @@ def create_or_update( :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 + :type container_group_profile: ~azure.mgmt.containerinstance.types.ContainerGroupProfile :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4112,7 +4113,7 @@ def create_or_update( self, resource_group_name: str, container_group_profile_name: str, - container_group_profile: Union[_models.ContainerGroupProfile, JSON, IO[bytes]], + container_group_profile: Union[_models.ContainerGroupProfile, _types.ContainerGroupProfile, IO[bytes]], **kwargs: Any ) -> _models.ContainerGroupProfile: """Create or Update a ContainerGroupProfile. @@ -4124,10 +4125,10 @@ def create_or_update( :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. + :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 - JSON or IO[bytes] + ~azure.mgmt.containerinstance.types.ContainerGroupProfile or IO[bytes] :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile :raises ~azure.core.exceptions.HttpResponseError: @@ -4238,7 +4239,7 @@ def update( self, resource_group_name: str, container_group_profile_name: str, - properties: JSON, + properties: _types.ContainerGroupProfilePatch, *, content_type: str = "application/json", **kwargs: Any @@ -4253,7 +4254,7 @@ def update( :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 + :type properties: ~azure.mgmt.containerinstance.types.ContainerGroupProfilePatch :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4296,7 +4297,7 @@ def update( self, resource_group_name: str, container_group_profile_name: str, - properties: Union[_models.ContainerGroupProfilePatch, JSON, IO[bytes]], + properties: Union[_models.ContainerGroupProfilePatch, _types.ContainerGroupProfilePatch, IO[bytes]], **kwargs: Any ) -> _models.ContainerGroupProfile: """Container group profile PATCH REST API. @@ -4308,10 +4309,10 @@ def update( :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] + :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 + ~azure.mgmt.containerinstance.types.ContainerGroupProfilePatch or IO[bytes] :return: ContainerGroupProfile. The ContainerGroupProfile is compatible with MutableMapping :rtype: ~azure.mgmt.containerinstance.models.ContainerGroupProfile :raises ~azure.core.exceptions.HttpResponseError: @@ -4450,14 +4451,14 @@ def delete( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore -class SandboxGroupsOperations: +class AiAgentsGroupsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.containerinstance.ContainerInstanceManagementClient`'s - :attr:`sandbox_groups` attribute. + :attr:`ai_agents_groups` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -4471,23 +4472,23 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace @api_version_validation( - method_added_on="2026-06-01-preview", - params_added_on={"2026-06-01-preview": ["api_version", "subscription_id", "accept"]}, - api_versions_list=["2026-06-01-preview"], + method_added_on="2026-08-01-preview", + params_added_on={"2026-08-01-preview": ["api_version", "subscription_id", "accept"]}, + api_versions_list=["2026-08-01-preview"], ) - def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.SandboxGroup"]: - """List SandboxGroup resources by subscription ID. + def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.AiAgentsGroup"]: + """List AiAgentsGroup resources by subscription ID. - List SandboxGroup resources by subscription ID. + List AiAgentsGroup resources by subscription ID. - :return: An iterator like instance of SandboxGroup - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.SandboxGroup] + :return: An iterator like instance of AiAgentsGroup + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.SandboxGroup]] = kwargs.pop("cls", None) + cls: ClsType[List[_models.AiAgentsGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -4500,7 +4501,7 @@ def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.SandboxGroup def prepare_request(next_link=None): if not next_link: - _request = build_sandbox_groups_list_by_subscription_request( + _request = build_ai_agents_groups_list_by_subscription_request( subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -4541,7 +4542,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.SandboxGroup], + List[_models.AiAgentsGroup], deserialized.get("value", []), ) if cls: @@ -4571,26 +4572,26 @@ def get_next(next_link=None): @distributed_trace @api_version_validation( - method_added_on="2026-06-01-preview", - params_added_on={"2026-06-01-preview": ["api_version", "subscription_id", "resource_group_name", "accept"]}, - api_versions_list=["2026-06-01-preview"], + method_added_on="2026-08-01-preview", + params_added_on={"2026-08-01-preview": ["api_version", "subscription_id", "resource_group_name", "accept"]}, + api_versions_list=["2026-08-01-preview"], ) - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.SandboxGroup"]: - """List SandboxGroup resources by resource group. + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.AiAgentsGroup"]: + """List AiAgentsGroup resources by resource group. - List SandboxGroup resources by resource group. + List AiAgentsGroup resources 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 SandboxGroup - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.SandboxGroup] + :return: An iterator like instance of AiAgentsGroup + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.SandboxGroup]] = kwargs.pop("cls", None) + cls: ClsType[List[_models.AiAgentsGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -4603,7 +4604,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite def prepare_request(next_link=None): if not next_link: - _request = build_sandbox_groups_list_by_resource_group_request( + _request = build_ai_agents_groups_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, @@ -4645,7 +4646,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.SandboxGroup], + List[_models.AiAgentsGroup], deserialized.get("value", []), ) if cls: @@ -4675,30 +4676,30 @@ def get_next(next_link=None): @distributed_trace @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": [ + "2026-08-01-preview": [ "api_version", "subscription_id", "resource_group_name", - "sandbox_group_name", + "ai_agents_group_name", "accept", ] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) - def get(self, resource_group_name: str, sandbox_group_name: str, **kwargs: Any) -> _models.SandboxGroup: - """Get a SandboxGroup. + def get(self, resource_group_name: str, ai_agents_group_name: str, **kwargs: Any) -> _models.AiAgentsGroup: + """Get an AiAgentsGroup. - Get a SandboxGroup. + Get an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str - :return: SandboxGroup. The SandboxGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.containerinstance.models.SandboxGroup + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str + :return: AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.AiAgentsGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -4712,11 +4713,11 @@ def get(self, resource_group_name: str, sandbox_group_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.SandboxGroup] = kwargs.pop("cls", None) + cls: ClsType[_models.AiAgentsGroup] = kwargs.pop("cls", None) - _request = build_sandbox_groups_get_request( + _request = build_ai_agents_groups_get_request( resource_group_name=resource_group_name, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -4751,7 +4752,7 @@ def get(self, resource_group_name: str, sandbox_group_name: str, **kwargs: Any) if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SandboxGroup, response.json()) + deserialized = _deserialize(_models.AiAgentsGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -4759,24 +4760,24 @@ def get(self, resource_group_name: str, sandbox_group_name: str, **kwargs: Any) return deserialized # type: ignore @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": [ + "2026-08-01-preview": [ "api_version", "subscription_id", "resource_group_name", - "sandbox_group_name", + "ai_agents_group_name", "content_type", "accept", ] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) def _create_or_update_initial( self, resource_group_name: str, - sandbox_group_name: str, - resource: Union[_models.SandboxGroup, JSON, IO[bytes]], + ai_agents_group_name: str, + resource: Union[_models.AiAgentsGroup, _types.AiAgentsGroup, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -4800,9 +4801,9 @@ def _create_or_update_initial( else: _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_sandbox_groups_create_or_update_request( + _request = build_ai_agents_groups_create_or_update_request( resource_group_name=resource_group_name, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, subscription_id=self._config.subscription_id, content_type=content_type, api_version=self._config.api_version, @@ -4853,29 +4854,29 @@ def _create_or_update_initial( def begin_create_or_update( self, resource_group_name: str, - sandbox_group_name: str, - resource: _models.SandboxGroup, + ai_agents_group_name: str, + resource: _models.AiAgentsGroup, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.SandboxGroup]: - """Create a SandboxGroup. + ) -> LROPoller[_models.AiAgentsGroup]: + """Create an AiAgentsGroup. - Create a SandboxGroup. + Create an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :param resource: Resource create parameters. Required. - :type resource: ~azure.mgmt.containerinstance.models.SandboxGroup + :type resource: ~azure.mgmt.containerinstance.models.AiAgentsGroup :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 SandboxGroup. The SandboxGroup is compatible + :return: An instance of LROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -4883,29 +4884,29 @@ def begin_create_or_update( def begin_create_or_update( self, resource_group_name: str, - sandbox_group_name: str, - resource: JSON, + ai_agents_group_name: str, + resource: _types.AiAgentsGroup, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.SandboxGroup]: - """Create a SandboxGroup. + ) -> LROPoller[_models.AiAgentsGroup]: + """Create an AiAgentsGroup. - Create a SandboxGroup. + Create an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :param resource: Resource create parameters. Required. - :type resource: JSON + :type resource: ~azure.mgmt.containerinstance.types.AiAgentsGroup :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 SandboxGroup. The SandboxGroup is compatible + :return: An instance of LROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -4913,83 +4914,84 @@ def begin_create_or_update( def begin_create_or_update( self, resource_group_name: str, - sandbox_group_name: str, + ai_agents_group_name: str, resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.SandboxGroup]: - """Create a SandboxGroup. + ) -> LROPoller[_models.AiAgentsGroup]: + """Create an AiAgentsGroup. - Create a SandboxGroup. + Create an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :param resource: Resource create parameters. 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: An instance of LROPoller that returns SandboxGroup. The SandboxGroup is compatible + :return: An instance of LROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": [ + "2026-08-01-preview": [ "api_version", "subscription_id", "resource_group_name", - "sandbox_group_name", + "ai_agents_group_name", "content_type", "accept", ] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) def begin_create_or_update( self, resource_group_name: str, - sandbox_group_name: str, - resource: Union[_models.SandboxGroup, JSON, IO[bytes]], + ai_agents_group_name: str, + resource: Union[_models.AiAgentsGroup, _types.AiAgentsGroup, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.SandboxGroup]: - """Create a SandboxGroup. + ) -> LROPoller[_models.AiAgentsGroup]: + """Create an AiAgentsGroup. - Create a SandboxGroup. + Create an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str - :param resource: Resource create parameters. Is one of the following types: SandboxGroup, JSON, - IO[bytes] Required. - :type resource: ~azure.mgmt.containerinstance.models.SandboxGroup or JSON or IO[bytes] - :return: An instance of LROPoller that returns SandboxGroup. The SandboxGroup is compatible + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str + :param resource: Resource create parameters. Is either a AiAgentsGroup type or a IO[bytes] + type. Required. + :type resource: ~azure.mgmt.containerinstance.models.AiAgentsGroup or + ~azure.mgmt.containerinstance.types.AiAgentsGroup or IO[bytes] + :return: An instance of LROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :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.SandboxGroup] = kwargs.pop("cls", None) + cls: ClsType[_models.AiAgentsGroup] = 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, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, resource=resource, content_type=content_type, cls=lambda x, y, z: x, @@ -5002,7 +5004,7 @@ def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.SandboxGroup, response.json()) + deserialized = _deserialize(_models.AiAgentsGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -5020,35 +5022,35 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.SandboxGroup].from_continuation_token( + return LROPoller[_models.AiAgentsGroup].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.SandboxGroup]( + return LROPoller[_models.AiAgentsGroup]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": [ + "2026-08-01-preview": [ "api_version", "subscription_id", "resource_group_name", - "sandbox_group_name", + "ai_agents_group_name", "content_type", "accept", ] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) def _update_initial( self, resource_group_name: str, - sandbox_group_name: str, - properties: Union[_models.SandboxGroupTagsUpdate, JSON, IO[bytes]], + ai_agents_group_name: str, + properties: Union[_models.AiAgentsGroupTagsUpdate, _types.AiAgentsGroupTagsUpdate, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -5072,9 +5074,9 @@ def _update_initial( else: _content = json.dumps(properties, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_sandbox_groups_update_request( + _request = build_ai_agents_groups_update_request( resource_group_name=resource_group_name, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, subscription_id=self._config.subscription_id, content_type=content_type, api_version=self._config.api_version, @@ -5123,29 +5125,29 @@ def _update_initial( def begin_update( self, resource_group_name: str, - sandbox_group_name: str, - properties: _models.SandboxGroupTagsUpdate, + ai_agents_group_name: str, + properties: _models.AiAgentsGroupTagsUpdate, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.SandboxGroup]: - """Update a SandboxGroup. + ) -> LROPoller[_models.AiAgentsGroup]: + """Update an AiAgentsGroup. - Update a SandboxGroup. + Update an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :param properties: The resource properties to be updated. Required. - :type properties: ~azure.mgmt.containerinstance.models.SandboxGroupTagsUpdate + :type properties: ~azure.mgmt.containerinstance.models.AiAgentsGroupTagsUpdate :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 SandboxGroup. The SandboxGroup is compatible + :return: An instance of LROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -5153,29 +5155,29 @@ def begin_update( def begin_update( self, resource_group_name: str, - sandbox_group_name: str, - properties: JSON, + ai_agents_group_name: str, + properties: _types.AiAgentsGroupTagsUpdate, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.SandboxGroup]: - """Update a SandboxGroup. + ) -> LROPoller[_models.AiAgentsGroup]: + """Update an AiAgentsGroup. - Update a SandboxGroup. + Update an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :param properties: The resource properties to be updated. Required. - :type properties: JSON + :type properties: ~azure.mgmt.containerinstance.types.AiAgentsGroupTagsUpdate :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 SandboxGroup. The SandboxGroup is compatible + :return: An instance of LROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -5183,84 +5185,84 @@ def begin_update( def begin_update( self, resource_group_name: str, - sandbox_group_name: str, + ai_agents_group_name: str, properties: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.SandboxGroup]: - """Update a SandboxGroup. + ) -> LROPoller[_models.AiAgentsGroup]: + """Update an AiAgentsGroup. - Update a SandboxGroup. + Update an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :param properties: The resource properties 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: An instance of LROPoller that returns SandboxGroup. The SandboxGroup is compatible + :return: An instance of LROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": [ + "2026-08-01-preview": [ "api_version", "subscription_id", "resource_group_name", - "sandbox_group_name", + "ai_agents_group_name", "content_type", "accept", ] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) def begin_update( self, resource_group_name: str, - sandbox_group_name: str, - properties: Union[_models.SandboxGroupTagsUpdate, JSON, IO[bytes]], + ai_agents_group_name: str, + properties: Union[_models.AiAgentsGroupTagsUpdate, _types.AiAgentsGroupTagsUpdate, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.SandboxGroup]: - """Update a SandboxGroup. + ) -> LROPoller[_models.AiAgentsGroup]: + """Update an AiAgentsGroup. - Update a SandboxGroup. + Update an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str - :param properties: The resource properties to be updated. Is one of the following types: - SandboxGroupTagsUpdate, JSON, IO[bytes] Required. - :type properties: ~azure.mgmt.containerinstance.models.SandboxGroupTagsUpdate or JSON or - IO[bytes] - :return: An instance of LROPoller that returns SandboxGroup. The SandboxGroup is compatible + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str + :param properties: The resource properties to be updated. Is either a AiAgentsGroupTagsUpdate + type or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.containerinstance.models.AiAgentsGroupTagsUpdate or + ~azure.mgmt.containerinstance.types.AiAgentsGroupTagsUpdate or IO[bytes] + :return: An instance of LROPoller that returns AiAgentsGroup. The AiAgentsGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.SandboxGroup] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.containerinstance.models.AiAgentsGroup] :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.SandboxGroup] = kwargs.pop("cls", None) + cls: ClsType[_models.AiAgentsGroup] = 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, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, properties=properties, content_type=content_type, cls=lambda x, y, z: x, @@ -5273,7 +5275,7 @@ def begin_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.SandboxGroup, response.json()) + deserialized = _deserialize(_models.AiAgentsGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -5291,24 +5293,24 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.SandboxGroup].from_continuation_token( + return LROPoller[_models.AiAgentsGroup].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.SandboxGroup]( + return LROPoller[_models.AiAgentsGroup]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": ["api_version", "subscription_id", "resource_group_name", "sandbox_group_name"] + "2026-08-01-preview": ["api_version", "subscription_id", "resource_group_name", "ai_agents_group_name"] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) - def _delete_initial(self, resource_group_name: str, sandbox_group_name: str, **kwargs: Any) -> Iterator[bytes]: + def _delete_initial(self, resource_group_name: str, ai_agents_group_name: str, **kwargs: Any) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -5322,9 +5324,9 @@ def _delete_initial(self, resource_group_name: str, sandbox_group_name: str, **k cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - _request = build_sandbox_groups_delete_request( + _request = build_ai_agents_groups_delete_request( resource_group_name=resource_group_name, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -5369,22 +5371,22 @@ def _delete_initial(self, resource_group_name: str, sandbox_group_name: str, **k @distributed_trace @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": ["api_version", "subscription_id", "resource_group_name", "sandbox_group_name"] + "2026-08-01-preview": ["api_version", "subscription_id", "resource_group_name", "ai_agents_group_name"] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) - def begin_delete(self, resource_group_name: str, sandbox_group_name: str, **kwargs: Any) -> LROPoller[None]: - """Delete a SandboxGroup. + def begin_delete(self, resource_group_name: str, ai_agents_group_name: str, **kwargs: Any) -> LROPoller[None]: + """Delete an AiAgentsGroup. - Delete a SandboxGroup. + Delete an AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -5399,7 +5401,7 @@ def begin_delete(self, resource_group_name: str, sandbox_group_name: str, **kwar if cont_token is None: raw_result = self._delete_initial( resource_group_name=resource_group_name, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -5435,32 +5437,33 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @distributed_trace @api_version_validation( - method_added_on="2026-06-01-preview", + method_added_on="2026-08-01-preview", params_added_on={ - "2026-06-01-preview": [ + "2026-08-01-preview": [ "api_version", "subscription_id", "resource_group_name", - "sandbox_group_name", + "ai_agents_group_name", "accept", ] }, - api_versions_list=["2026-06-01-preview"], + api_versions_list=["2026-08-01-preview"], ) def connect( - self, resource_group_name: str, sandbox_group_name: str, **kwargs: Any - ) -> _models.SandboxGroupAccessToken: - """Get an access token and endpoint for connecting to the SandboxGroup. + self, resource_group_name: str, ai_agents_group_name: str, **kwargs: Any + ) -> _models.AiAgentsGroupAccessToken: + """Get an access token and endpoint for connecting to the AiAgentsGroup. - Get an access token and endpoint for connecting to the SandboxGroup. + Get an access token and endpoint for connecting to the AiAgentsGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param sandbox_group_name: The name of the SandboxGroup. Required. - :type sandbox_group_name: str - :return: SandboxGroupAccessToken. The SandboxGroupAccessToken is compatible with MutableMapping - :rtype: ~azure.mgmt.containerinstance.models.SandboxGroupAccessToken + :param ai_agents_group_name: The name of the AiAgentsGroup. Required. + :type ai_agents_group_name: str + :return: AiAgentsGroupAccessToken. The AiAgentsGroupAccessToken is compatible with + MutableMapping + :rtype: ~azure.mgmt.containerinstance.models.AiAgentsGroupAccessToken :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -5474,11 +5477,11 @@ def connect( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.SandboxGroupAccessToken] = kwargs.pop("cls", None) + cls: ClsType[_models.AiAgentsGroupAccessToken] = kwargs.pop("cls", None) - _request = build_sandbox_groups_connect_request( + _request = build_ai_agents_groups_connect_request( resource_group_name=resource_group_name, - sandbox_group_name=sandbox_group_name, + ai_agents_group_name=ai_agents_group_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -5513,7 +5516,7 @@ def connect( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SandboxGroupAccessToken, response.json()) + deserialized = _deserialize(_models.AiAgentsGroupAccessToken, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -5672,7 +5675,7 @@ def execute_command( resource_group_name: str, container_group_name: str, container_name: str, - container_exec_request: JSON, + container_exec_request: _types.ContainerExecRequest, *, content_type: str = "application/json", **kwargs: Any @@ -5690,7 +5693,7 @@ def execute_command( :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 + :type container_exec_request: ~azure.mgmt.containerinstance.types.ContainerExecRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -5738,7 +5741,7 @@ def execute_command( resource_group_name: str, container_group_name: str, container_name: str, - container_exec_request: Union[_models.ContainerExecRequest, JSON, IO[bytes]], + container_exec_request: Union[_models.ContainerExecRequest, _types.ContainerExecRequest, IO[bytes]], **kwargs: Any ) -> _models.ContainerExecResponse: """Executes a command in a specific container instance. @@ -5753,10 +5756,10 @@ def execute_command( :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] + :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 + ~azure.mgmt.containerinstance.types.ContainerExecRequest or IO[bytes] :return: ContainerExecResponse. The ContainerExecResponse is compatible with MutableMapping :rtype: ~azure.mgmt.containerinstance.models.ContainerExecResponse :raises ~azure.core.exceptions.HttpResponseError: 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 ea765788358a..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 @@ -8,6 +8,7 @@ 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 diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/types.py b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/types.py new file mode 100644 index 000000000000..f4cafa078018 --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/types.py @@ -0,0 +1,2081 @@ +# 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. +# -------------------------------------------------------------------------- + +from typing import Any, TYPE_CHECKING, Union +from typing_extensions import Required, TypedDict + +if TYPE_CHECKING: + from .models import ( + AiAgentsGroupProvisioningState, + AzureFileShareAccessTier, + AzureFileShareAccessType, + ContainerGroupIpAddressType, + ContainerGroupNetworkProtocol, + ContainerGroupPriority, + ContainerGroupRestartPolicy, + ContainerGroupSku, + ContainerNetworkProtocol, + CreatedByType, + DnsNameLabelReusePolicy, + GpuSku, + IdentityAccessLevel, + LogAnalyticsLogType, + ManagedServiceIdentityType, + NGroupProvisioningState, + NGroupUpdateMode, + OperatingSystemTypes, + ResourceIdentityType, + Scheme, + ) + + +class ArmResource(TypedDict, total=False): + """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: "SystemData" + """ + + id: str + """Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + name: str + """The name of the resource.""" + type: str + """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or + \"Microsoft.Storage/storageAccounts\".""" + systemData: "SystemData" + """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" + + +class TrackedResource(ArmResource): + """Tracked 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: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + """ + + tags: dict[str, str] + """Resource tags.""" + location: Required[str] + """The geo-location where the resource lives. Required.""" + + +class AiAgentsGroup(TrackedResource): + """An AiAgentsGroup tracked 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: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: The resource-specific properties for this resource. + :vartype properties: "AiAgentsGroupProperties" + :ivar identity: The managed service identities assigned to this resource. + :vartype identity: "ManagedServiceIdentity" + """ + + properties: "AiAgentsGroupProperties" + """The resource-specific properties for this resource.""" + identity: "ManagedServiceIdentity" + """The managed service identities assigned to this resource.""" + + +class AiAgentsGroupNetworkProfile(TypedDict, total=False): + """The network profile for an AiAgentsGroup. + + :ivar subnets: The list of subnets associated with the AiAgentsGroup. + :vartype subnets: list["SubnetReference"] + """ + + subnets: list["SubnetReference"] + """The list of subnets associated with the AiAgentsGroup.""" + + +class AiAgentsGroupProperties(TypedDict, total=False): + """Properties of an AiAgentsGroup. + + :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", + "Failed", "Canceled", "Updating", "Deleting", and "Accepted". + :vartype provisioning_state: Union[str, "AiAgentsGroupProvisioningState"] + :ivar network_profile: The network profile of the AiAgentsGroup. + :vartype network_profile: "AiAgentsGroupNetworkProfile" + :ivar management_resource_group_id: The ARM resource ID of the management resource group + associated with this AiAgentsGroup. + :vartype management_resource_group_id: str + """ + + provisioningState: Union[str, "AiAgentsGroupProvisioningState"] + """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", + \"Updating\", \"Deleting\", and \"Accepted\".""" + networkProfile: "AiAgentsGroupNetworkProfile" + """The network profile of the AiAgentsGroup.""" + managementResourceGroupId: str + """The ARM resource ID of the management resource group associated with this AiAgentsGroup.""" + + +class AiAgentsGroupTagsUpdate(TypedDict, total=False): + """The type used for updating an AiAgentsGroup resource. + + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar identity: The managed service identities assigned to this resource. + :vartype identity: "ManagedServiceIdentity" + """ + + tags: dict[str, str] + """Resource tags.""" + identity: "ManagedServiceIdentity" + """The managed service identities assigned to this resource.""" + + +class ApiEntityReference(TypedDict, total=False): + """The API entity reference. + + :ivar id: The ARM resource id in the form of + /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... + :vartype id: str + """ + + id: str + """The ARM resource id in the form of + /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...""" + + +class ApplicationGateway(TypedDict, total=False): + """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["ApplicationGatewayBackendAddressPool"] + """ + + resource: str + """The Application Gateway ARM resource Id.""" + backendAddressPools: list["ApplicationGatewayBackendAddressPool"] + """List of Application Gateway Backend Address Pools.""" + + +class ApplicationGatewayBackendAddressPool(TypedDict, total=False): + """NGroups application gateway backend address pool. + + :ivar resource: The application gateway backend address pool ARM resource Id. + :vartype resource: str + """ + + resource: str + """The application gateway backend address pool ARM resource Id.""" + + +class AzureFileVolume(TypedDict, total=False): + """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 + :ivar user_assigned_identity_client_id: The client id of the user-assigned managed identity + that has access to the Azure File share. + :vartype user_assigned_identity_client_id: str + """ + + shareName: Required[str] + """The name of the Azure File share to be mounted as a volume. Required.""" + readOnly: bool + """The flag indicating whether the Azure File shared mounted as a volume is read-only.""" + storageAccountName: Required[str] + """The name of the storage account that contains the Azure File share. Required.""" + storageAccountKey: str + """The storage account access key used to access the Azure File share.""" + storageAccountKeyReference: str + """The reference to the storage account access key used to access the Azure File share.""" + userAssignedIdentityClientId: str + """The client id of the user-assigned managed identity that has access to the Azure File share.""" + + +class ConfidentialComputeProperties(TypedDict, total=False): + """The properties for confidential container group. + + :ivar cce_policy: The base64 encoded confidential compute enforcement policy. + :vartype cce_policy: str + """ + + ccePolicy: str + """The base64 encoded confidential compute enforcement policy.""" + + +class ConfigMap(TypedDict, total=False): + """The container config map. + + :ivar key_value_pairs: The key value pairs dictionary in the config map. + :vartype key_value_pairs: dict[str, str] + """ + + keyValuePairs: dict[str, str] + """The key value pairs dictionary in the config map.""" + + +class Container(TypedDict, total=False): + """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: "ContainerProperties" + """ + + name: Required[str] + """The user-provided name of the container instance. Required.""" + properties: Required["ContainerProperties"] + """The properties of the container instance. Required.""" + + +class ContainerExec(TypedDict, total=False): + """The container execution command, for liveness or readiness probe. + + :ivar command: The commands to execute within the container. + :vartype command: list[str] + """ + + command: list[str] + """The commands to execute within the container.""" + + +class ContainerExecRequest(TypedDict, total=False): + """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: "ContainerExecRequestTerminalSize" + """ + + command: str + """The command to be executed.""" + terminalSize: "ContainerExecRequestTerminalSize" + """The size of the terminal.""" + + +class ContainerExecRequestTerminalSize(TypedDict, total=False): + """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: int + """The row size of the terminal.""" + cols: int + """The column size of the terminal.""" + + +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: "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: "SystemData" + :ivar location: The resource location of the container group. + :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: "ContainerGroupIdentity" + :ivar properties: The container group properties. Required. + :vartype properties: "ContainerGroupProperties" + """ + + location: str + """The resource location of the container group.""" + tags: dict[str, str] + """The resource tags.""" + zones: list[str] + """The availability zones.""" + identity: "ContainerGroupIdentity" + """The identity of the container group, if configured.""" + properties: Required["ContainerGroupProperties"] + """The container group properties. Required.""" + + +class ContainerGroupDiagnostics(TypedDict, total=False): + """Container group diagnostic information. + + :ivar log_analytics: Container group log analytics information. + :vartype log_analytics: "LogAnalytics" + """ + + logAnalytics: "LogAnalytics" + """Container group log analytics information.""" + + +class ContainerGroupIdentity(TypedDict, total=False): + """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: Union[str, "ResourceIdentityType"] + :ivar user_assigned_identities: The list of user identities associated with the container + group. + :vartype user_assigned_identities: dict[str, "UserAssignedIdentities"] + """ + + principalId: str + """The principal id of the container group identity. This property will only be provided for a + system assigned identity.""" + tenantId: str + """The tenant id associated with the container group. This property will only be provided for a + system assigned identity.""" + type: Union[str, "ResourceIdentityType"] + """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\".""" + userAssignedIdentities: dict[str, "UserAssignedIdentities"] + """The list of user identities associated with the container group.""" + + +class ContainerGroupProfile(ProxyResource): + """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: "SystemData" + :ivar properties: The container group profile properties. + :vartype properties: "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: "ContainerGroupProfileProperties" + """The container group profile properties.""" + tags: dict[str, str] + """Resource tags.""" + location: str + """The geo-location where the resource lives.""" + zones: list[str] + """The availability zones.""" + + +class ContainerGroupProfilePatch(TypedDict, total=False): + """Properties of container group profile that need to be patched. + + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + tags: dict[str, str] + """Resource tags.""" + + +class ContainerGroupProfileProperties(TypedDict, total=False): + """The container group profile properties. + + :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". + :vartype sku: Union[str, "ContainerGroupSku"] + :ivar encryption_properties: The encryption properties for a container group. + :vartype encryption_properties: "EncryptionProperties" + :ivar containers: The containers within the container group. Required. + :vartype containers: list["Container"] + :ivar init_containers: The init containers for a container group. + :vartype init_containers: list["InitContainerDefinition"] + :ivar extensions: extensions used by virtual kubelet. + :vartype extensions: list["DeploymentExtensionSpec"] + :ivar image_registry_credentials: The image registry credentials by which the container group + is created from. + :vartype image_registry_credentials: list["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: Union[str, "ContainerGroupRestartPolicy"] + :ivar shutdown_grace_period: Shutdown grace period for containers in a container group. + :vartype shutdown_grace_period: str + :ivar ip_address: The IP address type of the container group. + :vartype ip_address: "IpAddress" + :ivar time_to_live: Post completion time to live for containers of a CG. + :vartype time_to_live: str + :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: Union[str, "OperatingSystemTypes"] + :ivar volumes: The list of volumes that can be mounted by containers in this container group. + :vartype volumes: list["Volume"] + :ivar diagnostics: The diagnostic information for a container group. + :vartype diagnostics: "ContainerGroupDiagnostics" + :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". + :vartype priority: Union[str, "ContainerGroupPriority"] + :ivar confidential_compute_properties: The properties for confidential container group. + :vartype confidential_compute_properties: "ConfidentialComputeProperties" + :ivar security_context: The container security properties. + :vartype security_context: "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: Union[str, "ContainerGroupSku"] + """The SKU for a container group. Known values are: \"NotSpecified\", \"Standard\", \"Dedicated\", + and \"Confidential\".""" + encryptionProperties: "EncryptionProperties" + """The encryption properties for a container group.""" + containers: Required[list["Container"]] + """The containers within the container group. Required.""" + initContainers: list["InitContainerDefinition"] + """The init containers for a container group.""" + extensions: list["DeploymentExtensionSpec"] + """extensions used by virtual kubelet.""" + imageRegistryCredentials: list["ImageRegistryCredential"] + """The image registry credentials by which the container group is created from.""" + restartPolicy: Union[str, "ContainerGroupRestartPolicy"] + """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\".""" + shutdownGracePeriod: str + """Shutdown grace period for containers in a container group.""" + ipAddress: "IpAddress" + """The IP address type of the container group.""" + timeToLive: str + """Post completion time to live for containers of a CG.""" + osType: Required[Union[str, "OperatingSystemTypes"]] + """The operating system type required by the containers in the container group. Required. Known + values are: \"Windows\" and \"Linux\".""" + volumes: list["Volume"] + """The list of volumes that can be mounted by containers in this container group.""" + diagnostics: "ContainerGroupDiagnostics" + """The diagnostic information for a container group.""" + priority: Union[str, "ContainerGroupPriority"] + """The priority of the container group. Known values are: \"Regular\" and \"Spot\".""" + confidentialComputeProperties: "ConfidentialComputeProperties" + """The properties for confidential container group.""" + securityContext: "SecurityContextDefinition" + """The container security properties.""" + revision: int + """Container group profile current revision number.""" + registeredRevisions: list[int] + """Registered revisions are calculated at request time based off the records in the table logs.""" + useKrypton: bool + """Gets or sets Krypton use property.""" + + +class ContainerGroupProfileReferenceDefinition(TypedDict, total=False): + """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: str + """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: int + """The container group profile reference revision.""" + + +class ContainerGroupProfileStub(TypedDict, total=False): + """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: "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: "NetworkProfile" + :ivar storage_profile: Storage profile for storage related settings of a container group + profile. + :vartype storage_profile: "StorageProfile" + :ivar container_group_properties: Container Group properties which can be set while creating or + updating the NGroups. + :vartype container_group_properties: "NGroupContainerGroupProperties" + """ + + resource: "ApiEntityReference" + """A reference to the container group profile ARM resource hosted in ACI RP.""" + revision: int + """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.""" + networkProfile: "NetworkProfile" + """A network profile for network settings of a ContainerGroupProfile.""" + storageProfile: "StorageProfile" + """Storage profile for storage related settings of a container group profile.""" + containerGroupProperties: "NGroupContainerGroupProperties" + """Container Group properties which can be set while creating or updating the NGroups.""" + + +class ContainerGroupProperties(TypedDict, total=False): + """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["SecretReference"] + :ivar containers: The containers within the container group. Required. + :vartype containers: list["Container"] + :ivar image_registry_credentials: The image registry credentials by which the container group + is created from. + :vartype image_registry_credentials: list["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: Union[str, "ContainerGroupRestartPolicy"] + :ivar ip_address: The IP address type of the container group. + :vartype ip_address: "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: Union[str, "OperatingSystemTypes"] + :ivar volumes: The list of volumes that can be mounted by containers in this container group. + :vartype volumes: list["Volume"] + :ivar instance_view: The instance view of the container group. Only valid in response. + :vartype instance_view: "ContainerGroupPropertiesInstanceView" + :ivar diagnostics: The diagnostic information for a container group. + :vartype diagnostics: "ContainerGroupDiagnostics" + :ivar subnet_ids: The subnet resource IDs for a container group. + :vartype subnet_ids: list["ContainerGroupSubnetId"] + :ivar dns_config: The DNS config information for a container group. + :vartype dns_config: "DnsConfiguration" + :ivar sku: The SKU for a container group. Known values are: "NotSpecified", "Standard", + "Dedicated", and "Confidential". + :vartype sku: Union[str, "ContainerGroupSku"] + :ivar encryption_properties: The encryption properties for a container group. + :vartype encryption_properties: "EncryptionProperties" + :ivar init_containers: The init containers for a container group. + :vartype init_containers: list["InitContainerDefinition"] + :ivar extensions: extensions used by virtual kubelet. + :vartype extensions: list["DeploymentExtensionSpec"] + :ivar confidential_compute_properties: The properties for confidential container group. + :vartype confidential_compute_properties: "ConfidentialComputeProperties" + :ivar priority: The priority of the container group. Known values are: "Regular" and "Spot". + :vartype priority: Union[str, "ContainerGroupPriority"] + :ivar identity_acls: The access control levels of the identities. + :vartype identity_acls: "IdentityAcls" + :ivar container_group_profile: The reference container group profile properties. + :vartype container_group_profile: "ContainerGroupProfileReferenceDefinition" + :ivar standby_pool_profile: The reference standby pool profile properties. + :vartype standby_pool_profile: "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 + """ + + provisioningState: str + """The provisioning state of the container group. This only appears in the response.""" + secretReferences: list["SecretReference"] + """The secret references that will be referenced within the container group.""" + containers: Required[list["Container"]] + """The containers within the container group. Required.""" + imageRegistryCredentials: list["ImageRegistryCredential"] + """The image registry credentials by which the container group is created from.""" + restartPolicy: Union[str, "ContainerGroupRestartPolicy"] + """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\".""" + ipAddress: "IpAddress" + """The IP address type of the container group.""" + osType: Union[str, "OperatingSystemTypes"] + """The operating system type required by the containers in the container group. Known values are: + \"Windows\" and \"Linux\".""" + volumes: list["Volume"] + """The list of volumes that can be mounted by containers in this container group.""" + instanceView: "ContainerGroupPropertiesInstanceView" + """The instance view of the container group. Only valid in response.""" + diagnostics: "ContainerGroupDiagnostics" + """The diagnostic information for a container group.""" + subnetIds: list["ContainerGroupSubnetId"] + """The subnet resource IDs for a container group.""" + dnsConfig: "DnsConfiguration" + """The DNS config information for a container group.""" + sku: Union[str, "ContainerGroupSku"] + """The SKU for a container group. Known values are: \"NotSpecified\", \"Standard\", \"Dedicated\", + and \"Confidential\".""" + encryptionProperties: "EncryptionProperties" + """The encryption properties for a container group.""" + initContainers: list["InitContainerDefinition"] + """The init containers for a container group.""" + extensions: list["DeploymentExtensionSpec"] + """extensions used by virtual kubelet.""" + confidentialComputeProperties: "ConfidentialComputeProperties" + """The properties for confidential container group.""" + priority: Union[str, "ContainerGroupPriority"] + """The priority of the container group. Known values are: \"Regular\" and \"Spot\".""" + identityAcls: "IdentityAcls" + """The access control levels of the identities.""" + containerGroupProfile: "ContainerGroupProfileReferenceDefinition" + """The reference container group profile properties.""" + standbyPoolProfile: "StandbyPoolProfileDefinition" + """The reference standby pool profile properties.""" + isCreatedFromStandbyPool: bool + """The flag to determine whether the container group is created from standby pool.""" + + +class ContainerGroupPropertiesInstanceView(TypedDict, total=False): + """The instance view of the container group. Only valid in response. + + :ivar events: The events of this container group. + :vartype events: list["Event"] + :ivar state: The state of the container group. Only valid in response. + :vartype state: str + """ + + events: list["Event"] + """The events of this container group.""" + state: str + """The state of the container group. Only valid in response.""" + + +class ContainerGroupSubnetId(TypedDict, total=False): + """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: Required[str] + """Resource ID of virtual network and subnet. Required.""" + name: str + """Friendly name for the subnet.""" + + +class ContainerHttpGet(TypedDict, total=False): + """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: Union[str, "Scheme"] + :ivar http_headers: The HTTP headers. + :vartype http_headers: list["HttpHeader"] + """ + + path: str + """The path to probe.""" + port: Required[int] + """The port number to probe. Required.""" + scheme: Union[str, "Scheme"] + """The scheme. Known values are: \"http\" and \"https\".""" + httpHeaders: list["HttpHeader"] + """The HTTP headers.""" + + +class ContainerPort(TypedDict, total=False): + """The port exposed on the container instance. + + :ivar protocol: The protocol associated with the port. Known values are: "TCP" and "UDP". + :vartype protocol: Union[str, "ContainerNetworkProtocol"] + :ivar port: The port number exposed within the container group. Required. + :vartype port: int + """ + + protocol: Union[str, "ContainerNetworkProtocol"] + """The protocol associated with the port. Known values are: \"TCP\" and \"UDP\".""" + port: Required[int] + """The port number exposed within the container group. Required.""" + + +class ContainerProbe(TypedDict, total=False): + """The container probe, for liveness or readiness. + + :ivar exec_property: The execution command to probe. + :vartype exec_property: "ContainerExec" + :ivar http_get: The Http Get settings to probe. + :vartype http_get: "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: "ContainerExec" + """The execution command to probe.""" + httpGet: "ContainerHttpGet" + """The Http Get settings to probe.""" + initialDelaySeconds: int + """The initial delay seconds.""" + periodSeconds: int + """The period seconds.""" + failureThreshold: int + """The failure threshold.""" + successThreshold: int + """The success threshold.""" + timeoutSeconds: int + """The timeout seconds.""" + + +class ContainerProperties(TypedDict, total=False): + """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["ContainerPort"] + :ivar environment_variables: The environment variables to set in the container instance. + :vartype environment_variables: list["EnvironmentVariable"] + :ivar instance_view: The instance view of the container instance. Only valid in response. + :vartype instance_view: "ContainerPropertiesInstanceView" + :ivar resources: The resource requirements of the container instance. + :vartype resources: "ResourceRequirements" + :ivar volume_mounts: The volume mounts available to the container instance. + :vartype volume_mounts: list["VolumeMount"] + :ivar liveness_probe: The liveness probe. + :vartype liveness_probe: "ContainerProbe" + :ivar readiness_probe: The readiness probe. + :vartype readiness_probe: "ContainerProbe" + :ivar security_context: The container security properties. + :vartype security_context: "SecurityContextDefinition" + :ivar config_map: The config map. + :vartype config_map: "ConfigMap" + """ + + image: str + """The name of the image used to create the container instance.""" + command: list[str] + """The commands to execute within the container instance in exec form.""" + ports: list["ContainerPort"] + """The exposed ports on the container instance.""" + environmentVariables: list["EnvironmentVariable"] + """The environment variables to set in the container instance.""" + instanceView: "ContainerPropertiesInstanceView" + """The instance view of the container instance. Only valid in response.""" + resources: "ResourceRequirements" + """The resource requirements of the container instance.""" + volumeMounts: list["VolumeMount"] + """The volume mounts available to the container instance.""" + livenessProbe: "ContainerProbe" + """The liveness probe.""" + readinessProbe: "ContainerProbe" + """The readiness probe.""" + securityContext: "SecurityContextDefinition" + """The container security properties.""" + configMap: "ConfigMap" + """The config map.""" + + +class ContainerPropertiesInstanceView(TypedDict, total=False): + """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: "ContainerState" + :ivar previous_state: Previous container instance state. + :vartype previous_state: "ContainerState" + :ivar events: The events of the container instance. + :vartype events: list["Event"] + """ + + restartCount: int + """The number of times that the container instance has been restarted.""" + currentState: "ContainerState" + """Current container instance state.""" + previousState: "ContainerState" + """Previous container instance state.""" + events: list["Event"] + """The events of the container instance.""" + + +class ContainerState(TypedDict, total=False): + """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: str + :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: str + :ivar detail_status: The human-readable status of the container instance state. + :vartype detail_status: str + """ + + state: str + """The state of the container instance.""" + startTime: str + """The date-time when the container instance state started.""" + exitCode: int + """The container instance exit codes correspond to those from the ``docker run`` command.""" + finishTime: str + """The date-time when the container instance state finished.""" + detailStatus: str + """The human-readable status of the container instance state.""" + + +class DeploymentExtensionSpec(TypedDict, total=False): + """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: "DeploymentExtensionSpecProperties" + """ + + name: Required[str] + """Name of the extension. Required.""" + properties: "DeploymentExtensionSpecProperties" + """Extension specific properties.""" + + +class DeploymentExtensionSpecProperties(TypedDict, total=False): + """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 + """ + + extensionType: Required[str] + """Type of extension to be added. Required.""" + version: Required[str] + """Version of the extension being used. Required.""" + settings: Any + """Settings for the extension.""" + protectedSettings: Any + """Protected settings for the extension.""" + + +class DnsConfiguration(TypedDict, total=False): + """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 + """ + + nameServers: Required[list[str]] + """The DNS servers for the container group. Required.""" + searchDomains: str + """The DNS search domains for hostname lookup in the container group.""" + options: str + """The DNS options for the container group.""" + + +class ElasticProfile(TypedDict, total=False): + """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: "ElasticProfileContainerGroupNamingPolicy" + """ + + desiredCount: int + maintainDesiredCount: bool + """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.""" + containerGroupNamingPolicy: "ElasticProfileContainerGroupNamingPolicy" + """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.""" + + +class ElasticProfileContainerGroupNamingPolicy(TypedDict, total=False): + """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: "ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy" + """ + + guidNamingPolicy: "ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy" + + +class ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy(TypedDict, total=False): # 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: str + """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.""" + + +class EncryptionProperties(TypedDict, total=False): + """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 + """ + + vaultBaseUrl: Required[str] + """The keyvault base url. Required.""" + keyName: Required[str] + """The encryption key name. Required.""" + keyVersion: Required[str] + """The encryption key version. Required.""" + identity: str + """The keyvault managed identity.""" + + +class EnvironmentVariable(TypedDict, total=False): + """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: Required[str] + """The name of the environment variable. Required.""" + value: str + """The value of the environment variable.""" + secureValue: str + """The value of the secure environment variable.""" + secureValueReference: str + """The reference of the secure environment variable.""" + + +class Event(TypedDict, total=False): + """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: str + :ivar last_timestamp: The date-time of the latest logged event. + :vartype last_timestamp: str + :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: int + """The count of the event.""" + firstTimestamp: str + """The date-time of the earliest logged event.""" + lastTimestamp: str + """The date-time of the latest logged event.""" + name: str + """The event name.""" + message: str + """The event message.""" + type: str + """The event type.""" + + +class FileShare(TypedDict, total=False): + """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: "FileShareProperties" + """ + + name: str + resourceGroupName: str + storageAccountName: str + properties: "FileShareProperties" + + +class FileShareProperties(TypedDict, total=False): + """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: Union[str, "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: Union[str, "AzureFileShareAccessTier"] + """ + + shareAccessType: Union[str, "AzureFileShareAccessType"] + """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\".""" + shareAccessTier: Union[str, "AzureFileShareAccessTier"] + """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\".""" + + +class GitRepoVolume(TypedDict, total=False): + """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: str + """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: Required[str] + """Repository URL. Required.""" + revision: str + """Commit hash for the specified revision.""" + + +class GpuResource(TypedDict, total=False): + """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: Union[str, "GpuSku"] + """ + + count: Required[int] + """The count of the GPU resource. Required.""" + sku: Required[Union[str, "GpuSku"]] + """The SKU of the GPU resource. Required. Known values are: \"K80\", \"P100\", and \"V100\".""" + + +class HttpHeader(TypedDict, total=False): + """The HTTP header. + + :ivar name: The header name. + :vartype name: str + :ivar value: The header value. + :vartype value: str + """ + + name: str + """The header name.""" + value: str + """The header value.""" + + +class IdentityAccessControl(TypedDict, total=False): + """The access control for an identity. + + :ivar access: The access level of the identity. Known values are: "All", "System", and "User". + :vartype access: Union[str, "IdentityAccessLevel"] + :ivar identity: An identity. + :vartype identity: str + """ + + access: Union[str, "IdentityAccessLevel"] + """The access level of the identity. Known values are: \"All\", \"System\", and \"User\".""" + identity: str + """An identity.""" + + +class IdentityAcls(TypedDict, total=False): + """The access control levels of the identities. + + :ivar default_access: The default access level. Known values are: "All", "System", and "User". + :vartype default_access: Union[str, "IdentityAccessLevel"] + :ivar acls: The access control levels for each identity. + :vartype acls: list["IdentityAccessControl"] + """ + + defaultAccess: Union[str, "IdentityAccessLevel"] + """The default access level. Known values are: \"All\", \"System\", and \"User\".""" + acls: list["IdentityAccessControl"] + """The access control levels for each identity.""" + + +class ImageRegistryCredential(TypedDict, total=False): + """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: Required[str] + """The Docker image registry server without a protocol such as \"http\" and \"https\". Required.""" + username: str + """The username for the private registry.""" + password: str + """The password for the private registry.""" + passwordReference: str + """The reference for the private registry password.""" + identity: str + """The identity for the private registry.""" + identityUrl: str + """The identity URL for the private registry.""" + + +class InitContainerDefinition(TypedDict, total=False): + """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: "InitContainerPropertiesDefinition" + """ + + name: Required[str] + """The name for the init container. Required.""" + properties: Required["InitContainerPropertiesDefinition"] + """The properties for the init container. Required.""" + + +class InitContainerPropertiesDefinition(TypedDict, total=False): + """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["EnvironmentVariable"] + :ivar instance_view: The instance view of the init container. Only valid in response. + :vartype instance_view: "InitContainerPropertiesDefinitionInstanceView" + :ivar volume_mounts: The volume mounts available to the init container. + :vartype volume_mounts: list["VolumeMount"] + :ivar security_context: The container security properties. + :vartype security_context: "SecurityContextDefinition" + """ + + image: str + """The image of the init container.""" + command: list[str] + """The command to execute within the init container in exec form.""" + environmentVariables: list["EnvironmentVariable"] + """The environment variables to set in the init container.""" + instanceView: "InitContainerPropertiesDefinitionInstanceView" + """The instance view of the init container. Only valid in response.""" + volumeMounts: list["VolumeMount"] + """The volume mounts available to the init container.""" + securityContext: "SecurityContextDefinition" + """The container security properties.""" + + +class InitContainerPropertiesDefinitionInstanceView(TypedDict, total=False): # 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: "ContainerState" + :ivar previous_state: The previous state of the init container. + :vartype previous_state: "ContainerState" + :ivar events: The events of the init container. + :vartype events: list["Event"] + """ + + restartCount: int + """The number of times that the init container has been restarted.""" + currentState: "ContainerState" + """The current state of the init container.""" + previousState: "ContainerState" + """The previous state of the init container.""" + events: list["Event"] + """The events of the init container.""" + + +class IpAddress(TypedDict, total=False): + """IP address for the container group. + + :ivar ports: The list of ports exposed on the container group. Required. + :vartype ports: list["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: Union[str, "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: Union[str, "DnsNameLabelReusePolicy"] + :ivar fqdn: The FQDN for the IP. + :vartype fqdn: str + """ + + ports: Required[list["Port"]] + """The list of ports exposed on the container group. Required.""" + type: Required[Union[str, "ContainerGroupIpAddressType"]] + """Specifies if the IP is exposed to the public internet or private VNET. Required. Known values + are: \"Public\" and \"Private\".""" + ip: str + """The IP exposed to the public internet.""" + dnsNameLabel: str + """The Dns name label for the IP.""" + autoGeneratedDomainNameLabelScope: Union[str, "DnsNameLabelReusePolicy"] + """The value representing the security enum. The 'Unsecure' value is the default value if not + selected and means the object's domain name label is not secured against subdomain takeover. + The 'TenantReuse' value is the default value if selected and means the object's domain name + label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's + domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value + means the object's domain name label can be reused within the same resource group. The + 'NoReuse' value means the object's domain name label cannot be reused within the same resource + group, subscription, or tenant. Known values are: \"Unsecure\", \"TenantReuse\", + \"SubscriptionReuse\", \"ResourceGroupReuse\", and \"Noreuse\".""" + fqdn: str + """The FQDN for the IP.""" + + +class LoadBalancer(TypedDict, total=False): + """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["LoadBalancerBackendAddressPool"] + """ + + backendAddressPools: list["LoadBalancerBackendAddressPool"] + """List of Load Balancer Backend Address Pools.""" + + +class LoadBalancerBackendAddressPool(TypedDict, total=False): + """NGroups load balancer backend address pool. + + :ivar resource: The Load Balancer backend address pool ARM resource Id. + :vartype resource: str + """ + + resource: str + """The Load Balancer backend address pool ARM resource Id.""" + + +class LogAnalytics(TypedDict, total=False): + """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: Union[str, "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 + """ + + workspaceId: Required[str] + """The workspace id for log analytics. Required.""" + workspaceKey: Required[str] + """The workspace key for log analytics. Required.""" + logType: Union[str, "LogAnalyticsLogType"] + """The log type to be used. Known values are: \"ContainerInsights\" and \"ContainerInstanceLogs\".""" + metadata: dict[str, str] + """Metadata for log analytics.""" + workspaceResourceId: str + """The workspace resource id for log analytics.""" + + +class ManagedServiceIdentity(TypedDict, total=False): + """Managed service identity (system assigned and/or user assigned identities). + + :ivar principal_id: The service principal ID of the system assigned identity. This property + will only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be + provided for a system assigned identity. + :vartype tenant_id: str + :ivar type: The type of managed identity assigned to this resource. Required. Known values are: + "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". + :vartype type: Union[str, "ManagedServiceIdentityType"] + :ivar user_assigned_identities: The identities assigned to this resource by the user. + :vartype user_assigned_identities: dict[str, "UserAssignedIdentity"] + """ + + principalId: str + """The service principal ID of the system assigned identity. This property will only be provided + for a system assigned identity.""" + tenantId: str + """The tenant ID of the system assigned identity. This property will only be provided for a system + assigned identity.""" + type: Required[Union[str, "ManagedServiceIdentityType"]] + """The type of managed identity assigned to this resource. Required. Known values are: \"None\", + \"SystemAssigned\", \"UserAssigned\", and \"SystemAssigned,UserAssigned\".""" + userAssignedIdentities: dict[str, "UserAssignedIdentity"] + """The identities assigned to this resource by the user.""" + + +class NetworkProfile(TypedDict, total=False): + """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: "LoadBalancer" + :ivar application_gateway: Application Gateway the CG profile will use to interact with CGs in + a backend pool. + :vartype application_gateway: "ApplicationGateway" + """ + + loadBalancer: "LoadBalancer" + """LoadBalancer the CG profile will use to interact with CGs in a backend pool.""" + applicationGateway: "ApplicationGateway" + """Application Gateway the CG profile will use to interact with CGs in a backend pool.""" + + +class NGroup(ProxyResource): + """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: "SystemData" + :ivar properties: Describes the properties of the NGroups resource. + :vartype properties: "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: "NGroupIdentity" + """ + + properties: "NGroupProperties" + """Describes the properties of the NGroups resource.""" + tags: dict[str, str] + """Resource tags.""" + location: str + """The geo-location where the resource lives.""" + zones: list[str] + """The availability zones.""" + identity: "NGroupIdentity" + """The identity of the NGroup, if configured.""" + + +class NGroupCGPropertyContainer(TypedDict, total=False): + """Container properties that can be provided with NGroups object. + + :ivar name: container name. + :vartype name: str + :ivar properties: container properties. + :vartype properties: "NGroupCGPropertyContainerProperties" + """ + + name: str + """container name.""" + properties: "NGroupCGPropertyContainerProperties" + """container properties.""" + + +class NGroupCGPropertyContainerProperties(TypedDict, total=False): + """container properties. + + :ivar volume_mounts: + :vartype volume_mounts: list["VolumeMount"] + """ + + volumeMounts: list["VolumeMount"] + + +class NGroupCGPropertyVolume(TypedDict, total=False): + """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: "AzureFileVolume" + """ + + name: Required[str] + """The name of the volume. Required.""" + azureFile: "AzureFileVolume" + """The Azure File volume.""" + + +class NGroupContainerGroupProperties(TypedDict, total=False): + """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["ContainerGroupSubnetId"] + :ivar volumes: Contains information about the volumes that can be mounted by Containers in the + Container Groups. + :vartype volumes: list["NGroupCGPropertyVolume"] + :ivar containers: Contains information about Container which can be set while creating or + updating the NGroups. + :vartype containers: list["NGroupCGPropertyContainer"] + """ + + subnetIds: list["ContainerGroupSubnetId"] + """Contains information about Virtual Network Subnet ARM Resource.""" + volumes: list["NGroupCGPropertyVolume"] + """Contains information about the volumes that can be mounted by Containers in the Container + Groups.""" + containers: list["NGroupCGPropertyContainer"] + """Contains information about Container which can be set while creating or updating the NGroups.""" + + +class NGroupIdentity(TypedDict, total=False): + """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: Union[str, "ResourceIdentityType"] + :ivar user_assigned_identities: The list of user identities associated with the NGroup. + :vartype user_assigned_identities: dict[str, "UserAssignedIdentities"] + """ + + principalId: str + """The principal id of the NGroup identity. This property will only be provided for a system + assigned identity.""" + tenantId: str + """The tenant id associated with the NGroup. This property will only be provided for a system + assigned identity.""" + type: Union[str, "ResourceIdentityType"] + """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\".""" + userAssignedIdentities: dict[str, "UserAssignedIdentities"] + """The list of user identities associated with the NGroup.""" + + +class NGroupPatch(TypedDict, total=False): + """Describes the NGroups resource. + + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: "SystemData" + :ivar properties: Describes the properties of the NGroups resource. + :vartype properties: "NGroupProperties" + :ivar identity: The identity of the NGroup, if configured. + :vartype identity: "NGroupIdentity" + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar zones: The zones for the NGroup. + :vartype zones: list[str] + """ + + systemData: "SystemData" + """Metadata pertaining to creation and last modification of the resource.""" + properties: "NGroupProperties" + """Describes the properties of the NGroups resource.""" + identity: "NGroupIdentity" + """The identity of the NGroup, if configured.""" + tags: dict[str, str] + """The resource tags.""" + zones: list[str] + """The zones for the NGroup.""" + + +class NGroupProperties(TypedDict, total=False): + """Describes the properties of the NGroups resource. + + :ivar elastic_profile: The elastic profile. + :vartype elastic_profile: "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: "PlacementProfile" + :ivar container_group_profiles: The Container Group Profiles that could be used in the NGroups + resource. + :vartype container_group_profiles: list["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: Union[str, "NGroupProvisioningState"] + :ivar update_profile: Used by the customer to specify the way to update the Container Groups in + NGroup. + :vartype update_profile: "UpdateProfile" + """ + + elasticProfile: "ElasticProfile" + """The elastic profile.""" + placementProfile: "PlacementProfile" + """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.""" + containerGroupProfiles: list["ContainerGroupProfileStub"] + """The Container Group Profiles that could be used in the NGroups resource.""" + provisioningState: Union[str, "NGroupProvisioningState"] + """The provisioning state, which only appears in the response. Known values are: \"Creating\", + \"Updating\", \"Failed\", \"Succeeded\", \"Canceled\", \"Deleting\", and \"Migrating\".""" + updateProfile: "UpdateProfile" + """Used by the customer to specify the way to update the Container Groups in NGroup.""" + + +class PlacementProfile(TypedDict, total=False): + """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 + """ + + faultDomainCount: int + """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.""" + + +class Port(TypedDict, total=False): + """The port exposed on the container group. + + :ivar protocol: The protocol associated with the port. Known values are: "TCP" and "UDP". + :vartype protocol: Union[str, "ContainerGroupNetworkProtocol"] + :ivar port: The port number. Required. + :vartype port: int + """ + + protocol: Union[str, "ContainerGroupNetworkProtocol"] + """The protocol associated with the port. Known values are: \"TCP\" and \"UDP\".""" + port: Required[int] + """The port number. Required.""" + + +class Resource(TypedDict, total=False): + """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: str + """The resource id.""" + name: str + """The resource name.""" + type: str + """The resource type.""" + location: str + """The resource location.""" + tags: dict[str, str] + """The resource tags.""" + zones: list[str] + """The zones for the container group.""" + + +class ResourceLimits(TypedDict, total=False): + """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: "GpuResource" + """ + + memoryInGB: float + """The memory limit in GB of this container instance.""" + cpu: float + """The CPU limit of this container instance.""" + gpu: "GpuResource" + """The GPU limit of this container instance.""" + + +class ResourceRequests(TypedDict, total=False): + """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: "GpuResource" + """ + + memoryInGB: Required[float] + """The memory request in GB of this container instance. Required.""" + cpu: Required[float] + """The CPU request of this container instance. Required.""" + gpu: "GpuResource" + """The GPU request of this container instance.""" + + +class ResourceRequirements(TypedDict, total=False): + """The resource requirements. + + :ivar requests: The resource requests of this container instance. Required. + :vartype requests: "ResourceRequests" + :ivar limits: The resource limits of this container instance. + :vartype limits: "ResourceLimits" + """ + + requests: Required["ResourceRequests"] + """The resource requests of this container instance. Required.""" + limits: "ResourceLimits" + """The resource limits of this container instance.""" + + +class SecretReference(TypedDict, total=False): + """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: Required[str] + """The identifier of the secret reference. Required.""" + identity: Required[str] + """The ARM resource id of the managed identity that has access to the secret in the key vault. + Required.""" + secretReferenceUri: Required[str] + """The URI to the secret in key vault. Required.""" + + +class SecurityContextCapabilitiesDefinition(TypedDict, total=False): + """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: list[str] + """The capabilities to add to the container.""" + drop: list[str] + """The capabilities to drop from the container.""" + + +class SecurityContextDefinition(TypedDict, total=False): + """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: "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: bool + """The flag to determine if the container permissions is elevated to Privileged.""" + allowPrivilegeEscalation: bool + """A boolean value indicating whether the init process can elevate its privileges.""" + capabilities: "SecurityContextCapabilitiesDefinition" + """The capabilities to add or drop from a container.""" + runAsGroup: int + """Sets the User GID for the container.""" + runAsUser: int + """Sets the User UID for the container.""" + seccompProfile: str + """a base64 encoded string containing the contents of the JSON in the seccomp profile.""" + + +class StandbyPoolProfileDefinition(TypedDict, total=False): + """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: str + """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}'.""" + failContainerGroupCreateOnReuseFailure: bool + """The flag to determine whether ACI should fail the create request if the container group can not + be obtained from standby pool.""" + + +class StorageProfile(TypedDict, total=False): + """Storage profile for storage related settings of a container group profile. + + :ivar file_shares: + :vartype file_shares: list["FileShare"] + """ + + fileShares: list["FileShare"] + + +class SubnetReference(TypedDict, total=False): + """A reference to a subnet resource. + + :ivar id: The ARM resource ID of the subnet. The caller must have + ``Microsoft.Network/virtualNetworks/subnets/join/action`` permission on this subnet (enforced + via a linked access check at create/update time). Required. + :vartype id: str + """ + + id: Required[str] + """The ARM resource ID of the subnet. The caller must have + ``Microsoft.Network/virtualNetworks/subnets/join/action`` permission on this subnet (enforced + via a linked access check at create/update time). Required.""" + + +class SystemData(TypedDict, total=False): + """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: Union[str, "CreatedByType"] + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: str + :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: Union[str, "CreatedByType"] + :ivar last_modified_at: The timestamp of resource last modification (UTC). + :vartype last_modified_at: str + """ + + createdBy: str + """The identity that created the resource.""" + createdByType: Union[str, "CreatedByType"] + """The type of identity that created the resource. Known values are: \"User\", \"Application\", + \"ManagedIdentity\", and \"Key\".""" + createdAt: str + """The timestamp of resource creation (UTC).""" + lastModifiedBy: str + """The identity that last modified the resource.""" + lastModifiedByType: Union[str, "CreatedByType"] + """The type of identity that last modified the resource. Known values are: \"User\", + \"Application\", \"ManagedIdentity\", and \"Key\".""" + lastModifiedAt: str + """The timestamp of resource last modification (UTC).""" + + +class UpdateProfile(TypedDict, total=False): + """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: Union[str, "NGroupUpdateMode"] + :ivar rolling_update_profile: This profile allows the customers to customize the rolling + update. + :vartype rolling_update_profile: "UpdateProfileRollingUpdateProfile" + """ + + updateMode: Union[str, "NGroupUpdateMode"] + """Known values are: \"Manual\" and \"Rolling\".""" + rollingUpdateProfile: "UpdateProfileRollingUpdateProfile" + """This profile allows the customers to customize the rolling update.""" + + +class UpdateProfileRollingUpdateProfile(TypedDict, total=False): + """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 + """ + + maxBatchPercent: int + """Maximum percentage of total Container Groups which can be updated simultaneously by rolling + update in one batch.""" + maxUnhealthyPercent: int + """Maximum percentage of the updated Container Groups which can be in unhealthy state after each + batch is updated.""" + pauseTimeBetweenBatches: str + """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.""" + inPlaceUpdate: bool + """Default is false. If set to true, the CGs will be updated in-place instead of creating new CG + and deleting old ones.""" + + +class UserAssignedIdentities(TypedDict, total=False): + """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 + """ + + principalId: str + """The principal id of user assigned identity.""" + clientId: str + """The client id of user assigned identity.""" + + +class UserAssignedIdentity(TypedDict, total=False): + """User assigned identity properties. + + :ivar principal_id: The principal ID of the assigned identity. + :vartype principal_id: str + :ivar client_id: The client ID of the assigned identity. + :vartype client_id: str + """ + + principalId: str + """The principal ID of the assigned identity.""" + clientId: str + """The client ID of the assigned identity.""" + + +class Volume(TypedDict, total=False): + """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: "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: "GitRepoVolume" + """ + + name: Required[str] + """The name of the volume. Required.""" + azureFile: "AzureFileVolume" + """The Azure File volume.""" + emptyDir: Any + """The empty directory volume.""" + secret: dict[str, str] + """The secret volume.""" + secretReference: dict[str, str] + """The secret reference volume.""" + gitRepo: "GitRepoVolume" + """The git repo volume.""" + + +class VolumeMount(TypedDict, total=False): + """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: Required[str] + """The name of the volume mount. Required.""" + mountPath: Required[str] + """The path within the container where the volume should be mounted. Must not contain colon (:). + Required.""" + readOnly: bool + """The flag indicating whether the volume mount is read-only.""" diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_connect.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_connect.py similarity index 86% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_connect.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_connect.py index 331b3719fa97..b71fb6107493 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_connect.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_connect.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-containerinstance # USAGE - python sandbox_groups_connect.py + python ai_agents_groups_connect.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,13 +30,13 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - response = client.sandbox_groups.connect( + response = client.ai_agents_groups.connect( resource_group_name="myResourceGroup", - sandbox_group_name="mySandboxGroup", + ai_agents_group_name="myAiAgentsGroup", ) print(response) -# x-ms-original-file: 2026-06-01-preview/SandboxGroupsConnect.json +# x-ms-original-file: 2026-08-01-preview/AiAgentsGroupsConnect.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_create_or_update.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_create_or_update.py similarity index 89% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_create_or_update.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_create_or_update.py index aceac72c6eb3..4b68dcb9f2b4 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_create_or_update.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_create_or_update.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-containerinstance # USAGE - python sandbox_groups_create_or_update.py + python ai_agents_groups_create_or_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, @@ -31,9 +31,9 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - response = client.sandbox_groups.begin_create_or_update( + response = client.ai_agents_groups.begin_create_or_update( resource_group_name="myResourceGroup", - sandbox_group_name="mySandboxGroup", + ai_agents_group_name="myAiAgentsGroup", resource={ "location": "eastus", "properties": { @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/SandboxGroupsCreateOrUpdate.json +# x-ms-original-file: 2026-08-01-preview/AiAgentsGroupsCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_delete.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_delete.py similarity index 87% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_delete.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_delete.py index 63d0206a6cd7..26f7950cf0b5 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_delete.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_delete.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-containerinstance # USAGE - python sandbox_groups_delete.py + python ai_agents_groups_delete.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,12 +30,12 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - client.sandbox_groups.begin_delete( + client.ai_agents_groups.begin_delete( resource_group_name="myResourceGroup", - sandbox_group_name="mySandboxGroup", + ai_agents_group_name="myAiAgentsGroup", ).result() -# x-ms-original-file: 2026-06-01-preview/SandboxGroupsDelete.json +# x-ms-original-file: 2026-08-01-preview/AiAgentsGroupsDelete.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_get.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_get.py similarity index 87% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_get.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_get.py index 97781d4c78ec..8ae3f188b7cf 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_get.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_get.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-containerinstance # USAGE - python sandbox_groups_get.py + python ai_agents_groups_get.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,13 +30,13 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - response = client.sandbox_groups.get( + response = client.ai_agents_groups.get( resource_group_name="myResourceGroup", - sandbox_group_name="mySandboxGroup", + ai_agents_group_name="myAiAgentsGroup", ) print(response) -# x-ms-original-file: 2026-06-01-preview/SandboxGroupsGet.json +# x-ms-original-file: 2026-08-01-preview/AiAgentsGroupsGet.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_list_by_resource_group.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_list_by_resource_group.py similarity index 87% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_list_by_resource_group.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_list_by_resource_group.py index 7d8c79d1298b..854d90a10dbe 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_list_by_resource_group.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_list_by_resource_group.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-containerinstance # USAGE - python sandbox_groups_list_by_resource_group.py + python ai_agents_groups_list_by_resource_group.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,13 +30,13 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - response = client.sandbox_groups.list_by_resource_group( + response = client.ai_agents_groups.list_by_resource_group( resource_group_name="myResourceGroup", ) for item in response: print(item) -# x-ms-original-file: 2026-06-01-preview/SandboxGroupsListByResourceGroup.json +# x-ms-original-file: 2026-08-01-preview/AiAgentsGroupsListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_list_by_subscription.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_list_by_subscription.py similarity index 87% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_list_by_subscription.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_list_by_subscription.py index 0307b00d616d..119d2cfa46c2 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_list_by_subscription.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_list_by_subscription.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-containerinstance # USAGE - python sandbox_groups_list_by_subscription.py + python ai_agents_groups_list_by_subscription.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,11 +30,11 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - response = client.sandbox_groups.list_by_subscription() + response = client.ai_agents_groups.list_by_subscription() for item in response: print(item) -# x-ms-original-file: 2026-06-01-preview/SandboxGroupsListBySubscription.json +# x-ms-original-file: 2026-08-01-preview/AiAgentsGroupsListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_update.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_update.py similarity index 87% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_update.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_update.py index 3350b5373323..d5b60186cf2c 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/sandbox_groups_update.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ai_agents_groups_update.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-containerinstance # USAGE - python sandbox_groups_update.py + python ai_agents_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,14 +30,14 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - response = client.sandbox_groups.begin_update( + response = client.ai_agents_groups.begin_update( resource_group_name="myResourceGroup", - sandbox_group_name="mySandboxGroup", + ai_agents_group_name="myAiAgentsGroup", properties={"tags": {"environment": "production"}}, ).result() print(response) -# x-ms-original-file: 2026-06-01-preview/SandboxGroupsUpdate.json +# x-ms-original-file: 2026-08-01-preview/AiAgentsGroupsUpdate.json if __name__ == "__main__": main() 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 2d3e64e2dbc2..74a4881be31f 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 @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-06-01-preview/CachedImagesList.json +# x-ms-original-file: 2026-08-01-preview/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 5082fbd48ac2..0084ef82445b 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/capabilities_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-06-01-preview/CapabilitiesList.json +# x-ms-original-file: 2026-08-01-preview/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 73c97820d474..d32730e9c204 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_attach.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerAttach.json +# x-ms-original-file: 2026-08-01-preview/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 60b91c09e0a0..7690ebdb908b 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_exec.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerExec.json +# x-ms-original-file: 2026-08-01-preview/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 d8017da1c205..2c6b9fa16646 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 @@ -63,6 +63,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupCreateConfidential.json +# x-ms-original-file: 2026-08-01-preview/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 8d0d4198d252..71d600850cb0 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 @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupCreateOrUpdateStandbyPool.json +# x-ms-original-file: 2026-08-01-preview/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 fab1daaa9f08..bc360c83b29a 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 @@ -70,6 +70,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupEncryptionProperties.json +# x-ms-original-file: 2026-08-01-preview/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 8c536dadf0f7..9e074b4f301a 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 @@ -78,6 +78,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupExtensions.json +# x-ms-original-file: 2026-08-01-preview/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 b690694e3646..cd211292624d 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 @@ -64,6 +64,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupProfileCreateOrUpdate_CreateConfidential.json +# x-ms-original-file: 2026-08-01-preview/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 eb456150f2a0..1ff7366101eb 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 @@ -65,6 +65,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupProfileCreateOrUpdate_EncryptionProperties.json +# x-ms-original-file: 2026-08-01-preview/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 6942d999d888..55e7eaa342f8 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 @@ -73,6 +73,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupProfileCreateOrUpdate_Extensions.json +# x-ms-original-file: 2026-08-01-preview/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 fabddb6f120f..5327bae626f4 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 @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupProfileGetByRevisionNumber.json +# x-ms-original-file: 2026-08-01-preview/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 7e181b3d1a3c..3fdd2578b0ff 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 @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupProfileListAllRevisions.json +# x-ms-original-file: 2026-08-01-preview/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 6e783061d404..b88363addb26 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 @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupProfilesCreateOrUpdate.json +# x-ms-original-file: 2026-08-01-preview/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 2b6b66cae981..7bfb1b1912cc 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 @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupProfilesDelete.json +# x-ms-original-file: 2026-08-01-preview/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 8abc5376856d..ec3226137d0e 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 @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupProfilesGet.json +# x-ms-original-file: 2026-08-01-preview/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 f14d0b2502b9..aa282d6d83f9 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 @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupProfilesGetPriority.json +# x-ms-original-file: 2026-08-01-preview/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 d86f1962493e..dafc16cece10 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 @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupProfilesList.json +# x-ms-original-file: 2026-08-01-preview/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 d2bc5f363f13..8f4f3d51bd2f 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 @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupProfilesListByResourceGroup.json +# x-ms-original-file: 2026-08-01-preview/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 9ba29cbe1785..d948f1b71118 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 @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupProfilesPatch.json +# x-ms-original-file: 2026-08-01-preview/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 3a56ffa015c7..ccbee822435e 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 @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupUsage.json +# x-ms-original-file: 2026-08-01-preview/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 190b94618390..55e6a56ad59e 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 @@ -108,6 +108,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsCreateOrUpdate.json +# x-ms-original-file: 2026-08-01-preview/ContainerGroupsCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_managed_identity_azure_fileshare.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_managed_identity_azure_fileshare.py new file mode 100644 index 000000000000..2766b0c48ecb --- /dev/null +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update_managed_identity_azure_fileshare.py @@ -0,0 +1,113 @@ +# 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) 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 + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-containerinstance +# USAGE + python container_groups_create_or_update_managed_identity_azure_fileshare.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="SUBSCRIPTION_ID", + ) + + response = client.container_groups.begin_create_or_update( + resource_group_name="demo", + container_group_name="demo1", + container_group={ + "identity": { + "type": "SystemAssigned, 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": [], + "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}, + ], + }, + } + ], + "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": [], + "ipAddress": { + "autoGeneratedDomainNameLabelScope": "Unsecure", + "dnsNameLabel": "dnsnamelabel1", + "ports": [{"port": 80, "protocol": "TCP"}], + "type": "Public", + }, + "osType": "Linux", + "subnetIds": [ + { + "id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnetName'))]" + } + ], + "volumes": [ + { + "azureFile": { + "shareName": "shareName", + "storageAccountName": "accountName", + "userAssignedIdentityClientId": "00000000-0000-0000-0000-000000000000", + }, + "name": "volume1", + }, + {"emptyDir": {}, "name": "volume2"}, + { + "name": "volume3", + "secret": {"secretKey1": "SecretValue1InBase64", "secretKey2": "SecretValue2InBase64"}, + }, + ], + }, + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-08-01-preview/ContainerGroupsCreateOrUpdateManagedIdentityAzureFileshare.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 6f7347813593..530bb8717ea3 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 @@ -137,6 +137,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsCreateOrUpdateSecretReference.json +# x-ms-original-file: 2026-08-01-preview/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 601bff79d438..620188a54873 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 @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsCreatePriority.json +# x-ms-original-file: 2026-08-01-preview/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 2f182f315063..c818e106ee76 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 @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsDelete.json +# x-ms-original-file: 2026-08-01-preview/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 22eb9819dc39..d1c4398acf2c 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 @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsGet_Failed.json +# x-ms-original-file: 2026-08-01-preview/ContainerGroupsGet_Failed.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_outbound_network_dependencies_endpoints.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_outbound_network_dependencies_endpoints.py index 5cba7d3a0cd5..febfb69ff003 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_outbound_network_dependencies_endpoints.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_get_outbound_network_dependencies_endpoints.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsGetOutboundNetworkDependenciesEndpoints.json +# x-ms-original-file: 2026-08-01-preview/ContainerGroupsGetOutboundNetworkDependenciesEndpoints.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 53ddd12e7ae3..fff4efb5779c 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 @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsGetPriority.json +# x-ms-original-file: 2026-08-01-preview/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 e90dcf4e9e34..89b19f36bccd 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 @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsGet_Succeeded.json +# x-ms-original-file: 2026-08-01-preview/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 956c7b94ade4..49331cb41539 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 @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsList.json +# x-ms-original-file: 2026-08-01-preview/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 9f79ae70334d..7d5dbb9a1674 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 @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsListByResourceGroup.json +# x-ms-original-file: 2026-08-01-preview/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 28949a9405c1..54a7ec382176 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 @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsRestart.json +# x-ms-original-file: 2026-08-01-preview/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 847b630761b0..a23059f93ede 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 @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsStart.json +# x-ms-original-file: 2026-08-01-preview/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 2939ce1b47fa..36af925a78e9 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 @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsStop.json +# x-ms-original-file: 2026-08-01-preview/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 969f724d044a..5e34aa2574a5 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 @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerGroupsUpdate.json +# x-ms-original-file: 2026-08-01-preview/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 7f8693b5d01c..c93f4e9fc012 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 @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/ContainerListLogs.json +# x-ms-original-file: 2026-08-01-preview/ContainerListLogs.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_create_or_update.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_create_or_update.py index 5677be1693f0..36e1672710e6 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_create_or_update.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_create_or_update.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/NGroupsCreateOrUpdate.json +# x-ms-original-file: 2026-08-01-preview/NGroupsCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_delete.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_delete.py index a88e03423044..f5270be4f518 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_delete.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-06-01-preview/NGroupsDelete.json +# x-ms-original-file: 2026-08-01-preview/NGroupsDelete.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_get.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_get.py index a710eeb9b48e..b88d68c4eccb 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_get.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/NGroupsGet.json +# x-ms-original-file: 2026-08-01-preview/NGroupsGet.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_list.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_list.py index c845bad57498..dfa010029a38 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-06-01-preview/NGroupsList.json +# x-ms-original-file: 2026-08-01-preview/NGroupsList.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_list_by_resource_group.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_list_by_resource_group.py index 08286023bbba..71a463cc8281 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_list_by_resource_group.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-06-01-preview/NGroupsListByResourceGroup.json +# x-ms-original-file: 2026-08-01-preview/NGroupsListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_restart.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_restart.py index 44ffcf05960e..258b8ca3885a 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_restart.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_restart.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-06-01-preview/NGroupsRestart.json +# x-ms-original-file: 2026-08-01-preview/NGroupsRestart.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_start.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_start.py index 73f903ae5a75..f7c54b893eeb 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_start.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_start.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-06-01-preview/NGroupsStart.json +# x-ms-original-file: 2026-08-01-preview/NGroupsStart.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_stop.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_stop.py index 8de2d0484f8b..649a014d746c 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_stop.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_stop.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-06-01-preview/NGroupsStop.json +# x-ms-original-file: 2026-08-01-preview/NGroupsStop.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_update.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_update.py index 3eb517536a9d..fde5a3e405fc 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_update.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/ngroups_update.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-06-01-preview/NGroupsUpdate.json +# x-ms-original-file: 2026-08-01-preview/NGroupsUpdate.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 26a094b05c13..6ee890ea5834 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/operations_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-06-01-preview/OperationsList.json +# x-ms-original-file: 2026-08-01-preview/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 c690f06725c3..f167f8826c06 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 @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-06-01-preview/SubnetServiceAssociationLinkDelete.json +# x-ms-original-file: 2026-08-01-preview/SubnetServiceAssociationLinkDelete.json if __name__ == "__main__": main() diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_sandbox_groups_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ai_agents_groups_operations.py similarity index 77% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_sandbox_groups_operations.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ai_agents_groups_operations.py index c2553b4bbcc6..71b3339509c5 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_sandbox_groups_operations.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ai_agents_groups_operations.py @@ -14,22 +14,22 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementSandboxGroupsOperations(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementAiAgentsGroupsOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): self.client = self.create_mgmt_client(ContainerInstanceManagementClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_sandbox_groups_list_by_subscription(self, resource_group): - response = self.client.sandbox_groups.list_by_subscription() + def test_ai_agents_groups_list_by_subscription(self, resource_group): + response = self.client.ai_agents_groups.list_by_subscription() result = [r for r in response] # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_sandbox_groups_list_by_resource_group(self, resource_group): - response = self.client.sandbox_groups.list_by_resource_group( + def test_ai_agents_groups_list_by_resource_group(self, resource_group): + response = self.client.ai_agents_groups.list_by_resource_group( resource_group_name=resource_group.name, ) result = [r for r in response] @@ -38,10 +38,10 @@ def test_sandbox_groups_list_by_resource_group(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_sandbox_groups_get(self, resource_group): - response = self.client.sandbox_groups.get( + def test_ai_agents_groups_get(self, resource_group): + response = self.client.ai_agents_groups.get( resource_group_name=resource_group.name, - sandbox_group_name="str", + ai_agents_group_name="str", ) # please add some check logic here by yourself @@ -49,10 +49,10 @@ def test_sandbox_groups_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_sandbox_groups_begin_create_or_update(self, resource_group): - response = self.client.sandbox_groups.begin_create_or_update( + def test_ai_agents_groups_begin_create_or_update(self, resource_group): + response = self.client.ai_agents_groups.begin_create_or_update( resource_group_name=resource_group.name, - sandbox_group_name="str", + ai_agents_group_name="str", resource={ "location": "str", "id": "str", @@ -86,10 +86,10 @@ def test_sandbox_groups_begin_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_sandbox_groups_begin_update(self, resource_group): - response = self.client.sandbox_groups.begin_update( + def test_ai_agents_groups_begin_update(self, resource_group): + response = self.client.ai_agents_groups.begin_update( resource_group_name=resource_group.name, - sandbox_group_name="str", + ai_agents_group_name="str", properties={ "identity": { "type": "str", @@ -106,10 +106,10 @@ def test_sandbox_groups_begin_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_sandbox_groups_begin_delete(self, resource_group): - response = self.client.sandbox_groups.begin_delete( + def test_ai_agents_groups_begin_delete(self, resource_group): + response = self.client.ai_agents_groups.begin_delete( resource_group_name=resource_group.name, - sandbox_group_name="str", + ai_agents_group_name="str", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -117,10 +117,10 @@ def test_sandbox_groups_begin_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_sandbox_groups_connect(self, resource_group): - response = self.client.sandbox_groups.connect( + def test_ai_agents_groups_connect(self, resource_group): + response = self.client.ai_agents_groups.connect( resource_group_name=resource_group.name, - sandbox_group_name="str", + ai_agents_group_name="str", ) # please add some check logic here by yourself diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_sandbox_groups_operations_async.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ai_agents_groups_operations_async.py similarity index 77% rename from sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_sandbox_groups_operations_async.py rename to sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ai_agents_groups_operations_async.py index 6b36c8cdf238..fe7fdcb8e3c9 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_sandbox_groups_operations_async.py +++ b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_ai_agents_groups_operations_async.py @@ -15,22 +15,22 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestContainerInstanceManagementSandboxGroupsOperationsAsync(AzureMgmtRecordedTestCase): +class TestContainerInstanceManagementAiAgentsGroupsOperationsAsync(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_sandbox_groups_list_by_subscription(self, resource_group): - response = self.client.sandbox_groups.list_by_subscription() + async def test_ai_agents_groups_list_by_subscription(self, resource_group): + response = self.client.ai_agents_groups.list_by_subscription() 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_sandbox_groups_list_by_resource_group(self, resource_group): - response = self.client.sandbox_groups.list_by_resource_group( + async def test_ai_agents_groups_list_by_resource_group(self, resource_group): + response = self.client.ai_agents_groups.list_by_resource_group( resource_group_name=resource_group.name, ) result = [r async for r in response] @@ -39,10 +39,10 @@ async def test_sandbox_groups_list_by_resource_group(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_sandbox_groups_get(self, resource_group): - response = await self.client.sandbox_groups.get( + async def test_ai_agents_groups_get(self, resource_group): + response = await self.client.ai_agents_groups.get( resource_group_name=resource_group.name, - sandbox_group_name="str", + ai_agents_group_name="str", ) # please add some check logic here by yourself @@ -50,11 +50,11 @@ async def test_sandbox_groups_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_sandbox_groups_begin_create_or_update(self, resource_group): + async def test_ai_agents_groups_begin_create_or_update(self, resource_group): response = await ( - await self.client.sandbox_groups.begin_create_or_update( + await self.client.ai_agents_groups.begin_create_or_update( resource_group_name=resource_group.name, - sandbox_group_name="str", + ai_agents_group_name="str", resource={ "location": "str", "id": "str", @@ -89,11 +89,11 @@ async def test_sandbox_groups_begin_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_sandbox_groups_begin_update(self, resource_group): + async def test_ai_agents_groups_begin_update(self, resource_group): response = await ( - await self.client.sandbox_groups.begin_update( + await self.client.ai_agents_groups.begin_update( resource_group_name=resource_group.name, - sandbox_group_name="str", + ai_agents_group_name="str", properties={ "identity": { "type": "str", @@ -111,11 +111,11 @@ async def test_sandbox_groups_begin_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_sandbox_groups_begin_delete(self, resource_group): + async def test_ai_agents_groups_begin_delete(self, resource_group): response = await ( - await self.client.sandbox_groups.begin_delete( + await self.client.ai_agents_groups.begin_delete( resource_group_name=resource_group.name, - sandbox_group_name="str", + ai_agents_group_name="str", ) ).result() # call '.result()' to poll until service return final result @@ -124,10 +124,10 @@ async def test_sandbox_groups_begin_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_sandbox_groups_connect(self, resource_group): - response = await self.client.sandbox_groups.connect( + async def test_ai_agents_groups_connect(self, resource_group): + response = await self.client.ai_agents_groups.connect( resource_group_name=resource_group.name, - sandbox_group_name="str", + ai_agents_group_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_profile_operations.py b/sdk/containerinstance/azure-mgmt-containerinstance/generated_tests/test_container_instance_management_cg_profile_operations.py index 50e26ad87929..bc559c1c0498 100644 --- 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 @@ -264,6 +264,7 @@ def test_cg_profile_create_or_update(self, resource_group): "readOnly": bool, "storageAccountKey": "str", "storageAccountKeyReference": "str", + "userAssignedIdentityClientId": "str", }, "emptyDir": {}, "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, 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 index a185f9959392..f60bccd8f208 100644 --- 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 @@ -265,6 +265,7 @@ async def test_cg_profile_create_or_update(self, resource_group): "readOnly": bool, "storageAccountKey": "str", "storageAccountKeyReference": "str", + "userAssignedIdentityClientId": "str", }, "emptyDir": {}, "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, 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 f8063f9a4c8a..2f968e124cd2 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 @@ -246,6 +246,7 @@ def test_container_groups_begin_create_or_update(self, resource_group): "readOnly": bool, "storageAccountKey": "str", "storageAccountKeyReference": "str", + "userAssignedIdentityClientId": "str", }, "emptyDir": {}, "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, 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 f9a22113fd65..20d21fd40a4d 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 @@ -258,6 +258,7 @@ async def test_container_groups_begin_create_or_update(self, resource_group): "readOnly": bool, "storageAccountKey": "str", "storageAccountKeyReference": "str", + "userAssignedIdentityClientId": "str", }, "emptyDir": {}, "gitRepo": {"repository": "str", "directory": "str", "revision": "str"}, 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 index c020dece1ca5..94217e2e4b40 100644 --- 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 @@ -67,6 +67,7 @@ def test_ngroups_begin_create_or_update(self, resource_group): "readOnly": bool, "storageAccountKey": "str", "storageAccountKeyReference": "str", + "userAssignedIdentityClientId": "str", }, } ], @@ -158,6 +159,7 @@ def test_ngroups_begin_update(self, resource_group): "readOnly": bool, "storageAccountKey": "str", "storageAccountKeyReference": "str", + "userAssignedIdentityClientId": "str", }, } ], 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 index 53e5b9d9d211..21e3c1459b53 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_management_ngroups_operations_async.py @@ -69,6 +69,7 @@ async def test_ngroups_begin_create_or_update(self, resource_group): "readOnly": bool, "storageAccountKey": "str", "storageAccountKeyReference": "str", + "userAssignedIdentityClientId": "str", }, } ], @@ -165,6 +166,7 @@ async def test_ngroups_begin_update(self, resource_group): "readOnly": bool, "storageAccountKey": "str", "storageAccountKeyReference": "str", + "userAssignedIdentityClientId": "str", }, } ], diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/pyproject.toml b/sdk/containerinstance/azure-mgmt-containerinstance/pyproject.toml index 505a3b67ccb5..13789891ab82 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/pyproject.toml +++ b/sdk/containerinstance/azure-mgmt-containerinstance/pyproject.toml @@ -21,6 +21,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", ] requires-python = ">=3.10" keywords = [ diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/tsp-location.yaml b/sdk/containerinstance/azure-mgmt-containerinstance/tsp-location.yaml index 30782bded4fc..9a2aa2dd5fbd 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: f74fe1506285c80ec95fbd84aa670919d6091aab +commit: 8c66db435b08db558d154f98c998f3d9672dab58 repo: Azure/azure-rest-api-specs additionalDirectories: