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-automation] Add New Api 2021-06-22 #6169

Draft
wants to merge 1 commit into
base: release/v3
Choose a base branch
from
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions sdk/automation/azure-mgmt-automation/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/automation/azure-mgmt-automation/_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": "8c66da7bd038ea21521265c0dea560f81d1828c6",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/automation/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/automation/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .automation_client import AutomationClient
from .version import VERSION
from ._configuration import AutomationClientConfiguration
from ._automation_client import AutomationClient
__all__ = ['AutomationClient', 'AutomationClientConfiguration']

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

__version__ = VERSION

Large diffs are not rendered by default.

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 AutomationClientConfiguration(AzureConfiguration):
"""Configuration for AutomationClient
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: Gets 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(AutomationClientConfiguration, 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-automation/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,106 @@
from enum import Enum


class ModuleProvisioningState(str, Enum):

created = "Created"
creating = "Creating"
starting_import_module_runbook = "StartingImportModuleRunbook"
running_import_module_runbook = "RunningImportModuleRunbook"
content_retrieved = "ContentRetrieved"
content_downloaded = "ContentDownloaded"
content_validated = "ContentValidated"
connection_type_imported = "ConnectionTypeImported"
content_stored = "ContentStored"
module_data_stored = "ModuleDataStored"
activities_stored = "ActivitiesStored"
module_import_runbook_complete = "ModuleImportRunbookComplete"
succeeded = "Succeeded"
failed = "Failed"
cancelled = "Cancelled"
updating = "Updating"


class AgentRegistrationKeyName(str, Enum):

primary = "primary"
secondary = "secondary"


class ContentSourceType(str, Enum):

embedded_content = "embeddedContent"
uri = "uri"


class JobProvisioningState(str, Enum):

failed = "Failed"
succeeded = "Succeeded"
suspended = "Suspended"
processing = "Processing"


class JobStatus(str, Enum):

new = "New"
activating = "Activating"
running = "Running"
completed = "Completed"
failed = "Failed"
stopped = "Stopped"
blocked = "Blocked"
suspended = "Suspended"
disconnected = "Disconnected"
suspending = "Suspending"
stopping = "Stopping"
resuming = "Resuming"
removing = "Removing"


class JobStreamType(str, Enum):

progress = "Progress"
output = "Output"
warning = "Warning"
error = "Error"
debug = "Debug"
verbose = "Verbose"
any = "Any"


class SourceType(str, Enum):

vso_git = "VsoGit"
vso_tfvc = "VsoTfvc"
git_hub = "GitHub"


class TokenType(str, Enum):

personal_access_token = "PersonalAccessToken"
oauth = "Oauth"


class ProvisioningState(str, Enum):

completed = "Completed"
failed = "Failed"
running = "Running"


class SyncType(str, Enum):

partial_sync = "PartialSync"
full_sync = "FullSync"


class StreamType(str, Enum):

error = "Error"
output = "Output"


class SkuNameEnum(str, Enum):

free = "Free"
Expand All @@ -25,34 +125,30 @@ class AutomationAccountState(str, Enum):
suspended = "Suspended"


class AutomationKeyName(str, Enum):

primary = "Primary"
secondary = "Secondary"

class EncryptionKeySourceType(str, Enum):

class AutomationKeyPermissions(str, Enum):

read = "Read"
full = "Full"
microsoft_automation = "Microsoft.Automation"
microsoft_keyvault = "Microsoft.Keyvault"


class ContentSourceType(str, Enum):
class ResourceIdentityType(str, Enum):

embedded_content = "embeddedContent"
uri = "uri"
system_assigned = "SystemAssigned"
user_assigned = "UserAssigned"
system_assigned_user_assigned = "SystemAssigned, UserAssigned"
none = "None"


class DscConfigurationProvisioningState(str, Enum):
class AutomationKeyName(str, Enum):

succeeded = "Succeeded"
primary = "Primary"
secondary = "Secondary"


class DscConfigurationState(str, Enum):
class AutomationKeyPermissions(str, Enum):

new = "New"
edit = "Edit"
published = "Published"
read = "Read"
full = "Full"


class GroupTypeEnum(str, Enum):
Expand All @@ -61,26 +157,6 @@ class GroupTypeEnum(str, Enum):
system = "System"


class ModuleProvisioningState(str, Enum):

created = "Created"
creating = "Creating"
starting_import_module_runbook = "StartingImportModuleRunbook"
running_import_module_runbook = "RunningImportModuleRunbook"
content_retrieved = "ContentRetrieved"
content_downloaded = "ContentDownloaded"
content_validated = "ContentValidated"
connection_type_imported = "ConnectionTypeImported"
content_stored = "ContentStored"
module_data_stored = "ModuleDataStored"
activities_stored = "ActivitiesStored"
module_import_runbook_complete = "ModuleImportRunbookComplete"
succeeded = "Succeeded"
failed = "Failed"
cancelled = "Cancelled"
updating = "Updating"


class ScheduleDay(str, Enum):

monday = "Monday"
Expand All @@ -99,6 +175,19 @@ class ScheduleFrequency(str, Enum):
hour = "Hour"
week = "Week"
month = "Month"
minute = "Minute" #: The minimum allowed interval for Minute schedules is 15 minutes.


class DscConfigurationProvisioningState(str, Enum):

succeeded = "Succeeded"


class DscConfigurationState(str, Enum):

new = "New"
edit = "Edit"
published = "Published"


class OperatingSystemType(str, Enum):
Expand Down Expand Up @@ -134,80 +223,6 @@ class TagOperators(str, Enum):
any = "Any"


class SourceType(str, Enum):

vso_git = "VsoGit"
vso_tfvc = "VsoTfvc"
git_hub = "GitHub"


class TokenType(str, Enum):

personal_access_token = "PersonalAccessToken"
oauth = "Oauth"


class ProvisioningState(str, Enum):

completed = "Completed"
failed = "Failed"
running = "Running"


class SyncType(str, Enum):

partial_sync = "PartialSync"
full_sync = "FullSync"


class StreamType(str, Enum):

error = "Error"
output = "Output"


class JobStreamType(str, Enum):

progress = "Progress"
output = "Output"
warning = "Warning"
error = "Error"
debug = "Debug"
verbose = "Verbose"
any = "Any"


class JobStatus(str, Enum):

new = "New"
activating = "Activating"
running = "Running"
completed = "Completed"
failed = "Failed"
stopped = "Stopped"
blocked = "Blocked"
suspended = "Suspended"
disconnected = "Disconnected"
suspending = "Suspending"
stopping = "Stopping"
resuming = "Resuming"
removing = "Removing"


class JobProvisioningState(str, Enum):

failed = "Failed"
succeeded = "Succeeded"
suspended = "Suspended"
processing = "Processing"


class AgentRegistrationKeyName(str, Enum):

primary = "primary"
secondary = "secondary"


class RunbookTypeEnum(str, Enum):

script = "Script"
Expand Down
Loading