forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 497f37d011e45d90e7a5f190b1326ec89e2719c8
Merge pull request #6 from Khushboo-Baheti/master merge
- Loading branch information
SDK Automation
committed
Feb 24, 2020
1 parent
a25a803
commit 042d70c
Showing
88 changed files
with
6,440 additions
and
3,360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_configuration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# 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 MariaDBManagementClientConfiguration(AzureConfiguration): | ||
"""Configuration for MariaDBManagementClient | ||
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: The ID of the target subscription. | ||
: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(MariaDBManagementClientConfiguration, 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-rdbms/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id |
145 changes: 145 additions & 0 deletions
145
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_maria_db_management_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
# 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 msrest.service_client import SDKClient | ||
from msrest import Serializer, Deserializer | ||
|
||
from ._configuration import MariaDBManagementClientConfiguration | ||
from .operations import MariaDBManagementClientOperationsMixin | ||
from .operations import ServersOperations | ||
from .operations import ReplicasOperations | ||
from .operations import FirewallRulesOperations | ||
from .operations import VirtualNetworkRulesOperations | ||
from .operations import DatabasesOperations | ||
from .operations import ConfigurationsOperations | ||
from .operations import LogFilesOperations | ||
from .operations import LocationBasedPerformanceTierOperations | ||
from .operations import CheckNameAvailabilityOperations | ||
from .operations import ServerSecurityAlertPoliciesOperations | ||
from .operations import Operations | ||
from .operations import QueryTextsOperations | ||
from .operations import TopQueryStatisticsOperations | ||
from .operations import WaitStatisticsOperations | ||
from .operations import AdvisorsOperations | ||
from .operations import RecommendedActionsOperations | ||
from .operations import LocationBasedRecommendedActionSessionsOperationStatusOperations | ||
from .operations import LocationBasedRecommendedActionSessionsResultOperations | ||
from .operations import PrivateEndpointConnectionsOperations | ||
from .operations import PrivateLinkResourcesOperations | ||
from . import models | ||
|
||
|
||
class MariaDBManagementClient(MariaDBManagementClientOperationsMixin, SDKClient): | ||
"""The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MariaDB resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. | ||
:ivar config: Configuration for client. | ||
:vartype config: MariaDBManagementClientConfiguration | ||
:ivar servers: Servers operations | ||
:vartype servers: azure.mgmt.rdbms.mariadb.operations.ServersOperations | ||
:ivar replicas: Replicas operations | ||
:vartype replicas: azure.mgmt.rdbms.mariadb.operations.ReplicasOperations | ||
:ivar firewall_rules: FirewallRules operations | ||
:vartype firewall_rules: azure.mgmt.rdbms.mariadb.operations.FirewallRulesOperations | ||
:ivar virtual_network_rules: VirtualNetworkRules operations | ||
:vartype virtual_network_rules: azure.mgmt.rdbms.mariadb.operations.VirtualNetworkRulesOperations | ||
:ivar databases: Databases operations | ||
:vartype databases: azure.mgmt.rdbms.mariadb.operations.DatabasesOperations | ||
:ivar configurations: Configurations operations | ||
:vartype configurations: azure.mgmt.rdbms.mariadb.operations.ConfigurationsOperations | ||
:ivar log_files: LogFiles operations | ||
:vartype log_files: azure.mgmt.rdbms.mariadb.operations.LogFilesOperations | ||
:ivar location_based_performance_tier: LocationBasedPerformanceTier operations | ||
:vartype location_based_performance_tier: azure.mgmt.rdbms.mariadb.operations.LocationBasedPerformanceTierOperations | ||
:ivar check_name_availability: CheckNameAvailability operations | ||
:vartype check_name_availability: azure.mgmt.rdbms.mariadb.operations.CheckNameAvailabilityOperations | ||
:ivar server_security_alert_policies: ServerSecurityAlertPolicies operations | ||
:vartype server_security_alert_policies: azure.mgmt.rdbms.mariadb.operations.ServerSecurityAlertPoliciesOperations | ||
:ivar operations: Operations operations | ||
:vartype operations: azure.mgmt.rdbms.mariadb.operations.Operations | ||
:ivar query_texts: QueryTexts operations | ||
:vartype query_texts: azure.mgmt.rdbms.mariadb.operations.QueryTextsOperations | ||
:ivar top_query_statistics: TopQueryStatistics operations | ||
:vartype top_query_statistics: azure.mgmt.rdbms.mariadb.operations.TopQueryStatisticsOperations | ||
:ivar wait_statistics: WaitStatistics operations | ||
:vartype wait_statistics: azure.mgmt.rdbms.mariadb.operations.WaitStatisticsOperations | ||
:ivar advisors: Advisors operations | ||
:vartype advisors: azure.mgmt.rdbms.mariadb.operations.AdvisorsOperations | ||
:ivar recommended_actions: RecommendedActions operations | ||
:vartype recommended_actions: azure.mgmt.rdbms.mariadb.operations.RecommendedActionsOperations | ||
:ivar location_based_recommended_action_sessions_operation_status: LocationBasedRecommendedActionSessionsOperationStatus operations | ||
:vartype location_based_recommended_action_sessions_operation_status: azure.mgmt.rdbms.mariadb.operations.LocationBasedRecommendedActionSessionsOperationStatusOperations | ||
:ivar location_based_recommended_action_sessions_result: LocationBasedRecommendedActionSessionsResult operations | ||
:vartype location_based_recommended_action_sessions_result: azure.mgmt.rdbms.mariadb.operations.LocationBasedRecommendedActionSessionsResultOperations | ||
:ivar private_endpoint_connections: PrivateEndpointConnections operations | ||
:vartype private_endpoint_connections: azure.mgmt.rdbms.mariadb.operations.PrivateEndpointConnectionsOperations | ||
:ivar private_link_resources: PrivateLinkResources operations | ||
:vartype private_link_resources: azure.mgmt.rdbms.mariadb.operations.PrivateLinkResourcesOperations | ||
: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: The ID of the target subscription. | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, base_url=None): | ||
|
||
self.config = MariaDBManagementClientConfiguration(credentials, subscription_id, base_url) | ||
super(MariaDBManagementClient, 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 = '2018-06-01' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.servers = ServersOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.replicas = ReplicasOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.firewall_rules = FirewallRulesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.virtual_network_rules = VirtualNetworkRulesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.databases = DatabasesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.configurations = ConfigurationsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.log_files = LogFilesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.location_based_performance_tier = LocationBasedPerformanceTierOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.check_name_availability = CheckNameAvailabilityOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.server_security_alert_policies = ServerSecurityAlertPoliciesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.operations = Operations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.query_texts = QueryTextsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.top_query_statistics = TopQueryStatisticsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.wait_statistics = WaitStatisticsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.advisors = AdvisorsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.recommended_actions = RecommendedActionsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.location_based_recommended_action_sessions_operation_status = LocationBasedRecommendedActionSessionsOperationStatusOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.location_based_recommended_action_sessions_result = LocationBasedRecommendedActionSessionsResultOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.private_endpoint_connections = PrivateEndpointConnectionsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.private_link_resources = PrivateLinkResourcesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) |
133 changes: 0 additions & 133 deletions
133
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/maria_db_management_client.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.