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-scheduler] Add track2 batch 4 mysql-->cognitiveservices #7767

Closed
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
1 change: 1 addition & 0 deletions sdk/scheduler/azure-mgmt-scheduler/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py
8 changes: 8 additions & 0 deletions sdk/scheduler/azure-mgmt-scheduler/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "0418ecbffbf97c145408c915d741d7c73ab2295c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/scheduler/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2",
"readme": "specification/scheduler/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .scheduler_management_client import SchedulerManagementClient
from .version import VERSION
from ._configuration import SchedulerManagementClientConfiguration
from ._scheduler_management_client import SchedulerManagementClient
__all__ = ['SchedulerManagementClient', 'SchedulerManagementClientConfiguration']

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

__version__ = VERSION

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 SchedulerManagementClientConfiguration(AzureConfiguration):
"""Configuration for SchedulerManagementClient
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.
: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(SchedulerManagementClientConfiguration, 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-scheduler/{}'.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,44 +11,11 @@

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.job_collections_operations import JobCollectionsOperations
from .operations.jobs_operations import JobsOperations
from . import models
from .patch import patch_client


class SchedulerManagementClientConfiguration(AzureConfiguration):
"""Configuration for SchedulerManagementClient
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.
: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(SchedulerManagementClientConfiguration, self).__init__(base_url)

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

self.credentials = credentials
self.subscription_id = subscription_id
from ._configuration import SchedulerManagementClientConfiguration
from .operations import JobCollectionsOperations
from .operations import JobsOperations
from . import models


class SchedulerManagementClient(SDKClient):
Expand Down Expand Up @@ -85,5 +52,3 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.jobs = JobsOperations(
self._client, self.config, self._serialize, self._deserialize)

patch_client(self)
Original file line number Diff line number Diff line change
Expand Up @@ -10,69 +10,69 @@
# --------------------------------------------------------------------------

try:
from .sku_py3 import Sku
from .job_max_recurrence_py3 import JobMaxRecurrence
from .job_collection_quota_py3 import JobCollectionQuota
from .job_collection_properties_py3 import JobCollectionProperties
from .job_collection_definition_py3 import JobCollectionDefinition
from .http_authentication_py3 import HttpAuthentication
from .http_request_py3 import HttpRequest
from .storage_queue_message_py3 import StorageQueueMessage
from .service_bus_queue_message_py3 import ServiceBusQueueMessage
from .service_bus_topic_message_py3 import ServiceBusTopicMessage
from .retry_policy_py3 import RetryPolicy
from .job_error_action_py3 import JobErrorAction
from .job_action_py3 import JobAction
from .job_recurrence_schedule_monthly_occurrence_py3 import JobRecurrenceScheduleMonthlyOccurrence
from .job_recurrence_schedule_py3 import JobRecurrenceSchedule
from .job_recurrence_py3 import JobRecurrence
from .job_status_py3 import JobStatus
from .job_properties_py3 import JobProperties
from .job_definition_py3 import JobDefinition
from .job_history_definition_properties_py3 import JobHistoryDefinitionProperties
from .job_history_definition_py3 import JobHistoryDefinition
from .client_cert_authentication_py3 import ClientCertAuthentication
from .basic_authentication_py3 import BasicAuthentication
from .oauth_authentication_py3 import OAuthAuthentication
from .service_bus_authentication_py3 import ServiceBusAuthentication
from .service_bus_brokered_message_properties_py3 import ServiceBusBrokeredMessageProperties
from .service_bus_message_py3 import ServiceBusMessage
from .job_state_filter_py3 import JobStateFilter
from .job_history_filter_py3 import JobHistoryFilter
from ._models_py3 import BasicAuthentication
from ._models_py3 import ClientCertAuthentication
from ._models_py3 import HttpAuthentication
from ._models_py3 import HttpRequest
from ._models_py3 import JobAction
from ._models_py3 import JobCollectionDefinition
from ._models_py3 import JobCollectionProperties
from ._models_py3 import JobCollectionQuota
from ._models_py3 import JobDefinition
from ._models_py3 import JobErrorAction
from ._models_py3 import JobHistoryDefinition
from ._models_py3 import JobHistoryDefinitionProperties
from ._models_py3 import JobHistoryFilter
from ._models_py3 import JobMaxRecurrence
from ._models_py3 import JobProperties
from ._models_py3 import JobRecurrence
from ._models_py3 import JobRecurrenceSchedule
from ._models_py3 import JobRecurrenceScheduleMonthlyOccurrence
from ._models_py3 import JobStateFilter
from ._models_py3 import JobStatus
from ._models_py3 import OAuthAuthentication
from ._models_py3 import RetryPolicy
from ._models_py3 import ServiceBusAuthentication
from ._models_py3 import ServiceBusBrokeredMessageProperties
from ._models_py3 import ServiceBusMessage
from ._models_py3 import ServiceBusQueueMessage
from ._models_py3 import ServiceBusTopicMessage
from ._models_py3 import Sku
from ._models_py3 import StorageQueueMessage
except (SyntaxError, ImportError):
from .sku import Sku
from .job_max_recurrence import JobMaxRecurrence
from .job_collection_quota import JobCollectionQuota
from .job_collection_properties import JobCollectionProperties
from .job_collection_definition import JobCollectionDefinition
from .http_authentication import HttpAuthentication
from .http_request import HttpRequest
from .storage_queue_message import StorageQueueMessage
from .service_bus_queue_message import ServiceBusQueueMessage
from .service_bus_topic_message import ServiceBusTopicMessage
from .retry_policy import RetryPolicy
from .job_error_action import JobErrorAction
from .job_action import JobAction
from .job_recurrence_schedule_monthly_occurrence import JobRecurrenceScheduleMonthlyOccurrence
from .job_recurrence_schedule import JobRecurrenceSchedule
from .job_recurrence import JobRecurrence
from .job_status import JobStatus
from .job_properties import JobProperties
from .job_definition import JobDefinition
from .job_history_definition_properties import JobHistoryDefinitionProperties
from .job_history_definition import JobHistoryDefinition
from .client_cert_authentication import ClientCertAuthentication
from .basic_authentication import BasicAuthentication
from .oauth_authentication import OAuthAuthentication
from .service_bus_authentication import ServiceBusAuthentication
from .service_bus_brokered_message_properties import ServiceBusBrokeredMessageProperties
from .service_bus_message import ServiceBusMessage
from .job_state_filter import JobStateFilter
from .job_history_filter import JobHistoryFilter
from .job_collection_definition_paged import JobCollectionDefinitionPaged
from .job_definition_paged import JobDefinitionPaged
from .job_history_definition_paged import JobHistoryDefinitionPaged
from .scheduler_management_client_enums import (
from ._models import BasicAuthentication
from ._models import ClientCertAuthentication
from ._models import HttpAuthentication
from ._models import HttpRequest
from ._models import JobAction
from ._models import JobCollectionDefinition
from ._models import JobCollectionProperties
from ._models import JobCollectionQuota
from ._models import JobDefinition
from ._models import JobErrorAction
from ._models import JobHistoryDefinition
from ._models import JobHistoryDefinitionProperties
from ._models import JobHistoryFilter
from ._models import JobMaxRecurrence
from ._models import JobProperties
from ._models import JobRecurrence
from ._models import JobRecurrenceSchedule
from ._models import JobRecurrenceScheduleMonthlyOccurrence
from ._models import JobStateFilter
from ._models import JobStatus
from ._models import OAuthAuthentication
from ._models import RetryPolicy
from ._models import ServiceBusAuthentication
from ._models import ServiceBusBrokeredMessageProperties
from ._models import ServiceBusMessage
from ._models import ServiceBusQueueMessage
from ._models import ServiceBusTopicMessage
from ._models import Sku
from ._models import StorageQueueMessage
from ._paged_models import JobCollectionDefinitionPaged
from ._paged_models import JobDefinitionPaged
from ._paged_models import JobHistoryDefinitionPaged
from ._scheduler_management_client_enums import (
SkuDefinition,
JobCollectionState,
RecurrenceFrequency,
Expand All @@ -88,35 +88,35 @@
)

__all__ = [
'Sku',
'JobMaxRecurrence',
'JobCollectionQuota',
'JobCollectionProperties',
'JobCollectionDefinition',
'BasicAuthentication',
'ClientCertAuthentication',
'HttpAuthentication',
'HttpRequest',
'StorageQueueMessage',
'ServiceBusQueueMessage',
'ServiceBusTopicMessage',
'RetryPolicy',
'JobErrorAction',
'JobAction',
'JobRecurrenceScheduleMonthlyOccurrence',
'JobRecurrenceSchedule',
'JobRecurrence',
'JobStatus',
'JobProperties',
'JobCollectionDefinition',
'JobCollectionProperties',
'JobCollectionQuota',
'JobDefinition',
'JobHistoryDefinitionProperties',
'JobErrorAction',
'JobHistoryDefinition',
'ClientCertAuthentication',
'BasicAuthentication',
'JobHistoryDefinitionProperties',
'JobHistoryFilter',
'JobMaxRecurrence',
'JobProperties',
'JobRecurrence',
'JobRecurrenceSchedule',
'JobRecurrenceScheduleMonthlyOccurrence',
'JobStateFilter',
'JobStatus',
'OAuthAuthentication',
'RetryPolicy',
'ServiceBusAuthentication',
'ServiceBusBrokeredMessageProperties',
'ServiceBusMessage',
'JobStateFilter',
'JobHistoryFilter',
'ServiceBusQueueMessage',
'ServiceBusTopicMessage',
'Sku',
'StorageQueueMessage',
'JobCollectionDefinitionPaged',
'JobDefinitionPaged',
'JobHistoryDefinitionPaged',
Expand Down
Loading