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

[ReleasePR track2_azure-mgmt-resourcemover] Changed the Region Move specification to official name of the service… #14631

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
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,7 +4,11 @@
"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
},
"global_parameters": {
"sync_method": {
Expand Down Expand Up @@ -41,7 +45,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