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 azure-mgmt-cosmosdb] Adds 'Offline' state to provisioning states. #484

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 @@ -23,16 +23,20 @@ class CosmosDBManagementClientConfiguration(AzureConfiguration):
object<msrestazure.azure_active_directory>`
:param subscription_id: Azure subscription ID.
:type subscription_id: str
:param subscription_id1: The ID of the target subscription.
:type subscription_id1: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):
self, credentials, subscription_id, subscription_id1, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if subscription_id1 is None:
raise ValueError("Parameter 'subscription_id1' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

Expand All @@ -46,3 +50,4 @@ def __init__(

self.credentials = credentials
self.subscription_id = subscription_id
self.subscription_id1 = subscription_id1
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,15 @@ class CosmosDBManagementClient(SDKClient):
object<msrestazure.azure_active_directory>`
:param subscription_id: Azure subscription ID.
:type subscription_id: str
:param subscription_id1: The ID of the target subscription.
:type subscription_id1: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):
self, credentials, subscription_id, subscription_id1, base_url=None):

self.config = CosmosDBManagementClientConfiguration(credentials, subscription_id, base_url)
self.config = CosmosDBManagementClientConfiguration(credentials, subscription_id, subscription_id1, base_url)
super(CosmosDBManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
try:
from ._models_py3 import ARMProxyResource
from ._models_py3 import ARMResourceProperties
from ._models_py3 import AutopilotSettingsResource
from ._models_py3 import AutoUpgradePolicyResource
from ._models_py3 import AzureEntityResource
from ._models_py3 import Capability
from ._models_py3 import CassandraKeyspaceCreateUpdateParameters
Expand All @@ -30,6 +32,7 @@
from ._models_py3 import ConflictResolutionPolicy
from ._models_py3 import ConsistencyPolicy
from ._models_py3 import ContainerPartitionKey
from ._models_py3 import CreateUpdateOptions
from ._models_py3 import DatabaseAccountConnectionString
from ._models_py3 import DatabaseAccountCreateUpdateParameters
from ._models_py3 import DatabaseAccountGetResults
Expand Down Expand Up @@ -109,6 +112,7 @@
from ._models_py3 import TableGetPropertiesResource
from ._models_py3 import TableGetResults
from ._models_py3 import TableResource
from ._models_py3 import ThroughputPolicyResource
from ._models_py3 import ThroughputSettingsGetPropertiesResource
from ._models_py3 import ThroughputSettingsGetResults
from ._models_py3 import ThroughputSettingsResource
Expand All @@ -121,6 +125,8 @@
except (SyntaxError, ImportError):
from ._models import ARMProxyResource
from ._models import ARMResourceProperties
from ._models import AutopilotSettingsResource
from ._models import AutoUpgradePolicyResource
from ._models import AzureEntityResource
from ._models import Capability
from ._models import CassandraKeyspaceCreateUpdateParameters
Expand All @@ -139,6 +145,7 @@
from ._models import ConflictResolutionPolicy
from ._models import ConsistencyPolicy
from ._models import ContainerPartitionKey
from ._models import CreateUpdateOptions
from ._models import DatabaseAccountConnectionString
from ._models import DatabaseAccountCreateUpdateParameters
from ._models import DatabaseAccountGetResults
Expand Down Expand Up @@ -218,6 +225,7 @@
from ._models import TableGetPropertiesResource
from ._models import TableGetResults
from ._models import TableResource
from ._models import ThroughputPolicyResource
from ._models import ThroughputSettingsGetPropertiesResource
from ._models import ThroughputSettingsGetResults
from ._models import ThroughputSettingsResource
Expand Down Expand Up @@ -271,6 +279,8 @@
__all__ = [
'ARMProxyResource',
'ARMResourceProperties',
'AutopilotSettingsResource',
'AutoUpgradePolicyResource',
'AzureEntityResource',
'Capability',
'CassandraKeyspaceCreateUpdateParameters',
Expand All @@ -289,6 +299,7 @@
'ConflictResolutionPolicy',
'ConsistencyPolicy',
'ContainerPartitionKey',
'CreateUpdateOptions',
'DatabaseAccountConnectionString',
'DatabaseAccountCreateUpdateParameters',
'DatabaseAccountGetResults',
Expand Down Expand Up @@ -368,6 +379,7 @@
'TableGetPropertiesResource',
'TableGetResults',
'TableResource',
'ThroughputPolicyResource',
'ThroughputSettingsGetPropertiesResource',
'ThroughputSettingsGetResults',
'ThroughputSettingsResource',
Expand Down
Loading