-
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] Swagger completeness for Redis Cache (#…
…2055) * Generated from adccbe159e32ef8112a0aadccc07d3c6c5390d11 Name change for notification * Generated from fdcb7d3837ae11e3fe8af22e28dadb032c498672 Fixing code review comments in PR
- Loading branch information
1 parent
f262d80
commit a05884c
Showing
9 changed files
with
302 additions
and
28 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
32 changes: 32 additions & 0 deletions
32
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,32 @@ | ||
# 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 name availability check. | ||
:param name: Resource name. | ||
:type name: str | ||
:param type: Resource type. | ||
:type type: str | ||
""" | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, name=None, type=None): | ||
super(CheckNameAvailabilityParameters, self).__init__() | ||
self.name = name | ||
self.type = type |
39 changes: 39 additions & 0 deletions
39
azure-mgmt-redis/azure/mgmt/redis/models/notification_list_response.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,39 @@ | ||
# 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 NotificationListResponse(Model): | ||
"""The response of listUpgradeNotifications. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:param value: List of all notifications. | ||
:type value: list[~azure.mgmt.redis.models.UpgradeNotification] | ||
:ivar next_link: Link for next set of notifications. | ||
:vartype next_link: str | ||
""" | ||
|
||
_validation = { | ||
'next_link': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'value': {'key': 'value', 'type': '[UpgradeNotification]'}, | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, value=None): | ||
super(NotificationListResponse, self).__init__() | ||
self.value = value | ||
self.next_link = None |
45 changes: 45 additions & 0 deletions
45
azure-mgmt-redis/azure/mgmt/redis/models/upgrade_notification.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,45 @@ | ||
# 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 UpgradeNotification(Model): | ||
"""Properties of upgrade notification. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar name: Name of upgrade notification. | ||
:vartype name: str | ||
:ivar timestamp: Timestamp when upgrade notification occured. | ||
:vartype timestamp: datetime | ||
:ivar upsell_notification: Details about this upgrade notification | ||
:vartype upsell_notification: dict[str, str] | ||
""" | ||
|
||
_validation = { | ||
'name': {'readonly': True}, | ||
'timestamp': {'readonly': True}, | ||
'upsell_notification': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, | ||
'upsell_notification': {'key': 'upsellNotification', 'type': '{str}'}, | ||
} | ||
|
||
def __init__(self): | ||
super(UpgradeNotification, self).__init__() | ||
self.name = None | ||
self.timestamp = None | ||
self.upsell_notification = None |
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
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
Oops, something went wrong.