Skip to content

Commit

Permalink
CodeGen from PR 12514 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Adding key vault and DES resource settings. (Azure#12514)
  • Loading branch information
SDKAuto committed Jan 25, 2021
1 parent d6fee00 commit b68aec8
Show file tree
Hide file tree
Showing 21 changed files with 1,794 additions and 647 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
__all__ = ['ResourceMoverServiceAPI']

try:
from ._patch import patch_sdk
from ._patch import patch_sdk # type: ignore
patch_sdk()
except ImportError:
pass
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from ._version import VERSION

Expand Down Expand Up @@ -48,8 +49,7 @@ def __init__(
self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2019-10-01-preview"
self.credential_scopes = ['https://management.azure.com/.default']
self.credential_scopes.extend(kwargs.pop('credential_scopes', []))
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-resourcemover/{}'.format(VERSION))
self._configure(**kwargs)

Expand All @@ -62,6 +62,7 @@ def _configure(
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,37 @@
"client": {
"name": "ResourceMoverServiceAPI",
"filename": "_resource_mover_service_api",
"description": "A first party Azure service orchestrating the move of Azure resources from one Azure region to another or between zones within a region."
"description": "A first party Azure service orchestrating the move of Azure resources from one Azure region to another or between zones within a region.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": true
},
"global_parameters": {
"sync_method": {
"sync": {
"credential": {
"method_signature": "credential, # type: \"TokenCredential\"",
"signature": "credential, # type: \"TokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials.TokenCredential",
"required": true
},
"subscription_id": {
"method_signature": "subscription_id, # type: str",
"signature": "subscription_id, # type: str",
"description": "The Subscription ID.",
"docstring_type": "str",
"required": true
}
},
"async_method": {
"async": {
"credential": {
"method_signature": "credential, # type: \"AsyncTokenCredential\"",
"signature": "credential, # type: \"AsyncTokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
"required": true
},
"subscription_id": {
"method_signature": "subscription_id, # type: str",
"signature": "subscription_id, # type: str",
"description": "The Subscription ID.",
"docstring_type": "str",
"required": true
Expand All @@ -41,7 +46,10 @@
},
"config": {
"credential": true,
"credential_scopes": ["https://management.azure.com/.default"]
"credential_scopes": ["https://management.azure.com/.default"],
"credential_default_policy_type": "BearerTokenCredentialPolicy",
"credential_default_policy_type_has_async_version": true,
"credential_key_header_name": null
},
"operation_groups": {
"move_collections": "MoveCollectionsOperations",
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 = "1.0.1b1"
VERSION = "0.1.0-preview"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._resource_mover_service_api_async import ResourceMoverServiceAPI
from ._resource_mover_service_api import ResourceMoverServiceAPI
__all__ = ['ResourceMoverServiceAPI']
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from .._version import VERSION

Expand Down Expand Up @@ -45,8 +46,7 @@ def __init__(
self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2019-10-01-preview"
self.credential_scopes = ['https://management.azure.com/.default']
self.credential_scopes.extend(kwargs.pop('credential_scopes', []))
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-resourcemover/{}'.format(VERSION))
self._configure(**kwargs)

Expand All @@ -58,6 +58,7 @@ def _configure(
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs)
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential

from ._configuration_async import ResourceMoverServiceAPIConfiguration
from .operations_async import MoveCollectionsOperations
from .operations_async import MoveResourcesOperations
from .operations_async import UnresolvedDependenciesOperations
from .operations_async import OperationsDiscoveryOperations
from ._configuration import ResourceMoverServiceAPIConfiguration
from .operations import MoveCollectionsOperations
from .operations import MoveResourcesOperations
from .operations import UnresolvedDependenciesOperations
from .operations import OperationsDiscoveryOperations
from .. import models


class ResourceMoverServiceAPI(object):
"""A first party Azure service orchestrating the move of Azure resources from one Azure region to another or between zones within a region.
:ivar move_collections: MoveCollectionsOperations operations
:vartype move_collections: resource_mover_service_api.aio.operations_async.MoveCollectionsOperations
:vartype move_collections: resource_mover_service_api.aio.operations.MoveCollectionsOperations
:ivar move_resources: MoveResourcesOperations operations
:vartype move_resources: resource_mover_service_api.aio.operations_async.MoveResourcesOperations
:vartype move_resources: resource_mover_service_api.aio.operations.MoveResourcesOperations
:ivar unresolved_dependencies: UnresolvedDependenciesOperations operations
:vartype unresolved_dependencies: resource_mover_service_api.aio.operations_async.UnresolvedDependenciesOperations
:vartype unresolved_dependencies: resource_mover_service_api.aio.operations.UnresolvedDependenciesOperations
:ivar operations_discovery: OperationsDiscoveryOperations operations
:vartype operations_discovery: resource_mover_service_api.aio.operations_async.OperationsDiscoveryOperations
:vartype operations_discovery: resource_mover_service_api.aio.operations.OperationsDiscoveryOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The Subscription ID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._move_collections_operations_async import MoveCollectionsOperations
from ._move_resources_operations_async import MoveResourcesOperations
from ._unresolved_dependencies_operations_async import UnresolvedDependenciesOperations
from ._operations_discovery_operations_async import OperationsDiscoveryOperations
from ._move_collections_operations import MoveCollectionsOperations
from ._move_resources_operations import MoveResourcesOperations
from ._unresolved_dependencies_operations import UnresolvedDependenciesOperations
from ._operations_discovery_operations import OperationsDiscoveryOperations

__all__ = [
'MoveCollectionsOperations',
Expand Down
Loading

0 comments on commit b68aec8

Please sign in to comment.