-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR signalr/resource-manager] Add api to list usages of Azure Sig…
…nalR resources (#3020) * Generated from 6ec3df9b7b3881359ed9687408ab6f6bd0fefed7 add api to list usages of Azure SignalR resources * Generated from 6ec3df9b7b3881359ed9687408ab6f6bd0fefed7 add api to list usages of Azure SignalR resources
- Loading branch information
1 parent
72092b7
commit 292ae2a
Showing
11 changed files
with
334 additions
and
33 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
47 changes: 47 additions & 0 deletions
47
azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rusage.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,47 @@ | ||
# 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 SignalRUsage(Model): | ||
"""Object that describes a specific usage of SignalR resources. | ||
:param id: Fully qualified ARM resource id | ||
:type id: str | ||
:param current_value: Current value for the usage quota. | ||
:type current_value: long | ||
:param limit: The maximum permitted value for the usage quota. If there is | ||
no limit, this value will be -1. | ||
:type limit: long | ||
:param name: Localizable String object containing the name and a localized | ||
value. | ||
:type name: ~azure.mgmt.signalr.models.SignalRUsageName | ||
:param unit: Representing the units of the usage quota. Possible values | ||
are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. | ||
:type unit: str | ||
""" | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'current_value': {'key': 'currentValue', 'type': 'long'}, | ||
'limit': {'key': 'limit', 'type': 'long'}, | ||
'name': {'key': 'name', 'type': 'SignalRUsageName'}, | ||
'unit': {'key': 'unit', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(SignalRUsage, self).__init__(**kwargs) | ||
self.id = kwargs.get('id', None) | ||
self.current_value = kwargs.get('current_value', None) | ||
self.limit = kwargs.get('limit', None) | ||
self.name = kwargs.get('name', None) | ||
self.unit = kwargs.get('unit', None) |
32 changes: 32 additions & 0 deletions
32
azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rusage_name.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 SignalRUsageName(Model): | ||
"""Localizable String object containing the name and a localized value. | ||
:param value: The indentifier of the usage. | ||
:type value: str | ||
:param localized_value: Localized name of the usage. | ||
:type localized_value: str | ||
""" | ||
|
||
_attribute_map = { | ||
'value': {'key': 'value', 'type': 'str'}, | ||
'localized_value': {'key': 'localizedValue', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(SignalRUsageName, self).__init__(**kwargs) | ||
self.value = kwargs.get('value', None) | ||
self.localized_value = kwargs.get('localized_value', None) |
32 changes: 32 additions & 0 deletions
32
azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rusage_name_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,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 SignalRUsageName(Model): | ||
"""Localizable String object containing the name and a localized value. | ||
:param value: The indentifier of the usage. | ||
:type value: str | ||
:param localized_value: Localized name of the usage. | ||
:type localized_value: str | ||
""" | ||
|
||
_attribute_map = { | ||
'value': {'key': 'value', 'type': 'str'}, | ||
'localized_value': {'key': 'localizedValue', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, value: str=None, localized_value: str=None, **kwargs) -> None: | ||
super(SignalRUsageName, self).__init__(**kwargs) | ||
self.value = value | ||
self.localized_value = localized_value |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rusage_paged.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,27 @@ | ||
# 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.paging import Paged | ||
|
||
|
||
class SignalRUsagePaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`SignalRUsage <azure.mgmt.signalr.models.SignalRUsage>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[SignalRUsage]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(SignalRUsagePaged, self).__init__(*args, **kwargs) |
47 changes: 47 additions & 0 deletions
47
azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rusage_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,47 @@ | ||
# 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 SignalRUsage(Model): | ||
"""Object that describes a specific usage of SignalR resources. | ||
:param id: Fully qualified ARM resource id | ||
:type id: str | ||
:param current_value: Current value for the usage quota. | ||
:type current_value: long | ||
:param limit: The maximum permitted value for the usage quota. If there is | ||
no limit, this value will be -1. | ||
:type limit: long | ||
:param name: Localizable String object containing the name and a localized | ||
value. | ||
:type name: ~azure.mgmt.signalr.models.SignalRUsageName | ||
:param unit: Representing the units of the usage quota. Possible values | ||
are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. | ||
:type unit: str | ||
""" | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'current_value': {'key': 'currentValue', 'type': 'long'}, | ||
'limit': {'key': 'limit', 'type': 'long'}, | ||
'name': {'key': 'name', 'type': 'SignalRUsageName'}, | ||
'unit': {'key': 'unit', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, id: str=None, current_value: int=None, limit: int=None, name=None, unit: str=None, **kwargs) -> None: | ||
super(SignalRUsage, self).__init__(**kwargs) | ||
self.id = id | ||
self.current_value = current_value | ||
self.limit = limit | ||
self.name = name | ||
self.unit = unit |
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.