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

[AutoRelease] t2-automation-2022-07-05-46277(Do not merge) #25069

Merged
merged 5 commits into from
Jul 18, 2022
Merged
Show file tree
Hide file tree
Changes from 4 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
40 changes: 40 additions & 0 deletions sdk/automation/azure-mgmt-automation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# Release History

## 1.1.0b2 (2022-07-18)

**Features**

- Added operation HybridRunbookWorkerGroupOperations.create
- Added operation group AutomationClientOperationsMixin
- Added operation group HybridRunbookWorkersOperations
- Added operation group PrivateEndpointConnectionsOperations
- Added operation group PrivateLinkResourcesOperations
- Model AutomationAccount has a new parameter automation_hybrid_service_url
- Model AutomationAccount has a new parameter disable_local_auth
- Model AutomationAccount has a new parameter encryption
- Model AutomationAccount has a new parameter identity
- Model AutomationAccount has a new parameter private_endpoint_connections
- Model AutomationAccount has a new parameter public_network_access
- Model AutomationAccount has a new parameter system_data
- Model AutomationAccountCreateOrUpdateParameters has a new parameter disable_local_auth
- Model AutomationAccountCreateOrUpdateParameters has a new parameter encryption
- Model AutomationAccountCreateOrUpdateParameters has a new parameter identity
- Model AutomationAccountCreateOrUpdateParameters has a new parameter public_network_access
- Model AutomationAccountUpdateParameters has a new parameter disable_local_auth
- Model AutomationAccountUpdateParameters has a new parameter encryption
- Model AutomationAccountUpdateParameters has a new parameter identity
- Model AutomationAccountUpdateParameters has a new parameter public_network_access
- Model HybridRunbookWorker has a new parameter id
- Model HybridRunbookWorker has a new parameter registered_date_time
- Model HybridRunbookWorker has a new parameter system_data
- Model HybridRunbookWorker has a new parameter type
- Model HybridRunbookWorker has a new parameter vm_resource_id
- Model HybridRunbookWorker has a new parameter worker_name
- Model HybridRunbookWorker has a new parameter worker_type
- Model HybridRunbookWorkerGroup has a new parameter system_data
- Model HybridRunbookWorkerGroup has a new parameter type
- Operation DscConfigurationOperations.create_or_update has a new optional and keyword-only parameter content_type
- Operation DscConfigurationOperations.update has a new optional and keyword-only parameter content_type

**Breaking changes**

- Model HybridRunbookWorker no longer has parameter registration_time

## 1.1.0b1 (2021-03-16)

**Features**
Expand Down
1 change: 1 addition & 0 deletions sdk/automation/azure-mgmt-automation/MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ include *.md
include azure/__init__.py
include azure/mgmt/__init__.py
include LICENSE
include azure/mgmt/automation/py.typed
11 changes: 11 additions & 0 deletions sdk/automation/azure-mgmt-automation/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"autorest": "3.7.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "fc2245b8f0fe6f17628e3b5a306b4b150c73cff0",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/automation/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/automation/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
from ._version import VERSION

__version__ = VERSION
__all__ = ['AutomationClient']

try:
from ._patch import patch_sdk # type: ignore
patch_sdk()
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
pass
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['AutomationClient']
__all__.extend([p for p in _patch_all if p not in __all__])

_patch_sdk()

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,45 +6,43 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import TYPE_CHECKING
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any

from azure.core.credentials import TokenCredential


class AutomationClientConfiguration(Configuration):
class AutomationClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
"""Configuration for AutomationClient.

Note that all parameters used to create this instance are saved as instance
attributes.

:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
: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
"""

def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
**kwargs # type: Any
):
# type: (...) -> None
credential: "TokenCredential",
subscription_id: 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.")
super(AutomationClientConfiguration, self).__init__(**kwargs)

self.credential = credential
self.subscription_id = subscription_id
Expand All @@ -67,4 +65,4 @@ def _configure(
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
self.authentication_policy = kwargs.get('authentication_policy')
if self.credential and not self.authentication_policy:
self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
"""Customize generated code here.

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""
from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level

def patch_sdk():
"""Do not remove from this file.

`patch_sdk` is a last resort escape hatch that allows you to do customizations
you can't accomplish using the techniques described in
https://aka.ms/azsdk/python/dpcodegen/python/customize
"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# --------------------------------------------------------------------------
# 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 abc import ABC
from typing import TYPE_CHECKING

from azure.core.pipeline.transport import HttpRequest

from ._configuration import AutomationClientConfiguration

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from msrest import Deserializer, Serializer

from azure.core import PipelineClient

def _convert_request(request, files=None):
data = request.content if not files else None
request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data)
if files:
request.set_formdata_body(files)
return request

def _format_url_section(template, **kwargs):
components = template.split("/")
while components:
try:
return template.format(**kwargs)
except KeyError as key:
formatted_components = template.split("/")
components = [
c for c in formatted_components if "{}".format(key.args[0]) not in c
]
template = "/".join(components)

class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""
_client: "PipelineClient"
_config: AutomationClientConfiguration
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.1.0b1"
VERSION = "1.1.0b2"
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,14 @@
# --------------------------------------------------------------------------

from ._automation_client import AutomationClient

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['AutomationClient']
__all__.extend([p for p in _patch_all if p not in __all__])

_patch_sdk()
Loading