-
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] marketplaceordering/resource-manager (#3969)
* [AutoPR marketplaceordering/resource-manager] typo: marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering (#3952) * Generated from 6085607286ab258abaf5d9f5d3aa774c92a9af81 typo: marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering - reponse -> response * Packaging update of azure-mgmt-marketplaceordering * [AutoPR marketplaceordering/resource-manager] Add missing MarketplaceOrdering operations to swagger (#4485) * Generated from fc54df16998b34ed493122f98c184b67444a6995 Apply suggestions from code review Clarify operation descriptions Co-Authored-By: zachraMSFT <[email protected]> * Packaging update of azure-mgmt-marketplaceordering * 0.2.0 * Packaging update of azure-mgmt-marketplaceordering
- Loading branch information
1 parent
47490fe
commit 504b2b0
Showing
20 changed files
with
628 additions
and
71 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,5 @@ | ||
recursive-include tests *.py *.yaml | ||
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
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
76 changes: 76 additions & 0 deletions
76
azure-mgmt-marketplaceordering/azure/mgmt/marketplaceordering/models/agreement_terms_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,76 @@ | ||
# 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 .resource_py3 import Resource | ||
|
||
|
||
class AgreementTerms(Resource): | ||
"""Terms properties for provided Publisher/Offer/Plan tuple. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource ID. | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param publisher: Publisher identifier string of image being deployed. | ||
:type publisher: str | ||
:param product: Offer identifier string of image being deployed. | ||
:type product: str | ||
:param plan: Plan identifier string of image being deployed. | ||
:type plan: str | ||
:param license_text_link: Link to HTML with Microsoft and Publisher terms. | ||
:type license_text_link: str | ||
:param privacy_policy_link: Link to the privacy policy of the publisher. | ||
:type privacy_policy_link: str | ||
:param retrieve_datetime: Date and time in UTC of when the terms were | ||
accepted. This is empty if Accepted is false. | ||
:type retrieve_datetime: str | ||
:param signature: Terms signature. | ||
:type signature: str | ||
:param accepted: If any version of the terms have been accepted, otherwise | ||
false. | ||
:type accepted: bool | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'publisher': {'key': 'properties.publisher', 'type': 'str'}, | ||
'product': {'key': 'properties.product', 'type': 'str'}, | ||
'plan': {'key': 'properties.plan', 'type': 'str'}, | ||
'license_text_link': {'key': 'properties.licenseTextLink', 'type': 'str'}, | ||
'privacy_policy_link': {'key': 'properties.privacyPolicyLink', 'type': 'str'}, | ||
'retrieve_datetime': {'key': 'properties.retrieveDatetime', 'type': 'str'}, | ||
'signature': {'key': 'properties.signature', 'type': 'str'}, | ||
'accepted': {'key': 'properties.accepted', 'type': 'bool'}, | ||
} | ||
|
||
def __init__(self, *, publisher: str=None, product: str=None, plan: str=None, license_text_link: str=None, privacy_policy_link: str=None, retrieve_datetime: str=None, signature: str=None, accepted: bool=None, **kwargs) -> None: | ||
super(AgreementTerms, self).__init__(**kwargs) | ||
self.publisher = publisher | ||
self.product = product | ||
self.plan = plan | ||
self.license_text_link = license_text_link | ||
self.privacy_policy_link = privacy_policy_link | ||
self.retrieve_datetime = retrieve_datetime | ||
self.signature = signature | ||
self.accepted = accepted |
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
40 changes: 40 additions & 0 deletions
40
...gmt-marketplaceordering/azure/mgmt/marketplaceordering/models/error_response_error_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,40 @@ | ||
# 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 ErrorResponseError(Model): | ||
"""The details of the error. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar code: Error code. | ||
:vartype code: str | ||
:ivar message: Error message indicating why the operation failed. | ||
:vartype message: str | ||
""" | ||
|
||
_validation = { | ||
'code': {'readonly': True}, | ||
'message': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'code': {'key': 'code', 'type': 'str'}, | ||
'message': {'key': 'message', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs) -> None: | ||
super(ErrorResponseError, self).__init__(**kwargs) | ||
self.code = None | ||
self.message = None |
43 changes: 43 additions & 0 deletions
43
azure-mgmt-marketplaceordering/azure/mgmt/marketplaceordering/models/error_response_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,43 @@ | ||
# 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 | ||
from msrest.exceptions import HttpOperationError | ||
|
||
|
||
class ErrorResponse(Model): | ||
"""Error response indicates Microsoft.MarketplaceOrdering service is not able | ||
to process the incoming request. The reason is provided in the error | ||
message. | ||
:param error: The details of the error. | ||
:type error: ~azure.mgmt.marketplaceordering.models.ErrorResponseError | ||
""" | ||
|
||
_attribute_map = { | ||
'error': {'key': 'error', 'type': 'ErrorResponseError'}, | ||
} | ||
|
||
def __init__(self, *, error=None, **kwargs) -> None: | ||
super(ErrorResponse, self).__init__(**kwargs) | ||
self.error = error | ||
|
||
|
||
class ErrorResponseException(HttpOperationError): | ||
"""Server responsed with exception of type: 'ErrorResponse'. | ||
:param deserialize: A deserializer | ||
:param response: Server response to be deserialized. | ||
""" | ||
|
||
def __init__(self, deserialize, response, *args): | ||
|
||
super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) |
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.