-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR] redis/resource-manager (#2091)
* [AutoPR redis/resource-manager] Swagger completeness for Redis Cache (#2055) * Generated from adccbe159e32ef8112a0aadccc07d3c6c5390d11 Name change for notification * Generated from fdcb7d3837ae11e3fe8af22e28dadb032c498672 Fixing code review comments in PR * [AutoPR redis/resource-manager] Improve redis Swagger. (#2485) * Generated from d7abeaa6ae57648be6ecde4bc11c226d9c85166c Improve redis Swagger. Documenting list all patchSchedules to fix #2968. Documenting the CheckNameAvailability.type property better to fix #2967. And use a realistic timespan value in PatchSchedule examples. * Generated from 4f7e77b990601e0cc00b69a5870b50157525364d Implementing suggested usability improvement for redis cache: by not modelling CheckNameAvailabilityParameters.resourceType as a string, it can instead be treated as a cosntant, so that the parameter becomes optional! * Generated from 44e3bae7be1e5d63ad1531c7710d586f47405970 Backport to the Microsoft.cache/redis 2017-10-01 swagger (from 2018-03-01). * [AutoPR redis/resource-manager] typo: redis/resource-manager/Microsoft.Cache (#3984) * Generated from 5c7c95d799e03d2c657ef9b8864b02e26f895949 typo: redis/resource-manager/Microsoft.Cache - subid -> subscriptionId - properites -> properties - occured -> occurred - Trim trailing space * Packaging update of azure-mgmt-redis * Rebuild by #2091 * 6.0.0 * Redis packaging * Record simple tests
- Loading branch information
1 parent
84bfbde
commit 9d8931b
Showing
65 changed files
with
2,158 additions
and
696 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
include *.rst | ||
include azure/__init__.py | ||
include azure/mgmt/__init__.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
azure-mgmt-redis/azure/mgmt/redis/models/check_name_availability_parameters.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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 msrest.serialization import Model | ||
|
||
|
||
class CheckNameAvailabilityParameters(Model): | ||
"""Parameters body to pass for resource name availability check. | ||
All required parameters must be populated in order to send to Azure. | ||
:param name: Required. Resource name. | ||
:type name: str | ||
:param type: Required. Resource type. The only legal value of this | ||
property for checking redis cache name availability is | ||
'Microsoft.Cache/redis'. | ||
:type type: str | ||
""" | ||
|
||
_validation = { | ||
'name': {'required': True}, | ||
'type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(CheckNameAvailabilityParameters, self).__init__(**kwargs) | ||
self.name = kwargs.get('name', None) | ||
self.type = kwargs.get('type', None) |
41 changes: 41 additions & 0 deletions
41
azure-mgmt-redis/azure/mgmt/redis/models/check_name_availability_parameters_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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 msrest.serialization import Model | ||
|
||
|
||
class CheckNameAvailabilityParameters(Model): | ||
"""Parameters body to pass for resource name availability check. | ||
All required parameters must be populated in order to send to Azure. | ||
:param name: Required. Resource name. | ||
:type name: str | ||
:param type: Required. Resource type. The only legal value of this | ||
property for checking redis cache name availability is | ||
'Microsoft.Cache/redis'. | ||
:type type: str | ||
""" | ||
|
||
_validation = { | ||
'name': {'required': True}, | ||
'type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, name: str, type: str, **kwargs) -> None: | ||
super(CheckNameAvailabilityParameters, self).__init__(**kwargs) | ||
self.name = name | ||
self.type = type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
azure-mgmt-redis/azure/mgmt/redis/models/export_rdb_parameters_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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 msrest.serialization import Model | ||
|
||
|
||
class ExportRDBParameters(Model): | ||
"""Parameters for Redis export operation. | ||
All required parameters must be populated in order to send to Azure. | ||
:param format: File format. | ||
:type format: str | ||
:param prefix: Required. Prefix to use for exported files. | ||
:type prefix: str | ||
:param container: Required. Container name to export to. | ||
:type container: str | ||
""" | ||
|
||
_validation = { | ||
'prefix': {'required': True}, | ||
'container': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'format': {'key': 'format', 'type': 'str'}, | ||
'prefix': {'key': 'prefix', 'type': 'str'}, | ||
'container': {'key': 'container', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, prefix: str, container: str, format: str=None, **kwargs) -> None: | ||
super(ExportRDBParameters, self).__init__(**kwargs) | ||
self.format = format | ||
self.prefix = prefix | ||
self.container = container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
azure-mgmt-redis/azure/mgmt/redis/models/import_rdb_parameters_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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 msrest.serialization import Model | ||
|
||
|
||
class ImportRDBParameters(Model): | ||
"""Parameters for Redis import operation. | ||
All required parameters must be populated in order to send to Azure. | ||
:param format: File format. | ||
:type format: str | ||
:param files: Required. files to import. | ||
:type files: list[str] | ||
""" | ||
|
||
_validation = { | ||
'files': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'format': {'key': 'format', 'type': 'str'}, | ||
'files': {'key': 'files', 'type': '[str]'}, | ||
} | ||
|
||
def __init__(self, *, files, format: str=None, **kwargs) -> None: | ||
super(ImportRDBParameters, self).__init__(**kwargs) | ||
self.format = format | ||
self.files = files |
Oops, something went wrong.