Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions sdk/automation/azure-mgmt-automation/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "23b62d4e4dab07dccda851cfe50f6c6afb705a3b",
"commit": "587d1b203f9b9f0a2729e846f37ad7883971ad49",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"autorest": "3.9.7",
"use": [
"@autorest/python@6.2.7",
"@autorest/modelerfour@4.24.3"
"@autorest/python@6.7.1",
"@autorest/modelerfour@4.26.2"
],
"autorest_command": "autorest specification/automation/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/automation/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"readme": "specification/automation/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
NodeReportsOperations,
ObjectDataTypesOperations,
Operations,
PowerShell72ModuleOperations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
Python2PackageOperations,
Expand Down Expand Up @@ -149,6 +150,8 @@ class AutomationClient(
:vartype object_data_types: azure.mgmt.automation.operations.ObjectDataTypesOperations
:ivar fields: FieldsOperations operations
:vartype fields: azure.mgmt.automation.operations.FieldsOperations
:ivar power_shell72_module: PowerShell72ModuleOperations operations
:vartype power_shell72_module: azure.mgmt.automation.operations.PowerShell72ModuleOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.automation.operations.Operations
:ivar python2_package: Python2PackageOperations operations
Expand Down Expand Up @@ -187,6 +190,8 @@ class AutomationClient(
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call. Required.
:type subscription_id: str
:param module_name: The name of module. Required.
:type module_name: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand All @@ -197,11 +202,14 @@ def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
module_name: str,
base_url: str = "https://management.azure.com",
**kwargs: Any
) -> None:
self._config = AutomationClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
self._config = AutomationClientConfiguration(
credential=credential, subscription_id=subscription_id, module_name=module_name, **kwargs
)
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
Expand Down Expand Up @@ -269,6 +277,9 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.fields = FieldsOperations(self._client, self._config, self._serialize, self._deserialize)
self.power_shell72_module = PowerShell72ModuleOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.python2_package = Python2PackageOperations(self._client, self._config, self._serialize, self._deserialize)
self.python3_package = Python3PackageOperations(self._client, self._config, self._serialize, self._deserialize)
Expand Down Expand Up @@ -321,5 +332,5 @@ def __enter__(self) -> "AutomationClient":
self._client.__enter__()
return self

def __exit__(self, *exc_details) -> None:
def __exit__(self, *exc_details: Any) -> None:
self._client.__exit__(*exc_details)
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,22 @@ class AutomationClientConfiguration(Configuration): # pylint: disable=too-many-
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call. Required.
:type subscription_id: str
:param module_name: The name of module. Required.
:type module_name: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
def __init__(self, credential: "TokenCredential", subscription_id: str, module_name: str, **kwargs: Any) -> None:
super(AutomationClientConfiguration, self).__init__(**kwargs)
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if module_name is None:
raise ValueError("Parameter 'module_name' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.module_name = module_name
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-automation/{}".format(VERSION))
self._configure(**kwargs)
Expand Down
Loading