Skip to content

Commit

Permalink
T1 storagecache 2021 02 18 (Azure#16802)
Browse files Browse the repository at this point in the history
* CodeGen from PR 12572 in Azure/azure-rest-api-specs
[Hub Generated] Review request for Microsoft.StorageCache to add version stable/2020-10-01 (Azure#12572)

* Address s360 errors updating fields names to match the RP and add missing field.

* Correct additional s360 errors while breaking changes window is open and correct spelling error found by spell checker.

* test,version,CHANGELOG

* fix changelog and version

* fix

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
  • Loading branch information
00Kai0 and SDKAuto authored Feb 18, 2021
1 parent 34aed9f commit 2104545
Show file tree
Hide file tree
Showing 17 changed files with 1,622 additions and 295 deletions.
29 changes: 29 additions & 0 deletions sdk/storage/azure-mgmt-storagecache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Release History

## 0.4.0 (2021-02-18)

**Features**

- Model StorageTarget has a new parameter system_data
- Model StorageTarget has a new parameter location
- Model ApiOperationDisplay has a new parameter description
- Model NamespaceJunction has a new parameter nfs_access_policy
- Model ApiOperation has a new parameter service_specification
- Model ApiOperation has a new parameter is_data_action
- Model ApiOperation has a new parameter origin
- Model Cache has a new parameter system_data
- Model Cache has a new parameter directory_services_settings
- Model StorageTargetResource has a new parameter system_data
- Model StorageTargetResource has a new parameter location
- Added operation CachesOperations.debug_info
- Added operation group AscOperations
**Breaking changes**
- Parameter target_type of model Nfs3TargetProperties is now required
- Parameter target_type of model UnknownTargetProperties is now required
- Parameter target_type of model StorageTargetProperties is now required
- Parameter target_type of model ClfsTargetProperties is now required
- Model Nfs3TargetProperties no longer has parameter target_base_type
- Model StorageTarget no longer has parameter target_type
- Model UnknownTargetProperties no longer has parameter target_base_type
- Model StorageTargetProperties no longer has parameter target_base_type
- Model ClfsTargetProperties no longer has parameter target_base_type
- Model CacheSecuritySettings has a new signature

## 0.3.0 (2020-03-01)

**Features**
Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/azure-mgmt-storagecache/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure MyService Management Client Library.
This is the Microsoft Azure Storagecache Management 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 [azure sdk python release](https://aka.ms/azsdk/python/all).


# Usage

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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from .operations import Operations
from .operations import SkusOperations
from .operations import UsageModelsOperations
from .operations import AscOperations
from .operations import CachesOperations
from .operations import StorageTargetsOperations
from . import models
Expand All @@ -33,6 +34,8 @@ class StorageCacheManagementClient(SDKClient):
:vartype skus: azure.mgmt.storagecache.operations.SkusOperations
:ivar usage_models: UsageModels operations
:vartype usage_models: azure.mgmt.storagecache.operations.UsageModelsOperations
:ivar asc_operations: AscOperations operations
:vartype asc_operations: azure.mgmt.storagecache.operations.AscOperations
:ivar caches: Caches operations
:vartype caches: azure.mgmt.storagecache.operations.CachesOperations
:ivar storage_targets: StorageTargets operations
Expand All @@ -55,7 +58,7 @@ def __init__(
super(StorageCacheManagementClient, 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 = '2020-03-01'
self.api_version = '2020-10-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -65,6 +68,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.usage_models = UsageModelsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.asc_operations = AscOperations(
self._client, self.config, self._serialize, self._deserialize)
self.caches = CachesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.storage_targets = StorageTargetsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,59 +12,85 @@
try:
from ._models_py3 import ApiOperation
from ._models_py3 import ApiOperationDisplay
from ._models_py3 import ApiOperationPropertiesServiceSpecification
from ._models_py3 import AscOperation
from ._models_py3 import Cache
from ._models_py3 import CacheActiveDirectorySettings
from ._models_py3 import CacheActiveDirectorySettingsCredentials
from ._models_py3 import CacheDirectorySettings
from ._models_py3 import CacheEncryptionSettings
from ._models_py3 import CacheHealth
from ._models_py3 import CacheIdentity
from ._models_py3 import CacheNetworkSettings
from ._models_py3 import CacheSecuritySettings
from ._models_py3 import CacheSku
from ._models_py3 import CacheUpgradeStatus
from ._models_py3 import CacheUsernameDownloadSettings
from ._models_py3 import CacheUsernameDownloadSettingsCredentials
from ._models_py3 import ClfsTarget
from ._models_py3 import ClfsTargetProperties
from ._models_py3 import CloudErrorBody
from ._models_py3 import ErrorResponse
from ._models_py3 import KeyVaultKeyReference
from ._models_py3 import KeyVaultKeyReferenceSourceVault
from ._models_py3 import MetricDimension
from ._models_py3 import MetricSpecification
from ._models_py3 import NamespaceJunction
from ._models_py3 import Nfs3Target
from ._models_py3 import Nfs3TargetProperties
from ._models_py3 import NfsAccessPolicy
from ._models_py3 import NfsAccessRule
from ._models_py3 import ResourceSku
from ._models_py3 import ResourceSkuCapabilities
from ._models_py3 import ResourceSkuLocationInfo
from ._models_py3 import Restriction
from ._models_py3 import StorageTarget
from ._models_py3 import StorageTargetProperties
from ._models_py3 import StorageTargetResource
from ._models_py3 import SystemData
from ._models_py3 import UnknownTarget
from ._models_py3 import UnknownTargetProperties
from ._models_py3 import UsageModel
from ._models_py3 import UsageModelDisplay
except (SyntaxError, ImportError):
from ._models import ApiOperation
from ._models import ApiOperationDisplay
from ._models import ApiOperationPropertiesServiceSpecification
from ._models import AscOperation
from ._models import Cache
from ._models import CacheActiveDirectorySettings
from ._models import CacheActiveDirectorySettingsCredentials
from ._models import CacheDirectorySettings
from ._models import CacheEncryptionSettings
from ._models import CacheHealth
from ._models import CacheIdentity
from ._models import CacheNetworkSettings
from ._models import CacheSecuritySettings
from ._models import CacheSku
from ._models import CacheUpgradeStatus
from ._models import CacheUsernameDownloadSettings
from ._models import CacheUsernameDownloadSettingsCredentials
from ._models import ClfsTarget
from ._models import ClfsTargetProperties
from ._models import CloudErrorBody
from ._models import ErrorResponse
from ._models import KeyVaultKeyReference
from ._models import KeyVaultKeyReferenceSourceVault
from ._models import MetricDimension
from ._models import MetricSpecification
from ._models import NamespaceJunction
from ._models import Nfs3Target
from ._models import Nfs3TargetProperties
from ._models import NfsAccessPolicy
from ._models import NfsAccessRule
from ._models import ResourceSku
from ._models import ResourceSkuCapabilities
from ._models import ResourceSkuLocationInfo
from ._models import Restriction
from ._models import StorageTarget
from ._models import StorageTargetProperties
from ._models import StorageTargetResource
from ._models import SystemData
from ._models import UnknownTarget
from ._models import UnknownTargetProperties
from ._models import UsageModel
Expand All @@ -75,40 +101,59 @@
from ._paged_models import StorageTargetPaged
from ._paged_models import UsageModelPaged
from ._storage_cache_management_client_enums import (
MetricAggregationType,
CacheIdentityType,
CreatedByType,
HealthStateType,
ProvisioningStateType,
FirmwareStatusType,
StorageTargetType,
NfsAccessRuleScope,
NfsAccessRuleAccess,
DomainJoinedType,
UsernameSource,
UsernameDownloadedType,
ReasonCode,
)

__all__ = [
'ApiOperation',
'ApiOperationDisplay',
'ApiOperationPropertiesServiceSpecification',
'AscOperation',
'Cache',
'CacheActiveDirectorySettings',
'CacheActiveDirectorySettingsCredentials',
'CacheDirectorySettings',
'CacheEncryptionSettings',
'CacheHealth',
'CacheIdentity',
'CacheNetworkSettings',
'CacheSecuritySettings',
'CacheSku',
'CacheUpgradeStatus',
'CacheUsernameDownloadSettings',
'CacheUsernameDownloadSettingsCredentials',
'ClfsTarget',
'ClfsTargetProperties',
'CloudErrorBody',
'ErrorResponse',
'KeyVaultKeyReference',
'KeyVaultKeyReferenceSourceVault',
'MetricDimension',
'MetricSpecification',
'NamespaceJunction',
'Nfs3Target',
'Nfs3TargetProperties',
'NfsAccessPolicy',
'NfsAccessRule',
'ResourceSku',
'ResourceSkuCapabilities',
'ResourceSkuLocationInfo',
'Restriction',
'StorageTarget',
'StorageTargetProperties',
'StorageTargetResource',
'SystemData',
'UnknownTarget',
'UnknownTargetProperties',
'UsageModel',
Expand All @@ -118,10 +163,16 @@
'UsageModelPaged',
'CachePaged',
'StorageTargetPaged',
'MetricAggregationType',
'CacheIdentityType',
'CreatedByType',
'HealthStateType',
'ProvisioningStateType',
'FirmwareStatusType',
'StorageTargetType',
'NfsAccessRuleScope',
'NfsAccessRuleAccess',
'DomainJoinedType',
'UsernameSource',
'UsernameDownloadedType',
'ReasonCode',
]
Loading

0 comments on commit 2104545

Please sign in to comment.