Skip to content

Commit

Permalink
CodeGen from PR 19258 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Add readme.cli.md for DnsResolver (Azure#19258)
  • Loading branch information
SDKAuto committed Jun 7, 2022
1 parent b0890cb commit 1df713c
Show file tree
Hide file tree
Showing 19 changed files with 1,487 additions and 1,090 deletions.
6 changes: 3 additions & 3 deletions sdk/dnsresolver/azure-mgmt-dnsresolver/_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": "78f1d9d2be5ae24a9bebb5a62158f04d9cb7f69f",
"commit": "7eff9fe33b6f31e92e2d7eebf8f53faf68ee7363",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/dnsresolver/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/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/dnsresolver/resource-manager/readme.md --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/dnsresolver/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from azure.core.credentials import TokenCredential


class DnsResolverManagementClientConfiguration(Configuration):
class DnsResolverManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
"""Configuration for DnsResolverManagementClient.
Note that all parameters used to create this instance are saved as instance
Expand All @@ -29,6 +29,9 @@ class DnsResolverManagementClientConfiguration(Configuration):
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2020-04-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(
Expand All @@ -38,14 +41,16 @@ def __init__(
**kwargs: Any
) -> None:
super(DnsResolverManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2020-04-01-preview") # 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 = "2020-04-01-preview"
self.api_version = api_version
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-dnsresolver/{}'.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, 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 DnsResolverManagementClientConfiguration
Expand All @@ -25,27 +26,27 @@ class DnsResolverManagementClient:
"""The DNS Resolver Management Client.
:ivar dns_resolvers: DnsResolversOperations operations
:vartype dns_resolvers: dns_resolver_management_client.operations.DnsResolversOperations
:vartype dns_resolvers: azure.mgmt.dnsresolver.operations.DnsResolversOperations
:ivar inbound_endpoints: InboundEndpointsOperations operations
:vartype inbound_endpoints:
dns_resolver_management_client.operations.InboundEndpointsOperations
:vartype inbound_endpoints: azure.mgmt.dnsresolver.operations.InboundEndpointsOperations
:ivar outbound_endpoints: OutboundEndpointsOperations operations
:vartype outbound_endpoints:
dns_resolver_management_client.operations.OutboundEndpointsOperations
:vartype outbound_endpoints: azure.mgmt.dnsresolver.operations.OutboundEndpointsOperations
:ivar dns_forwarding_rulesets: DnsForwardingRulesetsOperations operations
:vartype dns_forwarding_rulesets:
dns_resolver_management_client.operations.DnsForwardingRulesetsOperations
azure.mgmt.dnsresolver.operations.DnsForwardingRulesetsOperations
:ivar forwarding_rules: ForwardingRulesOperations operations
:vartype forwarding_rules: dns_resolver_management_client.operations.ForwardingRulesOperations
:vartype forwarding_rules: azure.mgmt.dnsresolver.operations.ForwardingRulesOperations
:ivar virtual_network_links: VirtualNetworkLinksOperations operations
:vartype virtual_network_links:
dns_resolver_management_client.operations.VirtualNetworkLinksOperations
:vartype virtual_network_links: azure.mgmt.dnsresolver.operations.VirtualNetworkLinksOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
: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 "2020-04-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
Retry-After header is present.
"""
Expand Down Expand Up @@ -74,7 +75,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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from azure.core.credentials_async import AsyncTokenCredential


class DnsResolverManagementClientConfiguration(Configuration):
class DnsResolverManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
"""Configuration for DnsResolverManagementClient.
Note that all parameters used to create this instance are saved as instance
Expand All @@ -29,6 +29,9 @@ class DnsResolverManagementClientConfiguration(Configuration):
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2020-04-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(
Expand All @@ -38,14 +41,16 @@ def __init__(
**kwargs: Any
) -> None:
super(DnsResolverManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2020-04-01-preview") # 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 = "2020-04-01-preview"
self.api_version = api_version
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-dnsresolver/{}'.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 DnsResolverManagementClientConfiguration
Expand All @@ -25,28 +26,28 @@ class DnsResolverManagementClient:
"""The DNS Resolver Management Client.
:ivar dns_resolvers: DnsResolversOperations operations
:vartype dns_resolvers: dns_resolver_management_client.aio.operations.DnsResolversOperations
:vartype dns_resolvers: azure.mgmt.dnsresolver.aio.operations.DnsResolversOperations
:ivar inbound_endpoints: InboundEndpointsOperations operations
:vartype inbound_endpoints:
dns_resolver_management_client.aio.operations.InboundEndpointsOperations
:vartype inbound_endpoints: azure.mgmt.dnsresolver.aio.operations.InboundEndpointsOperations
:ivar outbound_endpoints: OutboundEndpointsOperations operations
:vartype outbound_endpoints:
dns_resolver_management_client.aio.operations.OutboundEndpointsOperations
:vartype outbound_endpoints: azure.mgmt.dnsresolver.aio.operations.OutboundEndpointsOperations
:ivar dns_forwarding_rulesets: DnsForwardingRulesetsOperations operations
:vartype dns_forwarding_rulesets:
dns_resolver_management_client.aio.operations.DnsForwardingRulesetsOperations
azure.mgmt.dnsresolver.aio.operations.DnsForwardingRulesetsOperations
:ivar forwarding_rules: ForwardingRulesOperations operations
:vartype forwarding_rules:
dns_resolver_management_client.aio.operations.ForwardingRulesOperations
:vartype forwarding_rules: azure.mgmt.dnsresolver.aio.operations.ForwardingRulesOperations
:ivar virtual_network_links: VirtualNetworkLinksOperations operations
:vartype virtual_network_links:
dns_resolver_management_client.aio.operations.VirtualNetworkLinksOperations
azure.mgmt.dnsresolver.aio.operations.VirtualNetworkLinksOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
: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 "2020-04-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
Retry-After header is present.
"""
Expand Down
Loading

0 comments on commit 1df713c

Please sign in to comment.