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 postgresql/resource-manager] PostGreSql: added java readme #6064

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .postgre_sql_management_client import PostgreSQLManagementClient
from .version import VERSION
from ._configuration import PostgreSQLManagementClientConfiguration
from ._postgre_sql_management_client import PostgreSQLManagementClient
__all__ = ['PostgreSQLManagementClient', 'PostgreSQLManagementClientConfiguration']

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

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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 PostgreSQLManagementClientConfiguration(AzureConfiguration):
"""Configuration for PostgreSQLManagementClient
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 subscription ID that identifies an Azure
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(PostgreSQLManagementClientConfiguration, 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
Original file line number Diff line number Diff line change
Expand Up @@ -11,53 +11,20 @@

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.servers_operations import ServersOperations
from .operations.replicas_operations import ReplicasOperations
from .operations.firewall_rules_operations import FirewallRulesOperations
from .operations.virtual_network_rules_operations import VirtualNetworkRulesOperations
from .operations.databases_operations import DatabasesOperations
from .operations.configurations_operations import ConfigurationsOperations
from .operations.log_files_operations import LogFilesOperations
from .operations.location_based_performance_tier_operations import LocationBasedPerformanceTierOperations
from .operations.check_name_availability_operations import CheckNameAvailabilityOperations
from .operations.server_security_alert_policies_operations import ServerSecurityAlertPoliciesOperations
from .operations.operations import Operations
from . import models


class PostgreSQLManagementClientConfiguration(AzureConfiguration):
"""Configuration for PostgreSQLManagementClient
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 subscription ID that identifies an Azure
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(PostgreSQLManagementClientConfiguration, self).__init__(base_url)

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
from ._configuration import PostgreSQLManagementClientConfiguration
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 . import models


class PostgreSQLManagementClient(SDKClient):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,65 +10,65 @@
# --------------------------------------------------------------------------

try:
from .proxy_resource_py3 import ProxyResource
from .tracked_resource_py3 import TrackedResource
from .storage_profile_py3 import StorageProfile
from .server_properties_for_create_py3 import ServerPropertiesForCreate
from .server_properties_for_default_create_py3 import ServerPropertiesForDefaultCreate
from .server_properties_for_restore_py3 import ServerPropertiesForRestore
from .server_properties_for_geo_restore_py3 import ServerPropertiesForGeoRestore
from .server_properties_for_replica_py3 import ServerPropertiesForReplica
from .sku_py3 import Sku
from .server_py3 import Server
from .server_for_create_py3 import ServerForCreate
from .server_update_parameters_py3 import ServerUpdateParameters
from .firewall_rule_py3 import FirewallRule
from .virtual_network_rule_py3 import VirtualNetworkRule
from .database_py3 import Database
from .configuration_py3 import Configuration
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .operation_list_result_py3 import OperationListResult
from .log_file_py3 import LogFile
from .performance_tier_service_level_objectives_py3 import PerformanceTierServiceLevelObjectives
from .performance_tier_properties_py3 import PerformanceTierProperties
from .name_availability_request_py3 import NameAvailabilityRequest
from .name_availability_py3 import NameAvailability
from .server_security_alert_policy_py3 import ServerSecurityAlertPolicy
from ._models_py3 import Configuration
from ._models_py3 import Database
from ._models_py3 import FirewallRule
from ._models_py3 import LogFile
from ._models_py3 import NameAvailability
from ._models_py3 import NameAvailabilityRequest
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationListResult
from ._models_py3 import PerformanceTierProperties
from ._models_py3 import PerformanceTierServiceLevelObjectives
from ._models_py3 import ProxyResource
from ._models_py3 import Server
from ._models_py3 import ServerForCreate
from ._models_py3 import ServerPropertiesForCreate
from ._models_py3 import ServerPropertiesForDefaultCreate
from ._models_py3 import ServerPropertiesForGeoRestore
from ._models_py3 import ServerPropertiesForReplica
from ._models_py3 import ServerPropertiesForRestore
from ._models_py3 import ServerSecurityAlertPolicy
from ._models_py3 import ServerUpdateParameters
from ._models_py3 import Sku
from ._models_py3 import StorageProfile
from ._models_py3 import TrackedResource
from ._models_py3 import VirtualNetworkRule
except (SyntaxError, ImportError):
from .proxy_resource import ProxyResource
from .tracked_resource import TrackedResource
from .storage_profile import StorageProfile
from .server_properties_for_create import ServerPropertiesForCreate
from .server_properties_for_default_create import ServerPropertiesForDefaultCreate
from .server_properties_for_restore import ServerPropertiesForRestore
from .server_properties_for_geo_restore import ServerPropertiesForGeoRestore
from .server_properties_for_replica import ServerPropertiesForReplica
from .sku import Sku
from .server import Server
from .server_for_create import ServerForCreate
from .server_update_parameters import ServerUpdateParameters
from .firewall_rule import FirewallRule
from .virtual_network_rule import VirtualNetworkRule
from .database import Database
from .configuration import Configuration
from .operation_display import OperationDisplay
from .operation import Operation
from .operation_list_result import OperationListResult
from .log_file import LogFile
from .performance_tier_service_level_objectives import PerformanceTierServiceLevelObjectives
from .performance_tier_properties import PerformanceTierProperties
from .name_availability_request import NameAvailabilityRequest
from .name_availability import NameAvailability
from .server_security_alert_policy import ServerSecurityAlertPolicy
from .server_paged import ServerPaged
from .firewall_rule_paged import FirewallRulePaged
from .virtual_network_rule_paged import VirtualNetworkRulePaged
from .database_paged import DatabasePaged
from .configuration_paged import ConfigurationPaged
from .log_file_paged import LogFilePaged
from .performance_tier_properties_paged import PerformanceTierPropertiesPaged
from .postgre_sql_management_client_enums import (
from ._models import Configuration
from ._models import Database
from ._models import FirewallRule
from ._models import LogFile
from ._models import NameAvailability
from ._models import NameAvailabilityRequest
from ._models import Operation
from ._models import OperationDisplay
from ._models import OperationListResult
from ._models import PerformanceTierProperties
from ._models import PerformanceTierServiceLevelObjectives
from ._models import ProxyResource
from ._models import Server
from ._models import ServerForCreate
from ._models import ServerPropertiesForCreate
from ._models import ServerPropertiesForDefaultCreate
from ._models import ServerPropertiesForGeoRestore
from ._models import ServerPropertiesForReplica
from ._models import ServerPropertiesForRestore
from ._models import ServerSecurityAlertPolicy
from ._models import ServerUpdateParameters
from ._models import Sku
from ._models import StorageProfile
from ._models import TrackedResource
from ._models import VirtualNetworkRule
from ._paged_models import ConfigurationPaged
from ._paged_models import DatabasePaged
from ._paged_models import FirewallRulePaged
from ._paged_models import LogFilePaged
from ._paged_models import PerformanceTierPropertiesPaged
from ._paged_models import ServerPaged
from ._paged_models import VirtualNetworkRulePaged
from ._postgre_sql_management_client_enums import (
ServerVersion,
SslEnforcementEnum,
ServerState,
Expand All @@ -81,31 +81,31 @@
)

__all__ = [
'Configuration',
'Database',
'FirewallRule',
'LogFile',
'NameAvailability',
'NameAvailabilityRequest',
'Operation',
'OperationDisplay',
'OperationListResult',
'PerformanceTierProperties',
'PerformanceTierServiceLevelObjectives',
'ProxyResource',
'TrackedResource',
'StorageProfile',
'Server',
'ServerForCreate',
'ServerPropertiesForCreate',
'ServerPropertiesForDefaultCreate',
'ServerPropertiesForRestore',
'ServerPropertiesForGeoRestore',
'ServerPropertiesForReplica',
'Sku',
'Server',
'ServerForCreate',
'ServerPropertiesForRestore',
'ServerSecurityAlertPolicy',
'ServerUpdateParameters',
'FirewallRule',
'Sku',
'StorageProfile',
'TrackedResource',
'VirtualNetworkRule',
'Database',
'Configuration',
'OperationDisplay',
'Operation',
'OperationListResult',
'LogFile',
'PerformanceTierServiceLevelObjectives',
'PerformanceTierProperties',
'NameAvailabilityRequest',
'NameAvailability',
'ServerSecurityAlertPolicy',
'ServerPaged',
'FirewallRulePaged',
'VirtualNetworkRulePaged',
Expand Down
Loading