Skip to content

Commit

Permalink
Advisor (#10304)
Browse files Browse the repository at this point in the history
* Generated from 8fc2475331cc567917a55ac372c0a29828963df6

Merge branch 'dev-advisor-Microsoft.Advisor-2020-01-01' of https://github.com/mudit794/azure-rest-api-specs into dev-advisor-Microsoft.Advisor-2020-01-01

* add parameter for RP advisor

* Packaging update of azure-mgmt-advisor

* Update CHANGELOG.md

* Update version.py

* just triggering ci

* Update CHANGELOG.md

Co-authored-by: SDK Automation <sdkautomation@microsoft.com>
Co-authored-by: Azure SDK Bot <aspysdk2@microsoft.com>
Co-authored-by: Zim Kalinowski <zikalino@microsoft.com>
  • Loading branch information
4 people authored Mar 19, 2020
1 parent 6350dcb commit 2d4f6b3
Show file tree
Hide file tree
Showing 14 changed files with 368 additions and 174 deletions.
10 changes: 10 additions & 0 deletions sdk/advisor/azure-mgmt-advisor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Release History

## 4.0.0 (2020-03-14)

**Features**

- Model ResourceRecommendationBase has a new parameter resource_metadata

**Breaking changes**

- Model ConfigData has a new signature

## 3.0.0 (2019-10-24)

**Features**
Expand Down
30 changes: 11 additions & 19 deletions sdk/advisor/azure-mgmt-advisor/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
## Microsoft Azure SDK for Python
# Microsoft Azure SDK for Python

This is the Microsoft Azure Advisor Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)

Azure Resource Manager (ARM) is the next generation of management APIs
that replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.
# Usage

For the older Azure Service Management (ASM) libraries, see
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
library.

For a more complete set of Azure libraries, see the
[azure](https://pypi.python.org/pypi/azure) bundle package.

## Usage

For code examples, see
[Advisor](https://docs.microsoft.com/python/api/overview/azure/advisor)
For code examples, see [Advisor](https://docs.microsoft.com/python/api/overview/azure/advisor)
on docs.microsoft.com.

## Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in
the [Issues](https://github.com/Azure/azure-sdk-for-python/issues)
# Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.

![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-advisor%2FREADME.png)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-advisor%2FREADME.png)
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(
super(AdvisorManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2017-04-19'
self.api_version = '2020-01-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,30 @@
# --------------------------------------------------------------------------

try:
from ._models_py3 import ArmErrorResponse, ArmErrorResponseException
from ._models_py3 import ARMErrorResponseBody
from ._models_py3 import ConfigData
from ._models_py3 import ConfigDataProperties
from ._models_py3 import DigestConfig
from ._models_py3 import MetadataEntity
from ._models_py3 import MetadataSupportedValueDetail
from ._models_py3 import OperationDisplayInfo
from ._models_py3 import OperationEntity
from ._models_py3 import Resource
from ._models_py3 import ResourceMetadata
from ._models_py3 import ResourceRecommendationBase
from ._models_py3 import ShortDescription
from ._models_py3 import SuppressionContract
except (SyntaxError, ImportError):
from ._models import ArmErrorResponse, ArmErrorResponseException
from ._models import ARMErrorResponseBody
from ._models import ConfigData
from ._models import ConfigDataProperties
from ._models import DigestConfig
from ._models import MetadataEntity
from ._models import MetadataSupportedValueDetail
from ._models import OperationDisplayInfo
from ._models import OperationEntity
from ._models import Resource
from ._models import ResourceMetadata
from ._models import ResourceRecommendationBase
from ._models import ShortDescription
from ._models import SuppressionContract
Expand All @@ -40,20 +44,24 @@
from ._paged_models import SuppressionContractPaged
from ._advisor_management_client_enums import (
Scenario,
CpuThreshold,
Category,
DigestConfigState,
Impact,
Risk,
)

__all__ = [
'ArmErrorResponse', 'ArmErrorResponseException',
'ARMErrorResponseBody',
'ConfigData',
'ConfigDataProperties',
'DigestConfig',
'MetadataEntity',
'MetadataSupportedValueDetail',
'OperationDisplayInfo',
'OperationEntity',
'Resource',
'ResourceMetadata',
'ResourceRecommendationBase',
'ShortDescription',
'SuppressionContract',
Expand All @@ -63,7 +71,9 @@
'OperationEntityPaged',
'SuppressionContractPaged',
'Scenario',
'CpuThreshold',
'Category',
'DigestConfigState',
'Impact',
'Risk',
]
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ class Scenario(str, Enum):
alerts = "Alerts"


class CpuThreshold(str, Enum):

five = "5"
one_zero = "10"
one_five = "15"
two_zero = "20"


class Category(str, Enum):

high_availability = "HighAvailability"
Expand All @@ -26,6 +34,12 @@ class Category(str, Enum):
operational_excellence = "OperationalExcellence"


class DigestConfigState(str, Enum):

active = "Active"
disabled = "Disabled"


class Impact(str, Enum):

high = "High"
Expand Down
Loading

0 comments on commit 2d4f6b3

Please sign in to comment.