-
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] azure-kusto/resource-manager (#3391)
* [AutoPR azure-kusto/resource-manager] Kusto: Added more features such as: database operations, check cluste… (#3380) * Generated from 35fbdcbfa9cd33cc087f79a82d53437ef73ccebb readme file syntax fixes * Generated from 5ecff7e5eecd7a1840007d132d109bcc51850407 fixed ListSkusByResource operation id * Generated from 9829f1641cc48ab6e8a500df5f783bc98f0644c8 change "capacity" value in examples from null to 2 * Packaging update of azure-mgmt-kusto * 0.2.0
- Loading branch information
1 parent
17f3d57
commit 211bc96
Showing
57 changed files
with
3,135 additions
and
53 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
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
50 changes: 50 additions & 0 deletions
50
azure-mgmt-kusto/azure/mgmt/kusto/models/azure_capacity.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,50 @@ | ||
# 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 AzureCapacity(Model): | ||
"""AzureCapacity. | ||
All required parameters must be populated in order to send to Azure. | ||
:param scale_type: Required. Scale type. Possible values include: | ||
'automatic', 'manual', 'none' | ||
:type scale_type: str or ~azure.mgmt.kusto.models.AzureScaleType | ||
:param minimum: Required. Minimum allowed capacity. | ||
:type minimum: int | ||
:param maximum: Required. Maximum allowed capacity. | ||
:type maximum: int | ||
:param default: Required. The default capacity that would be used. | ||
:type default: int | ||
""" | ||
|
||
_validation = { | ||
'scale_type': {'required': True}, | ||
'minimum': {'required': True}, | ||
'maximum': {'required': True}, | ||
'default': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'scale_type': {'key': 'scaleType', 'type': 'str'}, | ||
'minimum': {'key': 'minimum', 'type': 'int'}, | ||
'maximum': {'key': 'maximum', 'type': 'int'}, | ||
'default': {'key': 'default', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AzureCapacity, self).__init__(**kwargs) | ||
self.scale_type = kwargs.get('scale_type', None) | ||
self.minimum = kwargs.get('minimum', None) | ||
self.maximum = kwargs.get('maximum', None) | ||
self.default = kwargs.get('default', None) |
50 changes: 50 additions & 0 deletions
50
azure-mgmt-kusto/azure/mgmt/kusto/models/azure_capacity_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,50 @@ | ||
# 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 AzureCapacity(Model): | ||
"""AzureCapacity. | ||
All required parameters must be populated in order to send to Azure. | ||
:param scale_type: Required. Scale type. Possible values include: | ||
'automatic', 'manual', 'none' | ||
:type scale_type: str or ~azure.mgmt.kusto.models.AzureScaleType | ||
:param minimum: Required. Minimum allowed capacity. | ||
:type minimum: int | ||
:param maximum: Required. Maximum allowed capacity. | ||
:type maximum: int | ||
:param default: Required. The default capacity that would be used. | ||
:type default: int | ||
""" | ||
|
||
_validation = { | ||
'scale_type': {'required': True}, | ||
'minimum': {'required': True}, | ||
'maximum': {'required': True}, | ||
'default': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'scale_type': {'key': 'scaleType', 'type': 'str'}, | ||
'minimum': {'key': 'minimum', 'type': 'int'}, | ||
'maximum': {'key': 'maximum', 'type': 'int'}, | ||
'default': {'key': 'default', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, *, scale_type, minimum: int, maximum: int, default: int, **kwargs) -> None: | ||
super(AzureCapacity, self).__init__(**kwargs) | ||
self.scale_type = scale_type | ||
self.minimum = minimum | ||
self.maximum = maximum | ||
self.default = default |
36 changes: 36 additions & 0 deletions
36
azure-mgmt-kusto/azure/mgmt/kusto/models/azure_resource_sku.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,36 @@ | ||
# 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 AzureResourceSku(Model): | ||
"""AzureResourceSku. | ||
:param resource_type: Resource Namespace and Type. | ||
:type resource_type: str | ||
:param sku: The SKU details. | ||
:type sku: ~azure.mgmt.kusto.models.AzureSku | ||
:param capacity: The SKU capacity. | ||
:type capacity: ~azure.mgmt.kusto.models.AzureCapacity | ||
""" | ||
|
||
_attribute_map = { | ||
'resource_type': {'key': 'resourceType', 'type': 'str'}, | ||
'sku': {'key': 'sku', 'type': 'AzureSku'}, | ||
'capacity': {'key': 'capacity', 'type': 'AzureCapacity'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AzureResourceSku, self).__init__(**kwargs) | ||
self.resource_type = kwargs.get('resource_type', None) | ||
self.sku = kwargs.get('sku', None) | ||
self.capacity = kwargs.get('capacity', None) |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-kusto/azure/mgmt/kusto/models/azure_resource_sku_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 AzureResourceSkuPaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`AzureResourceSku <azure.mgmt.kusto.models.AzureResourceSku>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[AzureResourceSku]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(AzureResourceSkuPaged, self).__init__(*args, **kwargs) |
Oops, something went wrong.