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 track2_azure-mgmt-web] Add Bring your own Backend operations #163

Closed
wants to merge 1 commit into from
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions sdk/appservice/azure-mgmt-web/_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.13.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "cf47fa91b882618a1043e3aeb5803b3a7397cd08",
"commit": "d487b30c5f395e7ead95384d1e4be4dfcc497d61",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/web/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/web/resource-manager/readme.md --multiapi --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/web/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def check_name_availability(
:type name: str
:param type: Resource type used for verification.
:type type: str or ~azure.mgmt.web.v2021_03_01.models.CheckNameResourceTypes
:param is_fqdn: Is fully qualified domain name.
:param is_fqdn: Is fully qualified domain name. Default value is None.
:type is_fqdn: bool
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ResourceNameAvailability, or the result of cls(response)
Expand Down Expand Up @@ -215,9 +215,9 @@ def list_billing_meters(

Description for Gets a list of meters for a given location.

:param billing_location: Azure Location of billable resource.
:param billing_location: Azure Location of billable resource. Default value is None.
:type billing_location: str
:param os_type: App Service OS type meters used for.
:param os_type: App Service OS type meters used for. Default value is None.
:type os_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either BillingMeterCollection or the result of
Expand Down Expand Up @@ -294,16 +294,16 @@ def list_geo_regions(

Description for Get a list of available geographical regions.

:param sku: Name of SKU used to filter the regions.
:param sku: Name of SKU used to filter the regions. Default value is None.
:type sku: str or ~azure.mgmt.web.v2021_03_01.models.SkuName
:param linux_workers_enabled: Specify :code:`<code>true</code>` if you want to filter to only
regions that support Linux workers.
regions that support Linux workers. Default value is None.
:type linux_workers_enabled: bool
:param xenon_workers_enabled: Specify :code:`<code>true</code>` if you want to filter to only
regions that support Xenon workers.
regions that support Xenon workers. Default value is None.
:type xenon_workers_enabled: bool
:param linux_dynamic_workers_enabled: Specify :code:`<code>true</code>` if you want to filter
to only regions that support Linux Consumption Workers.
to only regions that support Linux Consumption Workers. Default value is None.
:type linux_dynamic_workers_enabled: bool
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either GeoRegionCollection or the result of cls(response)
Expand Down Expand Up @@ -519,7 +519,7 @@ def list_source_controls(
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
return mixin_instance.list_source_controls(**kwargs)

def move(
def move( # pylint: disable=inconsistent-return-statements
self,
resource_group_name, # type: str
move_resource_envelope, # type: "_models.CsmMoveResourceEnvelope"
Expand Down Expand Up @@ -746,7 +746,7 @@ def validate_container_settings(
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
return mixin_instance.validate_container_settings(resource_group_name, validate_container_settings_request, **kwargs)

def validate_move(
def validate_move( # pylint: disable=inconsistent-return-statements
self,
resource_group_name, # type: str
move_resource_envelope, # type: "_models.CsmMoveResourceEnvelope"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@

from typing import TYPE_CHECKING

from msrest import Deserializer, Serializer

from azure.mgmt.core import ARMPipelineClient
from azure.profiles import KnownProfiles, ProfileDefinition
from azure.profiles.multiapiclient import MultiApiClientMixin
from msrest import Deserializer, Serializer

from ._configuration import WebSiteManagementClientConfiguration
from ._operations_mixin import WebSiteManagementClientOperationsMixin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def check_name_availability(
:type name: str
:param type: Resource type used for verification.
:type type: str or ~azure.mgmt.web.v2021_03_01.models.CheckNameResourceTypes
:param is_fqdn: Is fully qualified domain name.
:param is_fqdn: Is fully qualified domain name. Default value is None.
:type is_fqdn: bool
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ResourceNameAvailability, or the result of cls(response)
Expand Down Expand Up @@ -206,9 +206,9 @@ def list_billing_meters(

Description for Gets a list of meters for a given location.

:param billing_location: Azure Location of billable resource.
:param billing_location: Azure Location of billable resource. Default value is None.
:type billing_location: str
:param os_type: App Service OS type meters used for.
:param os_type: App Service OS type meters used for. Default value is None.
:type os_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either BillingMeterCollection or the result of
Expand Down Expand Up @@ -284,16 +284,16 @@ def list_geo_regions(

Description for Get a list of available geographical regions.

:param sku: Name of SKU used to filter the regions.
:param sku: Name of SKU used to filter the regions. Default value is None.
:type sku: str or ~azure.mgmt.web.v2021_03_01.models.SkuName
:param linux_workers_enabled: Specify :code:`<code>true</code>` if you want to filter to only
regions that support Linux workers.
regions that support Linux workers. Default value is None.
:type linux_workers_enabled: bool
:param xenon_workers_enabled: Specify :code:`<code>true</code>` if you want to filter to only
regions that support Xenon workers.
regions that support Xenon workers. Default value is None.
:type xenon_workers_enabled: bool
:param linux_dynamic_workers_enabled: Specify :code:`<code>true</code>` if you want to filter
to only regions that support Linux Consumption Workers.
to only regions that support Linux Consumption Workers. Default value is None.
:type linux_dynamic_workers_enabled: bool
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either GeoRegionCollection or the result of cls(response)
Expand Down Expand Up @@ -507,7 +507,7 @@ def list_source_controls(
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
return mixin_instance.list_source_controls(**kwargs)

async def move(
async def move( # pylint: disable=inconsistent-return-statements
self,
resource_group_name: str,
move_resource_envelope: "_models.CsmMoveResourceEnvelope",
Expand Down Expand Up @@ -729,7 +729,7 @@ async def validate_container_settings(
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
return await mixin_instance.validate_container_settings(resource_group_name, validate_container_settings_request, **kwargs)

async def validate_move(
async def validate_move( # pylint: disable=inconsistent-return-statements
self,
resource_group_name: str,
move_resource_envelope: "_models.CsmMoveResourceEnvelope",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@

from typing import Any, Optional, TYPE_CHECKING

from msrest import Deserializer, Serializer

from azure.mgmt.core import AsyncARMPipelineClient
from azure.profiles import KnownProfiles, ProfileDefinition
from azure.profiles.multiapiclient import MultiApiClientMixin
from msrest import Deserializer, Serializer

from ._configuration import WebSiteManagementClientConfiguration
from ._operations_mixin import WebSiteManagementClientOperationsMixin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,20 @@
from azure.core.credentials import TokenCredential


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

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: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
00000000-0000-0000-0000-000000000000).
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2015-04-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(
Expand All @@ -38,14 +42,16 @@ def __init__(
**kwargs: Any
) -> None:
super(WebSiteManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2015-04-01") # type: str

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2015-04-01"
self.api_version = api_version
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-web/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false,
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
},
"global_parameters": {
"sync": {
Expand Down
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 = "6.1.0"
VERSION = "0.42.0"
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 WebSiteManagementClientConfiguration
Expand All @@ -36,8 +37,11 @@ class WebSiteManagementClient:
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
00000000-0000-0000-0000-000000000000).
: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 api_version: Api Version. Default value is "2015-04-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 All @@ -63,7 +67,7 @@ def __init__(

def _send_request(
self,
request, # type: HttpRequest
request: HttpRequest,
**kwargs: Any
) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,20 @@
from azure.core.credentials_async import AsyncTokenCredential


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

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: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
00000000-0000-0000-0000-000000000000).
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2015-04-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(
Expand All @@ -38,14 +42,16 @@ def __init__(
**kwargs: Any
) -> None:
super(WebSiteManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2015-04-01") # type: str

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2015-04-01"
self.api_version = api_version
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-web/{}'.format(VERSION))
self._configure(**kwargs)
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, Awaitable, Optional, TYPE_CHECKING
from typing import Any, Awaitable, TYPE_CHECKING

from msrest import Deserializer, Serializer

from azure.core.rest import AsyncHttpResponse, HttpRequest
from azure.mgmt.core import AsyncARMPipelineClient
from msrest import Deserializer, Serializer

from .. import models
from ._configuration import WebSiteManagementClientConfiguration
Expand All @@ -36,8 +37,11 @@ class WebSiteManagementClient:
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
00000000-0000-0000-0000-000000000000).
: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 api_version: Api Version. Default value is "2015-04-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
Loading