This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
from Azure/azure-rest-api-specs#9269 + Sku patch
- Loading branch information
Showing
8 changed files
with
153 additions
and
6 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
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 | ||
# -------------------------------------------------------------------------- | ||
# 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 Quota(Model): | ||
"""Subscription quotas. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar hosts_remaining: Remaining hosts quota by sku type | ||
:vartype hosts_remaining: dict[str, int] | ||
:param quota_enabled: Host quota is active for current subscription. | ||
Possible values include: 'Enabled', 'Disabled' | ||
:type quota_enabled: str or ~vendored_sdks.models.QuotaEnabled | ||
""" | ||
|
||
_validation = { | ||
'hosts_remaining': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'hosts_remaining': {'key': 'hostsRemaining', 'type': '{int}'}, | ||
'quota_enabled': {'key': 'quotaEnabled', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(Quota, self).__init__(**kwargs) | ||
self.hosts_remaining = None | ||
self.quota_enabled = kwargs.get('quota_enabled', 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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 Quota(Model): | ||
"""Subscription quotas. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar hosts_remaining: Remaining hosts quota by sku type | ||
:vartype hosts_remaining: dict[str, int] | ||
:param quota_enabled: Host quota is active for current subscription. | ||
Possible values include: 'Enabled', 'Disabled' | ||
:type quota_enabled: str or ~vendored_sdks.models.QuotaEnabled | ||
""" | ||
|
||
_validation = { | ||
'hosts_remaining': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'hosts_remaining': {'key': 'hostsRemaining', 'type': '{int}'}, | ||
'quota_enabled': {'key': 'quotaEnabled', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, quota_enabled=None, **kwargs) -> None: | ||
super(Quota, self).__init__(**kwargs) | ||
self.hosts_remaining = None | ||
self.quota_enabled = quota_enabled |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh -e | ||
npm install -g autorest | ||
npm install -g oav --unsafe-perm=true --allow-root | ||
apt-get update | ||
apt-get install libunwind-dev -y |
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ spec=/azure-rest-api-specs/specification/vmwarevirtustream/resource-manager/Micr | |
autorest --input-file=$spec --azure-validator --openapi-type=arm | ||
oav validate-spec $spec -p | ||
oav validate-example $spec -p | ||
rm -rf azext_vmware/vendored_sdks/ | ||
autorest --input-file=$spec --python --output-folder=azext_vmware --namespace=vendored_sdks --azure-arm=true --override-client-name=VirtustreamClient [email protected]/autorest.python@~3.0.56 |