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-maintenance-2021-10-25-78257 #21403

Merged
merged 3 commits into from
Nov 24, 2021
Merged
Show file tree
Hide file tree
Changes from 2 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
9 changes: 9 additions & 0 deletions sdk/maintenance/azure-mgmt-maintenance/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Release History

## 2.1.0b1 (2021-10-25)

**Features**

- Model MaintenanceConfiguration has a new parameter install_patches
- Added operation ConfigurationAssignmentsOperations.get
- Added operation ConfigurationAssignmentsOperations.get_parent
- Added operation group ConfigurationAssignmentsWithinSubscriptionOperations

## 2.0.0 (2021-05-08)

**Breaking changes**
Expand Down
11 changes: 7 additions & 4 deletions sdk/maintenance/azure-mgmt-maintenance/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.3.0",
"use": "@autorest/[email protected]",
"commit": "6300f518091891b00c993e538dc2d282c9b814de",
"autorest": "3.4.5",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "f4c77149bdbc236d428576d806690a954e4bb0aa",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/maintenance/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.3.0",
"autorest_command": "autorest specification/maintenance/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/[email protected] --version=3.4.5",
"readme": "specification/maintenance/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-05-01"
self.api_version = "2021-09-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-maintenance/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from .operations import MaintenanceConfigurationsOperations
from .operations import MaintenanceConfigurationsForResourceGroupOperations
from .operations import ApplyUpdateForResourceGroupOperations
from .operations import ConfigurationAssignmentsWithinSubscriptionOperations
from .operations import Operations
from .operations import UpdatesOperations
from . import models
Expand All @@ -45,6 +46,8 @@ class MaintenanceManagementClient(object):
:vartype maintenance_configurations_for_resource_group: azure.mgmt.maintenance.operations.MaintenanceConfigurationsForResourceGroupOperations
:ivar apply_update_for_resource_group: ApplyUpdateForResourceGroupOperations operations
:vartype apply_update_for_resource_group: azure.mgmt.maintenance.operations.ApplyUpdateForResourceGroupOperations
:ivar configuration_assignments_within_subscription: ConfigurationAssignmentsWithinSubscriptionOperations operations
:vartype configuration_assignments_within_subscription: azure.mgmt.maintenance.operations.ConfigurationAssignmentsWithinSubscriptionOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.maintenance.operations.Operations
:ivar updates: UpdatesOperations operations
Expand Down Expand Up @@ -86,6 +89,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.apply_update_for_resource_group = ApplyUpdateForResourceGroupOperations(
self._client, self._config, self._serialize, self._deserialize)
self.configuration_assignments_within_subscription = ConfigurationAssignmentsWithinSubscriptionOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.updates = UpdatesOperations(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-05-01",
"total_api_version_list": ["2021-05-01"],
"chosen_version": "2021-09-01-preview",
"total_api_version_list": ["2021-09-01-preview"],
"client": {
"name": "MaintenanceManagementClient",
"filename": "_maintenance_management_client",
Expand Down Expand Up @@ -104,6 +104,7 @@
"maintenance_configurations": "MaintenanceConfigurationsOperations",
"maintenance_configurations_for_resource_group": "MaintenanceConfigurationsForResourceGroupOperations",
"apply_update_for_resource_group": "ApplyUpdateForResourceGroupOperations",
"configuration_assignments_within_subscription": "ConfigurationAssignmentsWithinSubscriptionOperations",
"operations": "Operations",
"updates": "UpdatesOperations"
}
Expand Down
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 = "2.0.0"
VERSION = "2.1.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-05-01"
self.api_version = "2021-09-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-maintenance/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from .operations import MaintenanceConfigurationsOperations
from .operations import MaintenanceConfigurationsForResourceGroupOperations
from .operations import ApplyUpdateForResourceGroupOperations
from .operations import ConfigurationAssignmentsWithinSubscriptionOperations
from .operations import Operations
from .operations import UpdatesOperations
from .. import models
Expand All @@ -43,6 +44,8 @@ class MaintenanceManagementClient(object):
:vartype maintenance_configurations_for_resource_group: azure.mgmt.maintenance.aio.operations.MaintenanceConfigurationsForResourceGroupOperations
:ivar apply_update_for_resource_group: ApplyUpdateForResourceGroupOperations operations
:vartype apply_update_for_resource_group: azure.mgmt.maintenance.aio.operations.ApplyUpdateForResourceGroupOperations
:ivar configuration_assignments_within_subscription: ConfigurationAssignmentsWithinSubscriptionOperations operations
:vartype configuration_assignments_within_subscription: azure.mgmt.maintenance.aio.operations.ConfigurationAssignmentsWithinSubscriptionOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.maintenance.aio.operations.Operations
:ivar updates: UpdatesOperations operations
Expand Down Expand Up @@ -83,6 +86,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.apply_update_for_resource_group = ApplyUpdateForResourceGroupOperations(
self._client, self._config, self._serialize, self._deserialize)
self.configuration_assignments_within_subscription = ConfigurationAssignmentsWithinSubscriptionOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.updates = UpdatesOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from ._maintenance_configurations_operations import MaintenanceConfigurationsOperations
from ._maintenance_configurations_for_resource_group_operations import MaintenanceConfigurationsForResourceGroupOperations
from ._apply_update_for_resource_group_operations import ApplyUpdateForResourceGroupOperations
from ._configuration_assignments_within_subscription_operations import ConfigurationAssignmentsWithinSubscriptionOperations
from ._operations import Operations
from ._updates_operations import UpdatesOperations

Expand All @@ -22,6 +23,7 @@
'MaintenanceConfigurationsOperations',
'MaintenanceConfigurationsForResourceGroupOperations',
'ApplyUpdateForResourceGroupOperations',
'ConfigurationAssignmentsWithinSubscriptionOperations',
'Operations',
'UpdatesOperations',
]
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
def list(
self,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ListApplyUpdate"]:
"""Get Configuration records within a subscription and resource group.

Expand All @@ -62,7 +62,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def get_parent(
resource_type: str,
resource_name: str,
apply_update_name: str,
**kwargs
**kwargs: Any
) -> "_models.ApplyUpdate":
"""Track Updates to resource with parent.

Expand Down Expand Up @@ -80,7 +80,7 @@ async def get_parent(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -129,7 +129,7 @@ async def get(
resource_type: str,
resource_name: str,
apply_update_name: str,
**kwargs
**kwargs: Any
) -> "_models.ApplyUpdate":
"""Track Updates to resource.

Expand All @@ -155,7 +155,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -203,7 +203,7 @@ async def create_or_update_parent(
resource_parent_name: str,
resource_type: str,
resource_name: str,
**kwargs
**kwargs: Any
) -> "_models.ApplyUpdate":
"""Apply Updates to resource with parent.

Expand Down Expand Up @@ -231,7 +231,7 @@ async def create_or_update_parent(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -278,7 +278,7 @@ async def create_or_update(
provider_name: str,
resource_type: str,
resource_name: str,
**kwargs
**kwargs: Any
) -> "_models.ApplyUpdate":
"""Apply Updates to resource.

Expand All @@ -302,7 +302,7 @@ async def create_or_update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -343,7 +343,7 @@ async def create_or_update(

def list(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ListApplyUpdate"]:
"""Get Configuration records within a subscription.

Expand All @@ -359,7 +359,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Loading