Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-containerinstance] Removed InstanceView property for ContainerGroupList example #10034

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sdk/containerinstance/azure-mgmt-containerinstance/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "cfe318beba82c1e5bda6a600f91de32cba814364",
"commit": "e8c356e35fd0cdf30f97962f835b07f1f48aa5e7",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/python@6.27.4",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/containerinstance/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"autorest_command": "autorest specification/containerinstance/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/containerinstance/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._container_instance_management_client import ContainerInstanceManagementClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._container_instance_management_client import ContainerInstanceManagementClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"ContainerInstanceManagementClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential


Expand All @@ -28,13 +27,13 @@ class ContainerInstanceManagementClientConfiguration: # pylint: disable=too-man
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2024-11-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-05-01-preview")
api_version: str = kwargs.pop("api_version", "2024-11-01-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@
from ._configuration import ContainerInstanceManagementClientConfiguration
from ._serialization import Deserializer, Serializer
from .operations import (
ContainerGroupProfileOperations,
ContainerGroupProfilesOperations,
CGProfileOperations,
CGProfilesOperations,
ContainerGroupsOperations,
ContainersOperations,
LocationOperations,
NGroupsOperations,
Operations,
SubnetServiceAssociationLinkOperations,
)

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential


class ContainerInstanceManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class ContainerInstanceManagementClient: # pylint: disable=too-many-instance-attributes
"""ContainerInstanceManagementClient.

:ivar container_groups: ContainerGroupsOperations operations
Expand All @@ -47,19 +47,19 @@ class ContainerInstanceManagementClient: # pylint: disable=client-accepts-api-v
:ivar subnet_service_association_link: SubnetServiceAssociationLinkOperations operations
:vartype subnet_service_association_link:
azure.mgmt.containerinstance.operations.SubnetServiceAssociationLinkOperations
:ivar container_group_profiles: ContainerGroupProfilesOperations operations
:vartype container_group_profiles:
azure.mgmt.containerinstance.operations.ContainerGroupProfilesOperations
:ivar container_group_profile: ContainerGroupProfileOperations operations
:vartype container_group_profile:
azure.mgmt.containerinstance.operations.ContainerGroupProfileOperations
:ivar ngroups: NGroupsOperations operations
:vartype ngroups: azure.mgmt.containerinstance.operations.NGroupsOperations
:ivar cg_profiles: CGProfilesOperations operations
:vartype cg_profiles: azure.mgmt.containerinstance.operations.CGProfilesOperations
:ivar cg_profile: CGProfileOperations operations
:vartype cg_profile: azure.mgmt.containerinstance.operations.CGProfileOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2024-11-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down Expand Up @@ -109,12 +109,9 @@ def __init__(
self.subnet_service_association_link = SubnetServiceAssociationLinkOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.container_group_profiles = ContainerGroupProfilesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.container_group_profile = ContainerGroupProfileOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.ngroups = NGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
self.cg_profiles = CGProfilesOperations(self._client, self._config, self._serialize, self._deserialize)
self.cg_profile = CGProfileOperations(self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Loading