Skip to content

Commit

Permalink
CodeGen from PR 31850 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 4e332b15e3da815635c2c348797388d93eaa6801 into 6e7af6c78f20307bc9f2127fbdbfe7c8aebcbd4b
  • Loading branch information
SDKAuto committed Dec 19, 2024
1 parent fb792e8 commit a994fab
Show file tree
Hide file tree
Showing 344 changed files with 2,680 additions and 31,505 deletions.
6 changes: 3 additions & 3 deletions sdk/appcontainers/azure-mgmt-appcontainers/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "c3f246bece34c122def67e59945e634490f205fe",
"commit": "a56c88a9b1bdc6cc820c17a3ba48444ea2726340",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/python@6.27.2",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/app/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/app/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.2 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/app/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_apps_api_client import ContainerAppsAPIClient
from typing import TYPE_CHECKING

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

from ._container_apps_api_client import ContainerAppsAPIClient # 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__ = [
"ContainerAppsAPIClient",
]
__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,27 +14,26 @@
from ._version import VERSION

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


class ContainerAppsAPIClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class ContainerAppsAPIClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for ContainerAppsAPIClient.
Note that all parameters used to create this instance are saved as instance
attributes.
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-08-02-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2025-01-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

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

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,42 +19,25 @@
from ._configuration import ContainerAppsAPIClientConfiguration
from ._serialization import Deserializer, Serializer
from .operations import (
AppResiliencyOperations,
AvailableWorkloadProfilesOperations,
BillingMetersOperations,
BuildAuthTokenOperations,
BuildersOperations,
BuildsByBuilderResourceOperations,
BuildsOperations,
CertificatesOperations,
ConnectedEnvironmentsCertificatesOperations,
ConnectedEnvironmentsDaprComponentsOperations,
ConnectedEnvironmentsOperations,
ConnectedEnvironmentsStoragesOperations,
ContainerAppsAPIClientOperationsMixin,
ContainerAppsAuthConfigsOperations,
ContainerAppsBuildsByContainerAppOperations,
ContainerAppsBuildsOperations,
ContainerAppsDiagnosticsOperations,
ContainerAppsOperations,
ContainerAppsPatchesOperations,
ContainerAppsRevisionReplicasOperations,
ContainerAppsRevisionsOperations,
ContainerAppsSessionPoolsOperations,
ContainerAppsSourceControlsOperations,
DaprComponentResiliencyPoliciesOperations,
DaprComponentsOperations,
DaprSubscriptionsOperations,
DotNetComponentsOperations,
FunctionsExtensionOperations,
JavaComponentsOperations,
JobsExecutionsOperations,
JobsOperations,
LogicAppsOperations,
ManagedCertificatesOperations,
ManagedEnvironmentDiagnosticsOperations,
ManagedEnvironmentPrivateEndpointConnectionsOperations,
ManagedEnvironmentPrivateLinkResourcesOperations,
ManagedEnvironmentUsagesOperations,
ManagedEnvironmentsDiagnosticsOperations,
ManagedEnvironmentsOperations,
Expand All @@ -65,19 +48,12 @@
)

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


class ContainerAppsAPIClient(
ContainerAppsAPIClientOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
"""Functions is an extension resource to revisions and the api listed is used to proxy the call
from Web RP to the function app's host process, this api is not exposed to users and only Web
RP is allowed to invoke functions extension resource.
class ContainerAppsAPIClient(ContainerAppsAPIClientOperationsMixin): # pylint: disable=too-many-instance-attributes
"""ContainerAppsAPIClient.
:ivar app_resiliency: AppResiliencyOperations operations
:vartype app_resiliency: azure.mgmt.appcontainers.operations.AppResiliencyOperations
:ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
:vartype container_apps_auth_configs:
azure.mgmt.appcontainers.operations.ContainerAppsAuthConfigsOperations
Expand All @@ -86,15 +62,6 @@ class ContainerAppsAPIClient(
azure.mgmt.appcontainers.operations.AvailableWorkloadProfilesOperations
:ivar billing_meters: BillingMetersOperations operations
:vartype billing_meters: azure.mgmt.appcontainers.operations.BillingMetersOperations
:ivar builders: BuildersOperations operations
:vartype builders: azure.mgmt.appcontainers.operations.BuildersOperations
:ivar builds_by_builder_resource: BuildsByBuilderResourceOperations operations
:vartype builds_by_builder_resource:
azure.mgmt.appcontainers.operations.BuildsByBuilderResourceOperations
:ivar builds: BuildsOperations operations
:vartype builds: azure.mgmt.appcontainers.operations.BuildsOperations
:ivar build_auth_token: BuildAuthTokenOperations operations
:vartype build_auth_token: azure.mgmt.appcontainers.operations.BuildAuthTokenOperations
:ivar connected_environments: ConnectedEnvironmentsOperations operations
:vartype connected_environments:
azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations
Expand All @@ -111,16 +78,6 @@ class ContainerAppsAPIClient(
azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations
:ivar container_apps: ContainerAppsOperations operations
:vartype container_apps: azure.mgmt.appcontainers.operations.ContainerAppsOperations
:ivar container_apps_builds_by_container_app: ContainerAppsBuildsByContainerAppOperations
operations
:vartype container_apps_builds_by_container_app:
azure.mgmt.appcontainers.operations.ContainerAppsBuildsByContainerAppOperations
:ivar container_apps_builds: ContainerAppsBuildsOperations operations
:vartype container_apps_builds:
azure.mgmt.appcontainers.operations.ContainerAppsBuildsOperations
:ivar container_apps_patches: ContainerAppsPatchesOperations operations
:vartype container_apps_patches:
azure.mgmt.appcontainers.operations.ContainerAppsPatchesOperations
:ivar container_apps_revisions: ContainerAppsRevisionsOperations operations
:vartype container_apps_revisions:
azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations
Expand All @@ -138,18 +95,10 @@ class ContainerAppsAPIClient(
azure.mgmt.appcontainers.operations.ManagedEnvironmentsDiagnosticsOperations
:ivar jobs: JobsOperations operations
:vartype jobs: azure.mgmt.appcontainers.operations.JobsOperations
:ivar dot_net_components: DotNetComponentsOperations operations
:vartype dot_net_components: azure.mgmt.appcontainers.operations.DotNetComponentsOperations
:ivar functions_extension: FunctionsExtensionOperations operations
:vartype functions_extension: azure.mgmt.appcontainers.operations.FunctionsExtensionOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.appcontainers.operations.Operations
:ivar java_components: JavaComponentsOperations operations
:vartype java_components: azure.mgmt.appcontainers.operations.JavaComponentsOperations
:ivar jobs_executions: JobsExecutionsOperations operations
:vartype jobs_executions: azure.mgmt.appcontainers.operations.JobsExecutionsOperations
:ivar logic_apps: LogicAppsOperations operations
:vartype logic_apps: azure.mgmt.appcontainers.operations.LogicAppsOperations
:ivar managed_environments: ManagedEnvironmentsOperations operations
:vartype managed_environments:
azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations
Expand All @@ -160,27 +109,11 @@ class ContainerAppsAPIClient(
azure.mgmt.appcontainers.operations.ManagedCertificatesOperations
:ivar namespaces: NamespacesOperations operations
:vartype namespaces: azure.mgmt.appcontainers.operations.NamespacesOperations
:ivar managed_environment_private_endpoint_connections:
ManagedEnvironmentPrivateEndpointConnectionsOperations operations
:vartype managed_environment_private_endpoint_connections:
azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations
:ivar managed_environment_private_link_resources:
ManagedEnvironmentPrivateLinkResourcesOperations operations
:vartype managed_environment_private_link_resources:
azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateLinkResourcesOperations
:ivar dapr_component_resiliency_policies: DaprComponentResiliencyPoliciesOperations operations
:vartype dapr_component_resiliency_policies:
azure.mgmt.appcontainers.operations.DaprComponentResiliencyPoliciesOperations
:ivar dapr_components: DaprComponentsOperations operations
:vartype dapr_components: azure.mgmt.appcontainers.operations.DaprComponentsOperations
:ivar dapr_subscriptions: DaprSubscriptionsOperations operations
:vartype dapr_subscriptions: azure.mgmt.appcontainers.operations.DaprSubscriptionsOperations
:ivar managed_environments_storages: ManagedEnvironmentsStoragesOperations operations
:vartype managed_environments_storages:
azure.mgmt.appcontainers.operations.ManagedEnvironmentsStoragesOperations
:ivar container_apps_session_pools: ContainerAppsSessionPoolsOperations operations
:vartype container_apps_session_pools:
azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations
:ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations
:vartype container_apps_source_controls:
azure.mgmt.appcontainers.operations.ContainerAppsSourceControlsOperations
Expand All @@ -191,12 +124,12 @@ class ContainerAppsAPIClient(
azure.mgmt.appcontainers.operations.ManagedEnvironmentUsagesOperations
: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.
:param subscription_id: The ID of the target subscription. 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-08-02-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2025-01-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -236,20 +169,13 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.app_resiliency = AppResiliencyOperations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps_auth_configs = ContainerAppsAuthConfigsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.available_workload_profiles = AvailableWorkloadProfilesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.billing_meters = BillingMetersOperations(self._client, self._config, self._serialize, self._deserialize)
self.builders = BuildersOperations(self._client, self._config, self._serialize, self._deserialize)
self.builds_by_builder_resource = BuildsByBuilderResourceOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.builds = BuildsOperations(self._client, self._config, self._serialize, self._deserialize)
self.build_auth_token = BuildAuthTokenOperations(self._client, self._config, self._serialize, self._deserialize)
self.connected_environments = ConnectedEnvironmentsOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand All @@ -263,15 +189,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.container_apps = ContainerAppsOperations(self._client, self._config, self._serialize, self._deserialize)
self.container_apps_builds_by_container_app = ContainerAppsBuildsByContainerAppOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.container_apps_builds = ContainerAppsBuildsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.container_apps_patches = ContainerAppsPatchesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.container_apps_revisions = ContainerAppsRevisionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand All @@ -288,16 +205,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.dot_net_components = DotNetComponentsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.functions_extension = FunctionsExtensionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.java_components = JavaComponentsOperations(self._client, self._config, self._serialize, self._deserialize)
self.jobs_executions = JobsExecutionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.logic_apps = LogicAppsOperations(self._client, self._config, self._serialize, self._deserialize)
self.managed_environments = ManagedEnvironmentsOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand All @@ -306,25 +215,10 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.namespaces = NamespacesOperations(self._client, self._config, self._serialize, self._deserialize)
self.managed_environment_private_endpoint_connections = ManagedEnvironmentPrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.managed_environment_private_link_resources = ManagedEnvironmentPrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.dapr_component_resiliency_policies = DaprComponentResiliencyPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.dapr_components = DaprComponentsOperations(self._client, self._config, self._serialize, self._deserialize)
self.dapr_subscriptions = DaprSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.managed_environments_storages = ManagedEnvironmentsStoragesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.container_apps_session_pools = ContainerAppsSessionPoolsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.container_apps_source_controls = ContainerAppsSourceControlsOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down
Loading

0 comments on commit a994fab

Please sign in to comment.