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.
test latest spec from Azure/azure-rest-api-specs#6653
- Loading branch information
Showing
14 changed files
with
661 additions
and
195 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/bin/sh -e | ||
# swagger validation | ||
# https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/swagger-checklist.md#validation-tools-for-swagger-checklist | ||
oav validate-spec vmwarevirtustream.json | ||
oav validate-example vmwarevirtustream.json | ||
autorest --input-file=vmwarevirtustream.json --azure-validator --openapi-type=arm | ||
#!/bin/sh | ||
# set -e | ||
# swagger validation | ||
# https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/swagger-checklist.md#validation-tools-for-swagger-checklist | ||
oav validate-spec vmwarevirtustream.json | ||
oav validate-example vmwarevirtustream.json | ||
autorest --input-file=vmwarevirtustream.json --azure-validator --openapi-type=arm | ||
autorest --input-file=vmwarevirtustream.json --python --output-folder=azext_vmware --namespace=vendored_sdks --azure-arm=true --override-client-name=VirtustreamClient [email protected]/autorest.python@~3.0.56 |
465 changes: 306 additions & 159 deletions
465
azext_vmware/tests/latest/recordings/test_vmware.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,38 @@ | ||
# 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 Operation(Model): | ||
"""A REST API operation. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar name: The name of the operation being performed on this particular | ||
object. | ||
:vartype name: str | ||
:ivar display: Contains the localized display information for this | ||
particular operation / action. | ||
:vartype display: ~vendored_sdks.models.OperationDisplay | ||
""" | ||
|
||
_validation = { | ||
'name': {'readonly': True}, | ||
'display': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'display': {'key': 'display', 'type': 'OperationDisplay'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(Operation, self).__init__(**kwargs) | ||
self.name = None | ||
self.display = 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,48 @@ | ||
# 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 OperationDisplay(Model): | ||
"""Contains the localized display information for this particular operation / | ||
action. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar provider: The localized friendly form of the resource provider name. | ||
:vartype provider: str | ||
:ivar resource: The localized friendly form of the resource type related | ||
to this action/operation. | ||
:vartype resource: str | ||
:ivar operation: The localized friendly name for the operation. | ||
:vartype operation: str | ||
:ivar description: The localized friendly description for the operation. | ||
:vartype description: str | ||
""" | ||
|
||
_validation = { | ||
'provider': {'readonly': True}, | ||
'resource': {'readonly': True}, | ||
'operation': {'readonly': True}, | ||
'description': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'provider': {'key': 'provider', 'type': 'str'}, | ||
'resource': {'key': 'resource', 'type': 'str'}, | ||
'operation': {'key': 'operation', 'type': 'str'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(OperationDisplay, self).__init__(**kwargs) | ||
self.provider = None | ||
self.resource = None | ||
self.operation = None | ||
self.description = None |
48 changes: 48 additions & 0 deletions
48
azext_vmware/vendored_sdks/models/operation_display_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,48 @@ | ||
# 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 OperationDisplay(Model): | ||
"""Contains the localized display information for this particular operation / | ||
action. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar provider: The localized friendly form of the resource provider name. | ||
:vartype provider: str | ||
:ivar resource: The localized friendly form of the resource type related | ||
to this action/operation. | ||
:vartype resource: str | ||
:ivar operation: The localized friendly name for the operation. | ||
:vartype operation: str | ||
:ivar description: The localized friendly description for the operation. | ||
:vartype description: str | ||
""" | ||
|
||
_validation = { | ||
'provider': {'readonly': True}, | ||
'resource': {'readonly': True}, | ||
'operation': {'readonly': True}, | ||
'description': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'provider': {'key': 'provider', 'type': 'str'}, | ||
'resource': {'key': 'resource', 'type': 'str'}, | ||
'operation': {'key': 'operation', 'type': 'str'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs) -> None: | ||
super(OperationDisplay, self).__init__(**kwargs) | ||
self.provider = None | ||
self.resource = None | ||
self.operation = None | ||
self.description = None |
Oops, something went wrong.