Skip to content
Closed
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/network/azure-mgmt-frontdoor/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.7.2",
"use": [
"@autorest/python@5.12.0",
"@autorest/python@5.16.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "49312ea7188eb199e29f91a80bd65b35033945c5",
"commit": "b22070ca6278dfd93f6006b4762c8ac9a12ccc00",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/frontdoor/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/frontdoor/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/frontdoor/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['FrontDoorManagementClient']
__all__.extend([p for p in _patch_all if p not in __all__])

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
from ._patch import patch_sdk
patch_sdk()
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@
from azure.core.credentials import TokenCredential


class FrontDoorManagementClientConfiguration(Configuration):
class FrontDoorManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
"""Configuration for FrontDoorManagementClient.

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.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
:param subscription_id: The subscription credentials which uniquely identify the Microsoft
Azure subscription. The subscription ID forms part of the URI for every service call.
:type subscription_id: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
# --------------------------------------------------------------------------

from copy import deepcopy
from typing import Any, Optional, TYPE_CHECKING
from typing import Any, TYPE_CHECKING

from msrest import Deserializer, Serializer

from azure.core.rest import HttpRequest, HttpResponse
from azure.mgmt.core import ARMPipelineClient
from msrest import Deserializer, Serializer

from . import models
from ._configuration import FrontDoorManagementClientConfiguration
Expand All @@ -21,19 +22,13 @@
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential

class FrontDoorManagementClient:
class FrontDoorManagementClient: # pylint: disable=too-many-instance-attributes
"""FrontDoor Client.

:ivar network_experiment_profiles: NetworkExperimentProfilesOperations operations
:vartype network_experiment_profiles:
azure.mgmt.frontdoor.operations.NetworkExperimentProfilesOperations
:ivar preconfigured_endpoints: PreconfiguredEndpointsOperations operations
:vartype preconfigured_endpoints:
azure.mgmt.frontdoor.operations.PreconfiguredEndpointsOperations
:ivar experiments: ExperimentsOperations operations
:vartype experiments: azure.mgmt.frontdoor.operations.ExperimentsOperations
:ivar reports: ReportsOperations operations
:vartype reports: azure.mgmt.frontdoor.operations.ReportsOperations
:ivar policies: PoliciesOperations operations
:vartype policies: azure.mgmt.frontdoor.operations.PoliciesOperations
:ivar managed_rule_sets: ManagedRuleSetsOperations operations
:vartype managed_rule_sets: azure.mgmt.frontdoor.operations.ManagedRuleSetsOperations
:ivar front_door_name_availability: FrontDoorNameAvailabilityOperations operations
:vartype front_door_name_availability:
azure.mgmt.frontdoor.operations.FrontDoorNameAvailabilityOperations
Expand All @@ -49,16 +44,22 @@ class FrontDoorManagementClient:
:vartype endpoints: azure.mgmt.frontdoor.operations.EndpointsOperations
:ivar rules_engines: RulesEnginesOperations operations
:vartype rules_engines: azure.mgmt.frontdoor.operations.RulesEnginesOperations
:ivar policies: PoliciesOperations operations
:vartype policies: azure.mgmt.frontdoor.operations.PoliciesOperations
:ivar managed_rule_sets: ManagedRuleSetsOperations operations
:vartype managed_rule_sets: azure.mgmt.frontdoor.operations.ManagedRuleSetsOperations
:ivar network_experiment_profiles: NetworkExperimentProfilesOperations operations
:vartype network_experiment_profiles:
azure.mgmt.frontdoor.operations.NetworkExperimentProfilesOperations
:ivar preconfigured_endpoints: PreconfiguredEndpointsOperations operations
:vartype preconfigured_endpoints:
azure.mgmt.frontdoor.operations.PreconfiguredEndpointsOperations
:ivar experiments: ExperimentsOperations operations
:vartype experiments: azure.mgmt.frontdoor.operations.ExperimentsOperations
:ivar reports: ReportsOperations operations
:vartype reports: azure.mgmt.frontdoor.operations.ReportsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription credentials which uniquely identify the Microsoft
Azure subscription. The subscription ID forms part of the URI for every service call.
:type subscription_id: str
:param base_url: Service URL. Default value is 'https://management.azure.com'.
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand All @@ -78,23 +79,47 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.network_experiment_profiles = NetworkExperimentProfilesOperations(self._client, self._config, self._serialize, self._deserialize)
self.preconfigured_endpoints = PreconfiguredEndpointsOperations(self._client, self._config, self._serialize, self._deserialize)
self.experiments = ExperimentsOperations(self._client, self._config, self._serialize, self._deserialize)
self.reports = ReportsOperations(self._client, self._config, self._serialize, self._deserialize)
self.front_door_name_availability = FrontDoorNameAvailabilityOperations(self._client, self._config, self._serialize, self._deserialize)
self.front_door_name_availability_with_subscription = FrontDoorNameAvailabilityWithSubscriptionOperations(self._client, self._config, self._serialize, self._deserialize)
self.front_doors = FrontDoorsOperations(self._client, self._config, self._serialize, self._deserialize)
self.frontend_endpoints = FrontendEndpointsOperations(self._client, self._config, self._serialize, self._deserialize)
self.endpoints = EndpointsOperations(self._client, self._config, self._serialize, self._deserialize)
self.rules_engines = RulesEnginesOperations(self._client, self._config, self._serialize, self._deserialize)
self.policies = PoliciesOperations(self._client, self._config, self._serialize, self._deserialize)
self.managed_rule_sets = ManagedRuleSetsOperations(self._client, self._config, self._serialize, self._deserialize)
self.policies = PoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.managed_rule_sets = ManagedRuleSetsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.front_door_name_availability = FrontDoorNameAvailabilityOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.front_door_name_availability_with_subscription = FrontDoorNameAvailabilityWithSubscriptionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.front_doors = FrontDoorsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.frontend_endpoints = FrontendEndpointsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.endpoints = EndpointsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.rules_engines = RulesEnginesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.network_experiment_profiles = NetworkExperimentProfilesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.preconfigured_endpoints = PreconfiguredEndpointsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.experiments = ExperimentsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.reports = ReportsOperations(
self._client, self._config, self._serialize, self._deserialize
)


def _send_request(
self,
request, # type: HttpRequest
request: HttpRequest,
**kwargs: Any
) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
113 changes: 0 additions & 113 deletions sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_metadata.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.1"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
# --------------------------------------------------------------------------

from ._front_door_management_client import FrontDoorManagementClient

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['FrontDoorManagementClient']
__all__.extend([p for p in _patch_all if p not in __all__])

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
from ._patch import patch_sdk
patch_sdk()
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@
from azure.core.credentials_async import AsyncTokenCredential


class FrontDoorManagementClientConfiguration(Configuration):
class FrontDoorManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
"""Configuration for FrontDoorManagementClient.

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.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
:param subscription_id: The subscription credentials which uniquely identify the Microsoft
Azure subscription. The subscription ID forms part of the URI for every service call.
:type subscription_id: str
"""

Expand Down
Loading