Skip to content

Commit

Permalink
Generated from 497f37d011e45d90e7a5f190b1326ec89e2719c8
Browse files Browse the repository at this point in the history
Merge pull request #6 from Khushboo-Baheti/master

merge
  • Loading branch information
SDK Automation committed Feb 24, 2020
1 parent a25a803 commit 6bcbea0
Show file tree
Hide file tree
Showing 415 changed files with 18,606 additions and 20,986 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .api_management_client import ApiManagementClient
from .version import VERSION
from ._configuration import ApiManagementClientConfiguration
from ._api_management_client import ApiManagementClient
__all__ = ['ApiManagementClient', 'ApiManagementClientConfiguration']

__all__ = ['ApiManagementClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -11,104 +11,70 @@

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.api_operations import ApiOperations
from .operations.api_revision_operations import ApiRevisionOperations
from .operations.api_release_operations import ApiReleaseOperations
from .operations.api_operation_operations import ApiOperationOperations
from .operations.api_operation_policy_operations import ApiOperationPolicyOperations
from .operations.tag_operations import TagOperations
from .operations.api_product_operations import ApiProductOperations
from .operations.api_policy_operations import ApiPolicyOperations
from .operations.api_schema_operations import ApiSchemaOperations
from .operations.api_diagnostic_operations import ApiDiagnosticOperations
from .operations.api_issue_operations import ApiIssueOperations
from .operations.api_issue_comment_operations import ApiIssueCommentOperations
from .operations.api_issue_attachment_operations import ApiIssueAttachmentOperations
from .operations.api_tag_description_operations import ApiTagDescriptionOperations
from .operations.operation_operations import OperationOperations
from .operations.api_version_set_operations import ApiVersionSetOperations
from .operations.authorization_server_operations import AuthorizationServerOperations
from .operations.backend_operations import BackendOperations
from .operations.cache_operations import CacheOperations
from .operations.certificate_operations import CertificateOperations
from .operations.api_management_operations import ApiManagementOperations
from .operations.api_management_service_skus_operations import ApiManagementServiceSkusOperations
from .operations.api_management_service_operations import ApiManagementServiceOperations
from .operations.diagnostic_operations import DiagnosticOperations
from .operations.email_template_operations import EmailTemplateOperations
from .operations.group_operations import GroupOperations
from .operations.group_user_operations import GroupUserOperations
from .operations.identity_provider_operations import IdentityProviderOperations
from .operations.issue_operations import IssueOperations
from .operations.logger_operations import LoggerOperations
from .operations.network_status_operations import NetworkStatusOperations
from .operations.notification_operations import NotificationOperations
from .operations.notification_recipient_user_operations import NotificationRecipientUserOperations
from .operations.notification_recipient_email_operations import NotificationRecipientEmailOperations
from .operations.open_id_connect_provider_operations import OpenIdConnectProviderOperations
from .operations.policy_operations import PolicyOperations
from .operations.policy_snippet_operations import PolicySnippetOperations
from .operations.sign_in_settings_operations import SignInSettingsOperations
from .operations.sign_up_settings_operations import SignUpSettingsOperations
from .operations.delegation_settings_operations import DelegationSettingsOperations
from .operations.product_operations import ProductOperations
from .operations.product_api_operations import ProductApiOperations
from .operations.product_group_operations import ProductGroupOperations
from .operations.product_subscriptions_operations import ProductSubscriptionsOperations
from .operations.product_policy_operations import ProductPolicyOperations
from .operations.property_operations import PropertyOperations
from .operations.quota_by_counter_keys_operations import QuotaByCounterKeysOperations
from .operations.quota_by_period_keys_operations import QuotaByPeriodKeysOperations
from .operations.region_operations import RegionOperations
from .operations.reports_operations import ReportsOperations
from .operations.subscription_operations import SubscriptionOperations
from .operations.tag_resource_operations import TagResourceOperations
from .operations.tenant_access_operations import TenantAccessOperations
from .operations.tenant_access_git_operations import TenantAccessGitOperations
from .operations.tenant_configuration_operations import TenantConfigurationOperations
from .operations.user_operations import UserOperations
from .operations.user_group_operations import UserGroupOperations
from .operations.user_subscription_operations import UserSubscriptionOperations
from .operations.user_identities_operations import UserIdentitiesOperations
from .operations.user_confirmation_password_operations import UserConfirmationPasswordOperations
from .operations.api_export_operations import ApiExportOperations
from . import models


class ApiManagementClientConfiguration(AzureConfiguration):
"""Configuration for ApiManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Subscription credentials which uniquely identify
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, 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 not base_url:
base_url = 'https://management.azure.com'

super(ApiManagementClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-mgmt-apimanagement/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
from ._configuration import ApiManagementClientConfiguration
from .operations import ApiOperations
from .operations import ApiRevisionOperations
from .operations import ApiReleaseOperations
from .operations import ApiOperationOperations
from .operations import ApiOperationPolicyOperations
from .operations import TagOperations
from .operations import ApiProductOperations
from .operations import ApiPolicyOperations
from .operations import ApiSchemaOperations
from .operations import ApiDiagnosticOperations
from .operations import ApiIssueOperations
from .operations import ApiIssueCommentOperations
from .operations import ApiIssueAttachmentOperations
from .operations import ApiTagDescriptionOperations
from .operations import OperationOperations
from .operations import ApiVersionSetOperations
from .operations import AuthorizationServerOperations
from .operations import BackendOperations
from .operations import CacheOperations
from .operations import CertificateOperations
from .operations import ApiManagementOperations
from .operations import ApiManagementServiceSkusOperations
from .operations import ApiManagementServiceOperations
from .operations import DiagnosticOperations
from .operations import EmailTemplateOperations
from .operations import GroupOperations
from .operations import GroupUserOperations
from .operations import IdentityProviderOperations
from .operations import IssueOperations
from .operations import LoggerOperations
from .operations import NetworkStatusOperations
from .operations import NotificationOperations
from .operations import NotificationRecipientUserOperations
from .operations import NotificationRecipientEmailOperations
from .operations import OpenIdConnectProviderOperations
from .operations import PolicyOperations
from .operations import PolicyDescriptionOperations
from .operations import SignInSettingsOperations
from .operations import SignUpSettingsOperations
from .operations import DelegationSettingsOperations
from .operations import ProductOperations
from .operations import ProductApiOperations
from .operations import ProductGroupOperations
from .operations import ProductSubscriptionsOperations
from .operations import ProductPolicyOperations
from .operations import NamedValueOperations
from .operations import QuotaByCounterKeysOperations
from .operations import QuotaByPeriodKeysOperations
from .operations import RegionOperations
from .operations import ReportsOperations
from .operations import SubscriptionOperations
from .operations import TagResourceOperations
from .operations import TenantAccessOperations
from .operations import TenantAccessGitOperations
from .operations import TenantConfigurationOperations
from .operations import UserOperations
from .operations import UserGroupOperations
from .operations import UserSubscriptionOperations
from .operations import UserIdentitiesOperations
from .operations import UserConfirmationPasswordOperations
from .operations import ApiExportOperations
from . import models


class ApiManagementClient(SDKClient):
Expand Down Expand Up @@ -189,8 +155,8 @@ class ApiManagementClient(SDKClient):
:vartype open_id_connect_provider: azure.mgmt.apimanagement.operations.OpenIdConnectProviderOperations
:ivar policy: Policy operations
:vartype policy: azure.mgmt.apimanagement.operations.PolicyOperations
:ivar policy_snippet: PolicySnippet operations
:vartype policy_snippet: azure.mgmt.apimanagement.operations.PolicySnippetOperations
:ivar policy_description: PolicyDescription operations
:vartype policy_description: azure.mgmt.apimanagement.operations.PolicyDescriptionOperations
:ivar sign_in_settings: SignInSettings operations
:vartype sign_in_settings: azure.mgmt.apimanagement.operations.SignInSettingsOperations
:ivar sign_up_settings: SignUpSettings operations
Expand All @@ -207,8 +173,8 @@ class ApiManagementClient(SDKClient):
:vartype product_subscriptions: azure.mgmt.apimanagement.operations.ProductSubscriptionsOperations
:ivar product_policy: ProductPolicy operations
:vartype product_policy: azure.mgmt.apimanagement.operations.ProductPolicyOperations
:ivar property: Property operations
:vartype property: azure.mgmt.apimanagement.operations.PropertyOperations
:ivar named_value: NamedValue operations
:vartype named_value: azure.mgmt.apimanagement.operations.NamedValueOperations
:ivar quota_by_counter_keys: QuotaByCounterKeys operations
:vartype quota_by_counter_keys: azure.mgmt.apimanagement.operations.QuotaByCounterKeysOperations
:ivar quota_by_period_keys: QuotaByPeriodKeys operations
Expand Down Expand Up @@ -257,7 +223,7 @@ def __init__(
super(ApiManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2019-01-01'
self.api_version = '2019-12-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down Expand Up @@ -333,7 +299,7 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.policy = PolicyOperations(
self._client, self.config, self._serialize, self._deserialize)
self.policy_snippet = PolicySnippetOperations(
self.policy_description = PolicyDescriptionOperations(
self._client, self.config, self._serialize, self._deserialize)
self.sign_in_settings = SignInSettingsOperations(
self._client, self.config, self._serialize, self._deserialize)
Expand All @@ -351,7 +317,7 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.product_policy = ProductPolicyOperations(
self._client, self.config, self._serialize, self._deserialize)
self.property = PropertyOperations(
self.named_value = NamedValueOperations(
self._client, self.config, self._serialize, self._deserialize)
self.quota_by_counter_keys = QuotaByCounterKeysOperations(
self._client, self.config, self._serialize, self._deserialize)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class ApiManagementClientConfiguration(AzureConfiguration):
"""Configuration for ApiManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Subscription credentials which uniquely identify
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, 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 not base_url:
base_url = 'https://management.azure.com'

super(ApiManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-apimanagement/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Loading

0 comments on commit 6bcbea0

Please sign in to comment.