Skip to content

Commit 8d9331c

Browse files
author
SDKAuto
committed
CodeGen from PR 14956 in Azure/azure-rest-api-specs
Merge 24c5786898bbb50a622e6749b2d5e7e9e5ee7f77 into c2e43f8
1 parent f3aa604 commit 8d9331c

File tree

352 files changed

+13447
-15800
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

352 files changed

+13447
-15800
lines changed

sdk/automation/azure-mgmt-automation/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "8c66da7bd038ea21521265c0dea560f81d1828c6",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"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 [email protected]/autorest.python@~4.0.71 --version=V2",
7+
"readme": "specification/automation/resource-manager/readme.md"
8+
}

sdk/automation/azure-mgmt-automation/azure/mgmt/automation/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from .automation_client import AutomationClient
13-
from .version import VERSION
12+
from ._configuration import AutomationClientConfiguration
13+
from ._automation_client import AutomationClient
14+
__all__ = ['AutomationClient', 'AutomationClientConfiguration']
1415

15-
__all__ = ['AutomationClient']
16+
from .version import VERSION
1617

1718
__version__ = VERSION
1819

sdk/automation/azure-mgmt-automation/azure/mgmt/automation/automation_client.py renamed to sdk/automation/azure-mgmt-automation/azure/mgmt/automation/_automation_client.py

Lines changed: 113 additions & 137 deletions
Large diffs are not rendered by default.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class AutomationClientConfiguration(AzureConfiguration):
17+
"""Configuration for AutomationClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: Gets subscription credentials which uniquely
25+
identify Microsoft Azure subscription. The subscription ID forms part of
26+
the URI for every service call.
27+
:type subscription_id: str
28+
:param str base_url: Service URL
29+
"""
30+
31+
def __init__(
32+
self, credentials, subscription_id, base_url=None):
33+
34+
if credentials is None:
35+
raise ValueError("Parameter 'credentials' must not be None.")
36+
if subscription_id is None:
37+
raise ValueError("Parameter 'subscription_id' must not be None.")
38+
if not base_url:
39+
base_url = 'https://management.azure.com'
40+
41+
super(AutomationClientConfiguration, self).__init__(base_url)
42+
43+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
44+
self.keep_alive = True
45+
46+
self.add_user_agent('azure-mgmt-automation/{}'.format(VERSION))
47+
self.add_user_agent('Azure-SDK-For-Python')
48+
49+
self.credentials = credentials
50+
self.subscription_id = subscription_id

sdk/automation/azure-mgmt-automation/azure/mgmt/automation/models/__init__.py

Lines changed: 468 additions & 436 deletions
Large diffs are not rendered by default.

sdk/automation/azure-mgmt-automation/azure/mgmt/automation/models/automation_client_enums.py renamed to sdk/automation/azure-mgmt-automation/azure/mgmt/automation/models/_automation_client_enums.py

Lines changed: 127 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,106 @@
1212
from enum import Enum
1313

1414

15+
class ModuleProvisioningState(str, Enum):
16+
17+
created = "Created"
18+
creating = "Creating"
19+
starting_import_module_runbook = "StartingImportModuleRunbook"
20+
running_import_module_runbook = "RunningImportModuleRunbook"
21+
content_retrieved = "ContentRetrieved"
22+
content_downloaded = "ContentDownloaded"
23+
content_validated = "ContentValidated"
24+
connection_type_imported = "ConnectionTypeImported"
25+
content_stored = "ContentStored"
26+
module_data_stored = "ModuleDataStored"
27+
activities_stored = "ActivitiesStored"
28+
module_import_runbook_complete = "ModuleImportRunbookComplete"
29+
succeeded = "Succeeded"
30+
failed = "Failed"
31+
cancelled = "Cancelled"
32+
updating = "Updating"
33+
34+
35+
class AgentRegistrationKeyName(str, Enum):
36+
37+
primary = "primary"
38+
secondary = "secondary"
39+
40+
41+
class ContentSourceType(str, Enum):
42+
43+
embedded_content = "embeddedContent"
44+
uri = "uri"
45+
46+
47+
class JobProvisioningState(str, Enum):
48+
49+
failed = "Failed"
50+
succeeded = "Succeeded"
51+
suspended = "Suspended"
52+
processing = "Processing"
53+
54+
55+
class JobStatus(str, Enum):
56+
57+
new = "New"
58+
activating = "Activating"
59+
running = "Running"
60+
completed = "Completed"
61+
failed = "Failed"
62+
stopped = "Stopped"
63+
blocked = "Blocked"
64+
suspended = "Suspended"
65+
disconnected = "Disconnected"
66+
suspending = "Suspending"
67+
stopping = "Stopping"
68+
resuming = "Resuming"
69+
removing = "Removing"
70+
71+
72+
class JobStreamType(str, Enum):
73+
74+
progress = "Progress"
75+
output = "Output"
76+
warning = "Warning"
77+
error = "Error"
78+
debug = "Debug"
79+
verbose = "Verbose"
80+
any = "Any"
81+
82+
83+
class SourceType(str, Enum):
84+
85+
vso_git = "VsoGit"
86+
vso_tfvc = "VsoTfvc"
87+
git_hub = "GitHub"
88+
89+
90+
class TokenType(str, Enum):
91+
92+
personal_access_token = "PersonalAccessToken"
93+
oauth = "Oauth"
94+
95+
96+
class ProvisioningState(str, Enum):
97+
98+
completed = "Completed"
99+
failed = "Failed"
100+
running = "Running"
101+
102+
103+
class SyncType(str, Enum):
104+
105+
partial_sync = "PartialSync"
106+
full_sync = "FullSync"
107+
108+
109+
class StreamType(str, Enum):
110+
111+
error = "Error"
112+
output = "Output"
113+
114+
15115
class SkuNameEnum(str, Enum):
16116

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

27127

28-
class AutomationKeyName(str, Enum):
29-
30-
primary = "Primary"
31-
secondary = "Secondary"
32-
128+
class EncryptionKeySourceType(str, Enum):
33129

34-
class AutomationKeyPermissions(str, Enum):
35-
36-
read = "Read"
37-
full = "Full"
130+
microsoft_automation = "Microsoft.Automation"
131+
microsoft_keyvault = "Microsoft.Keyvault"
38132

39133

40-
class ContentSourceType(str, Enum):
134+
class ResourceIdentityType(str, Enum):
41135

42-
embedded_content = "embeddedContent"
43-
uri = "uri"
136+
system_assigned = "SystemAssigned"
137+
user_assigned = "UserAssigned"
138+
system_assigned_user_assigned = "SystemAssigned, UserAssigned"
139+
none = "None"
44140

45141

46-
class DscConfigurationProvisioningState(str, Enum):
142+
class AutomationKeyName(str, Enum):
47143

48-
succeeded = "Succeeded"
144+
primary = "Primary"
145+
secondary = "Secondary"
49146

50147

51-
class DscConfigurationState(str, Enum):
148+
class AutomationKeyPermissions(str, Enum):
52149

53-
new = "New"
54-
edit = "Edit"
55-
published = "Published"
150+
read = "Read"
151+
full = "Full"
56152

57153

58154
class GroupTypeEnum(str, Enum):
@@ -61,26 +157,6 @@ class GroupTypeEnum(str, Enum):
61157
system = "System"
62158

63159

64-
class ModuleProvisioningState(str, Enum):
65-
66-
created = "Created"
67-
creating = "Creating"
68-
starting_import_module_runbook = "StartingImportModuleRunbook"
69-
running_import_module_runbook = "RunningImportModuleRunbook"
70-
content_retrieved = "ContentRetrieved"
71-
content_downloaded = "ContentDownloaded"
72-
content_validated = "ContentValidated"
73-
connection_type_imported = "ConnectionTypeImported"
74-
content_stored = "ContentStored"
75-
module_data_stored = "ModuleDataStored"
76-
activities_stored = "ActivitiesStored"
77-
module_import_runbook_complete = "ModuleImportRunbookComplete"
78-
succeeded = "Succeeded"
79-
failed = "Failed"
80-
cancelled = "Cancelled"
81-
updating = "Updating"
82-
83-
84160
class ScheduleDay(str, Enum):
85161

86162
monday = "Monday"
@@ -99,6 +175,19 @@ class ScheduleFrequency(str, Enum):
99175
hour = "Hour"
100176
week = "Week"
101177
month = "Month"
178+
minute = "Minute" #: The minimum allowed interval for Minute schedules is 15 minutes.
179+
180+
181+
class DscConfigurationProvisioningState(str, Enum):
182+
183+
succeeded = "Succeeded"
184+
185+
186+
class DscConfigurationState(str, Enum):
187+
188+
new = "New"
189+
edit = "Edit"
190+
published = "Published"
102191

103192

104193
class OperatingSystemType(str, Enum):
@@ -134,80 +223,6 @@ class TagOperators(str, Enum):
134223
any = "Any"
135224

136225

137-
class SourceType(str, Enum):
138-
139-
vso_git = "VsoGit"
140-
vso_tfvc = "VsoTfvc"
141-
git_hub = "GitHub"
142-
143-
144-
class TokenType(str, Enum):
145-
146-
personal_access_token = "PersonalAccessToken"
147-
oauth = "Oauth"
148-
149-
150-
class ProvisioningState(str, Enum):
151-
152-
completed = "Completed"
153-
failed = "Failed"
154-
running = "Running"
155-
156-
157-
class SyncType(str, Enum):
158-
159-
partial_sync = "PartialSync"
160-
full_sync = "FullSync"
161-
162-
163-
class StreamType(str, Enum):
164-
165-
error = "Error"
166-
output = "Output"
167-
168-
169-
class JobStreamType(str, Enum):
170-
171-
progress = "Progress"
172-
output = "Output"
173-
warning = "Warning"
174-
error = "Error"
175-
debug = "Debug"
176-
verbose = "Verbose"
177-
any = "Any"
178-
179-
180-
class JobStatus(str, Enum):
181-
182-
new = "New"
183-
activating = "Activating"
184-
running = "Running"
185-
completed = "Completed"
186-
failed = "Failed"
187-
stopped = "Stopped"
188-
blocked = "Blocked"
189-
suspended = "Suspended"
190-
disconnected = "Disconnected"
191-
suspending = "Suspending"
192-
stopping = "Stopping"
193-
resuming = "Resuming"
194-
removing = "Removing"
195-
196-
197-
class JobProvisioningState(str, Enum):
198-
199-
failed = "Failed"
200-
succeeded = "Succeeded"
201-
suspended = "Suspended"
202-
processing = "Processing"
203-
204-
205-
class AgentRegistrationKeyName(str, Enum):
206-
207-
primary = "primary"
208-
secondary = "secondary"
209-
210-
211226
class RunbookTypeEnum(str, Enum):
212227

213228
script = "Script"

0 commit comments

Comments
 (0)