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

release resourcemover 2021-01-01 #16823

Merged
merged 1 commit into from
Feb 19, 2021
Merged
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
4 changes: 4 additions & 0 deletions sdk/resourcemover/azure-mgmt-resourcemover/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 1.0.0 (2021-02-19)

* GA release

## 1.0.0b2 (2021-02-03)

**Bugfixes**
Expand Down
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 @@ -47,9 +48,8 @@ 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.api_version = "2021-01-01"
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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.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.0b2"
VERSION = "1.0.0"
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 @@ -44,9 +45,8 @@ 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.api_version = "2021-01-01"
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 All @@ -56,6 +56,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.move_collections = MoveCollectionsOperations(
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