Skip to content

Commit

Permalink
[AutoRelease] t2-maintenance-2021-10-25-78257 (#21403)
Browse files Browse the repository at this point in the history
* CodeGen from PR 15795 in Azure/azure-rest-api-specs
[Hub Generated] Public private branch 'dev-maintenance-Microsoft.Maintenance-2021-09-01-preview' (#15795)

* Update Maintenance.json

* Update MaintenanceConfigurations_GetForResource_GuestOSPatchLinux.json

* Update MaintenanceConfigurations_GetForResource_GuestOSPatchWindows.json

* version,CHANGELOG

* Update CHANGELOG.md

Co-authored-by: SDKAuto <[email protected]>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Yuchao Yan <[email protected]>
  • Loading branch information
3 people authored Nov 24, 2021
1 parent a0f7f61 commit e81c614
Show file tree
Hide file tree
Showing 32 changed files with 972 additions and 90 deletions.
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-11-23)

**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

0 comments on commit e81c614

Please sign in to comment.