зеркало из
1
0
Форкнуть 0

[AutoRelease] t2-edgeorder-2021-07-27-26245 (#19948)

* CodeGen from PR 14935 in Azure/azure-rest-api-specs
[EdgeOrder] Update 2020-12-01-preview swagger and add readme files (#14935)

* new api changes (#1)

* new api changes

* referer url change

* EdgeOrder 2020-12-01-preview Swagger changes (#5)

* readme changes

* Swagger refresh and update examples

* Change examples as per oav validations

* Minor swagger modifications

* Minor spacing adjustments

* Set ModelAsString to true for enums and modify examples

* Fix swagger lint validation error

* Modify readme and examples

* Modify readme.go.md

* Update swagger

* Minor prettier fix

* Change python package version in readme

* Fix spell check error

Co-authored-by: sashanm <54701252+sashanm@users.noreply.github.com>

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: sashanm <54701252+sashanm@users.noreply.github.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Zed Lei <59104634+RAY-316@users.noreply.github.com>
This commit is contained in:
Azure CLI Bot 2021-07-27 13:46:54 +08:00 коммит произвёл GitHub
Родитель a8fd00bb50
Коммит bbf08d350c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
28 изменённых файлов: 11101 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,5 @@
# Release History
## 1.0.0b1 (2021-07-27)
* Initial Release

Просмотреть файл

@ -0,0 +1,6 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py

Просмотреть файл

@ -0,0 +1,27 @@
# Microsoft Azure SDK for Python
This is the Microsoft Azure Edgeorder Management Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
# Usage
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
Code samples for this package can be found at [Edgeorder Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
# Provide Feedback
If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-edgeorder%2FREADME.png)

Просмотреть файл

@ -0,0 +1,11 @@
{
"autorest": "3.4.2",
"use": [
"@autorest/python@5.8.1",
"@autorest/modelerfour@4.19.2"
],
"commit": "f985f05e68b7720cd5cd4c55bd89ce8463f7e554",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/edgeorder/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
"readme": "specification/edgeorder/resource-manager/readme.md"
}

Просмотреть файл

@ -0,0 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

Просмотреть файл

@ -0,0 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

Просмотреть файл

@ -0,0 +1,19 @@
# 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 ._edge_order_management_client import EdgeOrderManagementClient
from ._version import VERSION
__version__ = VERSION
__all__ = ['EdgeOrderManagementClient']
try:
from ._patch import patch_sdk # type: ignore
patch_sdk()
except ImportError:
pass

Просмотреть файл

@ -0,0 +1,71 @@
# 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 typing import TYPE_CHECKING
from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
from ._version import VERSION
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any
from azure.core.credentials import TokenCredential
class EdgeOrderManagementClientConfiguration(Configuration):
"""Configuration for EdgeOrderManagementClient.
Note that all parameters used to create this instance are saved as instance
attributes.
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
"""
def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
**kwargs # type: Any
):
# type: (...) -> None
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
super(EdgeOrderManagementClientConfiguration, self).__init__(**kwargs)
self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-12-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-edgeorder/{}'.format(VERSION))
self._configure(**kwargs)
def _configure(
self,
**kwargs # type: Any
):
# type: (...) -> None
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
self.authentication_policy = kwargs.get('authentication_policy')
if self.credential and not self.authentication_policy:
self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)

Просмотреть файл

@ -0,0 +1,85 @@
# 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 typing import TYPE_CHECKING
from azure.mgmt.core import ARMPipelineClient
from msrest import Deserializer, Serializer
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any, Optional
from azure.core.credentials import TokenCredential
from azure.core.pipeline.transport import HttpRequest, HttpResponse
from ._configuration import EdgeOrderManagementClientConfiguration
from .operations import EdgeOrderManagementClientOperationsMixin
from . import models
class EdgeOrderManagementClient(EdgeOrderManagementClientOperationsMixin):
"""Edge Order API's.
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
"""
def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
base_url=None, # type: Optional[str]
**kwargs # type: Any
):
# type: (...) -> None
if not base_url:
base_url = 'https://management.azure.com'
self._config = EdgeOrderManagementClientConfiguration(credential, subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)
def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
"""Runs the network request through the client's chained policies.
:param http_request: The network request you want to make. Required.
:type http_request: ~azure.core.pipeline.transport.HttpRequest
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
:return: The response of your network call. Does not do error handling on your response.
:rtype: ~azure.core.pipeline.transport.HttpResponse
"""
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
stream = kwargs.pop("stream", True)
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
return pipeline_response.http_response
def close(self):
# type: () -> None
self._client.close()
def __enter__(self):
# type: () -> EdgeOrderManagementClient
self._client.__enter__()
return self
def __exit__(self, *exc_details):
# type: (Any) -> None
self._client.__exit__(*exc_details)

Просмотреть файл

@ -0,0 +1,444 @@
{
"chosen_version": "2020-12-01-preview",
"total_api_version_list": ["2020-12-01-preview"],
"client": {
"name": "EdgeOrderManagementClient",
"filename": "_edge_order_management_client",
"description": "Edge Order API\u0027s.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false,
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"EdgeOrderManagementClientConfiguration\"], \"._operations_mixin\": [\"EdgeOrderManagementClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"EdgeOrderManagementClientConfiguration\"], \"._operations_mixin\": [\"EdgeOrderManagementClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
},
"global_parameters": {
"sync": {
"credential": {
"signature": "credential, # type: \"TokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials.TokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id, # type: str",
"description": "The ID of the target subscription.",
"docstring_type": "str",
"required": true
}
},
"async": {
"credential": {
"signature": "credential: \"AsyncTokenCredential\",",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id: str,",
"description": "The ID of the target subscription.",
"docstring_type": "str",
"required": true
}
},
"constant": {
},
"call": "credential, subscription_id",
"service_client_specific": {
"sync": {
"api_version": {
"signature": "api_version=None, # type: Optional[str]",
"description": "API version to use if no profile is provided, or if missing in profile.",
"docstring_type": "str",
"required": false
},
"base_url": {
"signature": "base_url=None, # type: Optional[str]",
"description": "Service URL",
"docstring_type": "str",
"required": false
},
"profile": {
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
"description": "A profile definition, from KnownProfiles to dict.",
"docstring_type": "azure.profiles.KnownProfiles",
"required": false
}
},
"async": {
"api_version": {
"signature": "api_version: Optional[str] = None,",
"description": "API version to use if no profile is provided, or if missing in profile.",
"docstring_type": "str",
"required": false
},
"base_url": {
"signature": "base_url: Optional[str] = None,",
"description": "Service URL",
"docstring_type": "str",
"required": false
},
"profile": {
"signature": "profile: KnownProfiles = KnownProfiles.default,",
"description": "A profile definition, from KnownProfiles to dict.",
"docstring_type": "azure.profiles.KnownProfiles",
"required": false
}
}
}
},
"config": {
"credential": true,
"credential_scopes": ["https://management.azure.com/.default"],
"credential_default_policy_type": "BearerTokenCredentialPolicy",
"credential_default_policy_type_has_async_version": true,
"credential_key_header_name": null,
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
},
"operation_groups": {
},
"operation_mixins": {
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"], \"azure.core.paging\": [\"ItemPaged\"], \"azure.core.polling\": [\"LROPoller\", \"NoPolling\", \"PollingMethod\"], \"azure.mgmt.core.polling.arm_polling\": [\"ARMPolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"Iterable\", \"Optional\", \"TypeVar\", \"Union\"]}}}",
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"], \"azure.core.async_paging\": [\"AsyncItemPaged\", \"AsyncList\"], \"azure.core.polling\": [\"AsyncLROPoller\", \"AsyncNoPolling\", \"AsyncPollingMethod\"], \"azure.mgmt.core.polling.async_arm_polling\": [\"AsyncARMPolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"AsyncIterable\", \"Callable\", \"Dict\", \"Generic\", \"Optional\", \"TypeVar\", \"Union\"]}}}",
"operations": {
"list_operations" : {
"sync": {
"signature": "def list_operations(\n self,\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"This method gets all the operations that are exposed for customer.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OperationListResult or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.OperationListResult]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": false,
"signature": "def list_operations(\n self,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.OperationListResult\"]:\n",
"doc": "\"\"\"This method gets all the operations that are exposed for customer.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OperationListResult or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.OperationListResult]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": ""
},
"list_addresses_at_subscription_level" : {
"sync": {
"signature": "def list_addresses_at_subscription_level(\n self,\n filter=None, # type: Optional[str]\n skip_token=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Lists all the addresses available under the subscription.\n\n:param filter: $filter is supported to filter based on shipping address properties. Filter\n supports only equals operation.\n:type filter: str\n:param skip_token: $skipToken is supported on Get list of addresses, which provides the next\n page in the list of addresses.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either AddressResourceList or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.AddressResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": false,
"signature": "def list_addresses_at_subscription_level(\n self,\n filter: Optional[str] = None,\n skip_token: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.AddressResourceList\"]:\n",
"doc": "\"\"\"Lists all the addresses available under the subscription.\n\n:param filter: $filter is supported to filter based on shipping address properties. Filter\n supports only equals operation.\n:type filter: str\n:param skip_token: $skipToken is supported on Get list of addresses, which provides the next\n page in the list of addresses.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either AddressResourceList or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.AddressResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "filter, skip_token"
},
"list_product_families" : {
"sync": {
"signature": "def list_product_families(\n self,\n product_families_request, # type: \"_models.ProductFamiliesRequest\"\n expand=None, # type: Optional[str]\n skip_token=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"This method provides the list of product families for the given subscription.\n\n:param product_families_request: Filters for showing the product families.\n:type product_families_request: ~edge_order_management_client.models.ProductFamiliesRequest\n:param expand: $expand is supported on configurations parameter for product, which provides\n details on the configurations for the product.\n:type expand: str\n:param skip_token: $skipToken is supported on list of product families, which provides the next\n page in the list of product families.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either ProductFamilies or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.ProductFamilies]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": false,
"signature": "def list_product_families(\n self,\n product_families_request: \"_models.ProductFamiliesRequest\",\n expand: Optional[str] = None,\n skip_token: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.ProductFamilies\"]:\n",
"doc": "\"\"\"This method provides the list of product families for the given subscription.\n\n:param product_families_request: Filters for showing the product families.\n:type product_families_request: ~edge_order_management_client.models.ProductFamiliesRequest\n:param expand: $expand is supported on configurations parameter for product, which provides\n details on the configurations for the product.\n:type expand: str\n:param skip_token: $skipToken is supported on list of product families, which provides the next\n page in the list of product families.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either ProductFamilies or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.ProductFamilies]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "product_families_request, expand, skip_token"
},
"list_configurations" : {
"sync": {
"signature": "def list_configurations(\n self,\n configurations_request, # type: \"_models.ConfigurationsRequest\"\n skip_token=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"This method provides the list of configurations for the given product family, product line and\nproduct under subscription.\n\n:param configurations_request: Filters for showing the configurations.\n:type configurations_request: ~edge_order_management_client.models.ConfigurationsRequest\n:param skip_token: $skipToken is supported on list of configurations, which provides the next\n page in the list of configurations.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either Configurations or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.Configurations]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": false,
"signature": "def list_configurations(\n self,\n configurations_request: \"_models.ConfigurationsRequest\",\n skip_token: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.Configurations\"]:\n",
"doc": "\"\"\"This method provides the list of configurations for the given product family, product line and\nproduct under subscription.\n\n:param configurations_request: Filters for showing the configurations.\n:type configurations_request: ~edge_order_management_client.models.ConfigurationsRequest\n:param skip_token: $skipToken is supported on list of configurations, which provides the next\n page in the list of configurations.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either Configurations or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.Configurations]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "configurations_request, skip_token"
},
"list_product_families_metadata" : {
"sync": {
"signature": "def list_product_families_metadata(\n self,\n skip_token=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"This method provides the list of product families metadata for the given subscription.\n\n:param skip_token: $skipToken is supported on list of product families metadata, which provides\n the next page in the list of product families metadata.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either ProductFamiliesMetadata or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.ProductFamiliesMetadata]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": false,
"signature": "def list_product_families_metadata(\n self,\n skip_token: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.ProductFamiliesMetadata\"]:\n",
"doc": "\"\"\"This method provides the list of product families metadata for the given subscription.\n\n:param skip_token: $skipToken is supported on list of product families metadata, which provides\n the next page in the list of product families metadata.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either ProductFamiliesMetadata or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.ProductFamiliesMetadata]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "skip_token"
},
"list_order_at_subscription_level" : {
"sync": {
"signature": "def list_order_at_subscription_level(\n self,\n skip_token=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Lists order at subscription level.\n\n:param skip_token: $skipToken is supported on Get list of order, which provides the next page\n in the list of order.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderResourceList or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.OrderResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": false,
"signature": "def list_order_at_subscription_level(\n self,\n skip_token: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.OrderResourceList\"]:\n",
"doc": "\"\"\"Lists order at subscription level.\n\n:param skip_token: $skipToken is supported on Get list of order, which provides the next page\n in the list of order.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderResourceList or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.OrderResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "skip_token"
},
"list_order_items_at_subscription_level" : {
"sync": {
"signature": "def list_order_items_at_subscription_level(\n self,\n filter=None, # type: Optional[str]\n skip_token=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Lists order at subscription level.\n\n:param filter: $filter is supported to filter based on order id. Filter supports only equals\n operation.\n:type filter: str\n:param skip_token: $skipToken is supported on Get list of orders, which provides the next page\n in the list of order.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderItemResourceList or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.OrderItemResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": false,
"signature": "def list_order_items_at_subscription_level(\n self,\n filter: Optional[str] = None,\n skip_token: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.OrderItemResourceList\"]:\n",
"doc": "\"\"\"Lists order at subscription level.\n\n:param filter: $filter is supported to filter based on order id. Filter supports only equals\n operation.\n:type filter: str\n:param skip_token: $skipToken is supported on Get list of orders, which provides the next page\n in the list of order.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderItemResourceList or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.OrderItemResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "filter, skip_token"
},
"list_addresses_at_resource_group_level" : {
"sync": {
"signature": "def list_addresses_at_resource_group_level(\n self,\n resource_group_name, # type: str\n filter=None, # type: Optional[str]\n skip_token=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Lists all the addresses available under the given resource group.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param filter: $filter is supported to filter based on shipping address properties. Filter\n supports only equals operation.\n:type filter: str\n:param skip_token: $skipToken is supported on Get list of addresses, which provides the next\n page in the list of address.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either AddressResourceList or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.AddressResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": false,
"signature": "def list_addresses_at_resource_group_level(\n self,\n resource_group_name: str,\n filter: Optional[str] = None,\n skip_token: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.AddressResourceList\"]:\n",
"doc": "\"\"\"Lists all the addresses available under the given resource group.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param filter: $filter is supported to filter based on shipping address properties. Filter\n supports only equals operation.\n:type filter: str\n:param skip_token: $skipToken is supported on Get list of addresses, which provides the next\n page in the list of address.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either AddressResourceList or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.AddressResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "resource_group_name, filter, skip_token"
},
"get_address_by_name" : {
"sync": {
"signature": "def get_address_by_name(\n self,\n address_name, # type: str\n resource_group_name, # type: str\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Gets information about the specified address.\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AddressResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.AddressResource\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def get_address_by_name(\n self,\n address_name: str,\n resource_group_name: str,\n **kwargs: Any\n) -\u003e \"_models.AddressResource\":\n",
"doc": "\"\"\"Gets information about the specified address.\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AddressResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.AddressResource\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "address_name, resource_group_name"
},
"_create_address_initial" : {
"sync": {
"signature": "def _create_address_initial(\n self,\n address_name, # type: str\n resource_group_name, # type: str\n address_resource, # type: \"_models.AddressResource\"\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param address_resource: Address details from request body.\n:type address_resource: ~edge_order_management_client.models.AddressResource\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AddressResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.AddressResource or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def _create_address_initial(\n self,\n address_name: str,\n resource_group_name: str,\n address_resource: \"_models.AddressResource\",\n **kwargs: Any\n) -\u003e Optional[\"_models.AddressResource\"]:\n",
"doc": "\"\"\"\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param address_resource: Address details from request body.\n:type address_resource: ~edge_order_management_client.models.AddressResource\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AddressResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.AddressResource or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "address_name, resource_group_name, address_resource"
},
"begin_create_address" : {
"sync": {
"signature": "def begin_create_address(\n self,\n address_name, # type: str\n resource_group_name, # type: str\n address_resource, # type: \"_models.AddressResource\"\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Creates a new address with the specified parameters. Existing address cannot be updated with\nthis API and should instead be updated with the Update address API.\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param address_resource: Address details from request body.\n:type address_resource: ~edge_order_management_client.models.AddressResource\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be ARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either AddressResource or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[~edge_order_management_client.models.AddressResource]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def begin_create_address(\n self,\n address_name: str,\n resource_group_name: str,\n address_resource: \"_models.AddressResource\",\n **kwargs: Any\n) -\u003e AsyncLROPoller[\"_models.AddressResource\"]:\n",
"doc": "\"\"\"Creates a new address with the specified parameters. Existing address cannot be updated with\nthis API and should instead be updated with the Update address API.\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param address_resource: Address details from request body.\n:type address_resource: ~edge_order_management_client.models.AddressResource\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either AddressResource or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~edge_order_management_client.models.AddressResource]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"call": "address_name, resource_group_name, address_resource"
},
"_delete_address_by_name_initial" : {
"sync": {
"signature": "def _delete_address_by_name_initial(\n self,\n address_name, # type: str\n resource_group_name, # type: str\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def _delete_address_by_name_initial(\n self,\n address_name: str,\n resource_group_name: str,\n **kwargs: Any\n) -\u003e None:\n",
"doc": "\"\"\"\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "address_name, resource_group_name"
},
"begin_delete_address_by_name" : {
"sync": {
"signature": "def begin_delete_address_by_name(\n self,\n address_name, # type: str\n resource_group_name, # type: str\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Deletes an address.\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be ARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def begin_delete_address_by_name(\n self,\n address_name: str,\n resource_group_name: str,\n **kwargs: Any\n) -\u003e AsyncLROPoller[None]:\n",
"doc": "\"\"\"Deletes an address.\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"call": "address_name, resource_group_name"
},
"_update_address_initial" : {
"sync": {
"signature": "def _update_address_initial(\n self,\n address_name, # type: str\n resource_group_name, # type: str\n address_update_parameter, # type: \"_models.AddressUpdateParameter\"\n if_match=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param address_update_parameter: Address update parameters from request body.\n:type address_update_parameter: ~edge_order_management_client.models.AddressUpdateParameter\n:param if_match: Defines the If-Match condition. The patch will be performed only if the ETag\n of the job on the server matches this value.\n:type if_match: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AddressResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.AddressResource or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def _update_address_initial(\n self,\n address_name: str,\n resource_group_name: str,\n address_update_parameter: \"_models.AddressUpdateParameter\",\n if_match: Optional[str] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.AddressResource\"]:\n",
"doc": "\"\"\"\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param address_update_parameter: Address update parameters from request body.\n:type address_update_parameter: ~edge_order_management_client.models.AddressUpdateParameter\n:param if_match: Defines the If-Match condition. The patch will be performed only if the ETag\n of the job on the server matches this value.\n:type if_match: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AddressResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.AddressResource or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "address_name, resource_group_name, address_update_parameter, if_match"
},
"begin_update_address" : {
"sync": {
"signature": "def begin_update_address(\n self,\n address_name, # type: str\n resource_group_name, # type: str\n address_update_parameter, # type: \"_models.AddressUpdateParameter\"\n if_match=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Updates the properties of an existing address.\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param address_update_parameter: Address update parameters from request body.\n:type address_update_parameter: ~edge_order_management_client.models.AddressUpdateParameter\n:param if_match: Defines the If-Match condition. The patch will be performed only if the ETag\n of the job on the server matches this value.\n:type if_match: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be ARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either AddressResource or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[~edge_order_management_client.models.AddressResource]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def begin_update_address(\n self,\n address_name: str,\n resource_group_name: str,\n address_update_parameter: \"_models.AddressUpdateParameter\",\n if_match: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[\"_models.AddressResource\"]:\n",
"doc": "\"\"\"Updates the properties of an existing address.\n\n:param address_name: The name of the address Resource within the specified resource group.\n address names must be between 3 and 24 characters in length and use any alphanumeric and\n underscore only.\n:type address_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param address_update_parameter: Address update parameters from request body.\n:type address_update_parameter: ~edge_order_management_client.models.AddressUpdateParameter\n:param if_match: Defines the If-Match condition. The patch will be performed only if the ETag\n of the job on the server matches this value.\n:type if_match: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either AddressResource or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~edge_order_management_client.models.AddressResource]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"call": "address_name, resource_group_name, address_update_parameter, if_match"
},
"list_order_at_resource_group_level" : {
"sync": {
"signature": "def list_order_at_resource_group_level(\n self,\n resource_group_name, # type: str\n skip_token=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Lists order at resource group level.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param skip_token: $skipToken is supported on Get list of order, which provides the next page\n in the list of order.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderResourceList or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.OrderResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": false,
"signature": "def list_order_at_resource_group_level(\n self,\n resource_group_name: str,\n skip_token: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.OrderResourceList\"]:\n",
"doc": "\"\"\"Lists order at resource group level.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param skip_token: $skipToken is supported on Get list of order, which provides the next page\n in the list of order.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderResourceList or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.OrderResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "resource_group_name, skip_token"
},
"get_order_by_name" : {
"sync": {
"signature": "def get_order_by_name(\n self,\n order_name, # type: str\n resource_group_name, # type: str\n location, # type: str\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Gets an order.\n\n:param order_name: The name of the order.\n:type order_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param location: The name of Azure region.\n:type location: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: OrderResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.OrderResource\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def get_order_by_name(\n self,\n order_name: str,\n resource_group_name: str,\n location: str,\n **kwargs: Any\n) -\u003e \"_models.OrderResource\":\n",
"doc": "\"\"\"Gets an order.\n\n:param order_name: The name of the order.\n:type order_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param location: The name of Azure region.\n:type location: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: OrderResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.OrderResource\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "order_name, resource_group_name, location"
},
"list_order_items_at_resource_group_level" : {
"sync": {
"signature": "def list_order_items_at_resource_group_level(\n self,\n resource_group_name, # type: str\n filter=None, # type: Optional[str]\n expand=None, # type: Optional[str]\n skip_token=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Lists order item at resource group level.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param filter: $filter is supported to filter based on order id. Filter supports only equals\n operation.\n:type filter: str\n:param expand: $expand is supported on device details parameter for order item, which provides\n details on the devices of the product.\n:type expand: str\n:param skip_token: $skipToken is supported on Get list of order items, which provides the next\n page in the list of order items.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderItemResourceList or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.OrderItemResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": false,
"signature": "def list_order_items_at_resource_group_level(\n self,\n resource_group_name: str,\n filter: Optional[str] = None,\n expand: Optional[str] = None,\n skip_token: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.OrderItemResourceList\"]:\n",
"doc": "\"\"\"Lists order item at resource group level.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param filter: $filter is supported to filter based on order id. Filter supports only equals\n operation.\n:type filter: str\n:param expand: $expand is supported on device details parameter for order item, which provides\n details on the devices of the product.\n:type expand: str\n:param skip_token: $skipToken is supported on Get list of order items, which provides the next\n page in the list of order items.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderItemResourceList or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.OrderItemResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "resource_group_name, filter, expand, skip_token"
},
"get_order_item_by_name" : {
"sync": {
"signature": "def get_order_item_by_name(\n self,\n order_item_name, # type: str\n resource_group_name, # type: str\n expand=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Gets an order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param expand: $expand is supported on device details parameter for order item, which provides\n details on the devices of the product.\n:type expand: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: OrderItemResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.OrderItemResource\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def get_order_item_by_name(\n self,\n order_item_name: str,\n resource_group_name: str,\n expand: Optional[str] = None,\n **kwargs: Any\n) -\u003e \"_models.OrderItemResource\":\n",
"doc": "\"\"\"Gets an order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param expand: $expand is supported on device details parameter for order item, which provides\n details on the devices of the product.\n:type expand: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: OrderItemResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.OrderItemResource\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "order_item_name, resource_group_name, expand"
},
"_create_order_item_initial" : {
"sync": {
"signature": "def _create_order_item_initial(\n self,\n order_item_name, # type: str\n resource_group_name, # type: str\n order_item_resource, # type: \"_models.OrderItemResource\"\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param order_item_resource: Order item details from request body.\n:type order_item_resource: ~edge_order_management_client.models.OrderItemResource\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: OrderItemResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.OrderItemResource or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def _create_order_item_initial(\n self,\n order_item_name: str,\n resource_group_name: str,\n order_item_resource: \"_models.OrderItemResource\",\n **kwargs: Any\n) -\u003e Optional[\"_models.OrderItemResource\"]:\n",
"doc": "\"\"\"\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param order_item_resource: Order item details from request body.\n:type order_item_resource: ~edge_order_management_client.models.OrderItemResource\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: OrderItemResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.OrderItemResource or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "order_item_name, resource_group_name, order_item_resource"
},
"begin_create_order_item" : {
"sync": {
"signature": "def begin_create_order_item(\n self,\n order_item_name, # type: str\n resource_group_name, # type: str\n order_item_resource, # type: \"_models.OrderItemResource\"\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Creates an order item. Existing order item cannot be updated with this api and should instead\nbe updated with the Update order item API.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param order_item_resource: Order item details from request body.\n:type order_item_resource: ~edge_order_management_client.models.OrderItemResource\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be ARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either OrderItemResource or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[~edge_order_management_client.models.OrderItemResource]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def begin_create_order_item(\n self,\n order_item_name: str,\n resource_group_name: str,\n order_item_resource: \"_models.OrderItemResource\",\n **kwargs: Any\n) -\u003e AsyncLROPoller[\"_models.OrderItemResource\"]:\n",
"doc": "\"\"\"Creates an order item. Existing order item cannot be updated with this api and should instead\nbe updated with the Update order item API.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param order_item_resource: Order item details from request body.\n:type order_item_resource: ~edge_order_management_client.models.OrderItemResource\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either OrderItemResource or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~edge_order_management_client.models.OrderItemResource]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"call": "order_item_name, resource_group_name, order_item_resource"
},
"_delete_order_item_by_name_initial" : {
"sync": {
"signature": "def _delete_order_item_by_name_initial(\n self,\n order_item_name, # type: str\n resource_group_name, # type: str\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def _delete_order_item_by_name_initial(\n self,\n order_item_name: str,\n resource_group_name: str,\n **kwargs: Any\n) -\u003e None:\n",
"doc": "\"\"\"\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "order_item_name, resource_group_name"
},
"begin_delete_order_item_by_name" : {
"sync": {
"signature": "def begin_delete_order_item_by_name(\n self,\n order_item_name, # type: str\n resource_group_name, # type: str\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Deletes an order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be ARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def begin_delete_order_item_by_name(\n self,\n order_item_name: str,\n resource_group_name: str,\n **kwargs: Any\n) -\u003e AsyncLROPoller[None]:\n",
"doc": "\"\"\"Deletes an order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"call": "order_item_name, resource_group_name"
},
"_update_order_item_initial" : {
"sync": {
"signature": "def _update_order_item_initial(\n self,\n order_item_name, # type: str\n resource_group_name, # type: str\n order_item_update_parameter, # type: \"_models.OrderItemUpdateParameter\"\n if_match=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param order_item_update_parameter: order item update parameters from request body.\n:type order_item_update_parameter: ~edge_order_management_client.models.OrderItemUpdateParameter\n:param if_match: Defines the If-Match condition. The patch will be performed only if the ETag\n of the order on the server matches this value.\n:type if_match: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: OrderItemResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.OrderItemResource or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def _update_order_item_initial(\n self,\n order_item_name: str,\n resource_group_name: str,\n order_item_update_parameter: \"_models.OrderItemUpdateParameter\",\n if_match: Optional[str] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.OrderItemResource\"]:\n",
"doc": "\"\"\"\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param order_item_update_parameter: order item update parameters from request body.\n:type order_item_update_parameter: ~edge_order_management_client.models.OrderItemUpdateParameter\n:param if_match: Defines the If-Match condition. The patch will be performed only if the ETag\n of the order on the server matches this value.\n:type if_match: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: OrderItemResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.OrderItemResource or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "order_item_name, resource_group_name, order_item_update_parameter, if_match"
},
"begin_update_order_item" : {
"sync": {
"signature": "def begin_update_order_item(\n self,\n order_item_name, # type: str\n resource_group_name, # type: str\n order_item_update_parameter, # type: \"_models.OrderItemUpdateParameter\"\n if_match=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Updates the properties of an existing order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param order_item_update_parameter: order item update parameters from request body.\n:type order_item_update_parameter: ~edge_order_management_client.models.OrderItemUpdateParameter\n:param if_match: Defines the If-Match condition. The patch will be performed only if the ETag\n of the order on the server matches this value.\n:type if_match: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be ARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either OrderItemResource or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[~edge_order_management_client.models.OrderItemResource]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def begin_update_order_item(\n self,\n order_item_name: str,\n resource_group_name: str,\n order_item_update_parameter: \"_models.OrderItemUpdateParameter\",\n if_match: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[\"_models.OrderItemResource\"]:\n",
"doc": "\"\"\"Updates the properties of an existing order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param order_item_update_parameter: order item update parameters from request body.\n:type order_item_update_parameter: ~edge_order_management_client.models.OrderItemUpdateParameter\n:param if_match: Defines the If-Match condition. The patch will be performed only if the ETag\n of the order on the server matches this value.\n:type if_match: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either OrderItemResource or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~edge_order_management_client.models.OrderItemResource]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"call": "order_item_name, resource_group_name, order_item_update_parameter, if_match"
},
"cancel_order_item" : {
"sync": {
"signature": "def cancel_order_item(\n self,\n order_item_name, # type: str\n resource_group_name, # type: str\n cancellation_reason, # type: \"_models.CancellationReason\"\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Cancel order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param cancellation_reason: Reason for cancellation.\n:type cancellation_reason: ~edge_order_management_client.models.CancellationReason\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def cancel_order_item(\n self,\n order_item_name: str,\n resource_group_name: str,\n cancellation_reason: \"_models.CancellationReason\",\n **kwargs: Any\n) -\u003e None:\n",
"doc": "\"\"\"Cancel order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param cancellation_reason: Reason for cancellation.\n:type cancellation_reason: ~edge_order_management_client.models.CancellationReason\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "order_item_name, resource_group_name, cancellation_reason"
},
"_return_order_item_initial" : {
"sync": {
"signature": "def _return_order_item_initial(\n self,\n order_item_name, # type: str\n resource_group_name, # type: str\n return_order_item_details, # type: \"_models.ReturnOrderItemDetails\"\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param return_order_item_details: Return order item CurrentStatus.\n:type return_order_item_details: ~edge_order_management_client.models.ReturnOrderItemDetails\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def _return_order_item_initial(\n self,\n order_item_name: str,\n resource_group_name: str,\n return_order_item_details: \"_models.ReturnOrderItemDetails\",\n **kwargs: Any\n) -\u003e None:\n",
"doc": "\"\"\"\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param return_order_item_details: Return order item CurrentStatus.\n:type return_order_item_details: ~edge_order_management_client.models.ReturnOrderItemDetails\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "order_item_name, resource_group_name, return_order_item_details"
},
"begin_return_order_item" : {
"sync": {
"signature": "def begin_return_order_item(\n self,\n order_item_name, # type: str\n resource_group_name, # type: str\n return_order_item_details, # type: \"_models.ReturnOrderItemDetails\"\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Return order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param return_order_item_details: Return order item CurrentStatus.\n:type return_order_item_details: ~edge_order_management_client.models.ReturnOrderItemDetails\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be ARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def begin_return_order_item(\n self,\n order_item_name: str,\n resource_group_name: str,\n return_order_item_details: \"_models.ReturnOrderItemDetails\",\n **kwargs: Any\n) -\u003e AsyncLROPoller[None]:\n",
"doc": "\"\"\"Return order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param return_order_item_details: Return order item CurrentStatus.\n:type return_order_item_details: ~edge_order_management_client.models.ReturnOrderItemDetails\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
},
"call": "order_item_name, resource_group_name, return_order_item_details"
}
}
}
}

Просмотреть файл

@ -0,0 +1,9 @@
# 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.
# --------------------------------------------------------------------------
VERSION = "1.0.0b1"

Просмотреть файл

@ -0,0 +1,10 @@
# 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 ._edge_order_management_client import EdgeOrderManagementClient
__all__ = ['EdgeOrderManagementClient']

Просмотреть файл

@ -0,0 +1,67 @@
# 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 typing import Any, TYPE_CHECKING
from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
from .._version import VERSION
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential
class EdgeOrderManagementClientConfiguration(Configuration):
"""Configuration for EdgeOrderManagementClient.
Note that all parameters used to create this instance are saved as instance
attributes.
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
"""
def __init__(
self,
credential: "AsyncTokenCredential",
subscription_id: str,
**kwargs: Any
) -> None:
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
super(EdgeOrderManagementClientConfiguration, self).__init__(**kwargs)
self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-12-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-edgeorder/{}'.format(VERSION))
self._configure(**kwargs)
def _configure(
self,
**kwargs: Any
) -> None:
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs)
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs)
self.authentication_policy = kwargs.get('authentication_policy')
if self.credential and not self.authentication_policy:
self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)

Просмотреть файл

@ -0,0 +1,78 @@
# 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 typing import Any, Optional, TYPE_CHECKING
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core import AsyncARMPipelineClient
from msrest import Deserializer, Serializer
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential
from ._configuration import EdgeOrderManagementClientConfiguration
from .operations import EdgeOrderManagementClientOperationsMixin
from .. import models
class EdgeOrderManagementClient(EdgeOrderManagementClientOperationsMixin):
"""Edge Order API's.
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
"""
def __init__(
self,
credential: "AsyncTokenCredential",
subscription_id: str,
base_url: Optional[str] = None,
**kwargs: Any
) -> None:
if not base_url:
base_url = 'https://management.azure.com'
self._config = EdgeOrderManagementClientConfiguration(credential, subscription_id, **kwargs)
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
"""Runs the network request through the client's chained policies.
:param http_request: The network request you want to make. Required.
:type http_request: ~azure.core.pipeline.transport.HttpRequest
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
:return: The response of your network call. Does not do error handling on your response.
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
"""
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
stream = kwargs.pop("stream", True)
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
return pipeline_response.http_response
async def close(self) -> None:
await self._client.close()
async def __aenter__(self) -> "EdgeOrderManagementClient":
await self._client.__aenter__()
return self
async def __aexit__(self, *exc_details) -> None:
await self._client.__aexit__(*exc_details)

Просмотреть файл

@ -0,0 +1,13 @@
# 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 ._edge_order_management_client_operations import EdgeOrderManagementClientOperationsMixin
__all__ = [
'EdgeOrderManagementClientOperationsMixin',
]

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,268 @@
# 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.
# --------------------------------------------------------------------------
try:
from ._models_py3 import AddressDetails
from ._models_py3 import AddressProperties
from ._models_py3 import AddressResource
from ._models_py3 import AddressResourceList
from ._models_py3 import AddressUpdateParameter
from ._models_py3 import AvailabilityInformation
from ._models_py3 import BasicInformation
from ._models_py3 import BillingMeterDetails
from ._models_py3 import CancellationReason
from ._models_py3 import CommonProperties
from ._models_py3 import Configuration
from ._models_py3 import ConfigurationFilters
from ._models_py3 import ConfigurationProperties
from ._models_py3 import Configurations
from ._models_py3 import ConfigurationsRequest
from ._models_py3 import ContactDetails
from ._models_py3 import CostInformation
from ._models_py3 import CustomerSubscriptionDetails
from ._models_py3 import CustomerSubscriptionRegisteredFeatures
from ._models_py3 import Description
from ._models_py3 import DeviceDetails
from ._models_py3 import Dimensions
from ._models_py3 import DisplayInfo
from ._models_py3 import EncryptionPreferences
from ._models_py3 import ErrorAdditionalInfo
from ._models_py3 import ErrorDetail
from ._models_py3 import ErrorResponse
from ._models_py3 import FilterableProperty
from ._models_py3 import HierarchyInformation
from ._models_py3 import ImageInformation
from ._models_py3 import Link
from ._models_py3 import ManagementResourcePreferences
from ._models_py3 import MeterDetails
from ._models_py3 import NotificationPreference
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationListResult
from ._models_py3 import OrderItemDetails
from ._models_py3 import OrderItemResource
from ._models_py3 import OrderItemResourceList
from ._models_py3 import OrderItemUpdateParameter
from ._models_py3 import OrderResource
from ._models_py3 import OrderResourceList
from ._models_py3 import Pav2MeterDetails
from ._models_py3 import Preferences
from ._models_py3 import Product
from ._models_py3 import ProductDetails
from ._models_py3 import ProductFamilies
from ._models_py3 import ProductFamiliesMetadata
from ._models_py3 import ProductFamiliesMetadataDetails
from ._models_py3 import ProductFamiliesRequest
from ._models_py3 import ProductFamily
from ._models_py3 import ProductFamilyProperties
from ._models_py3 import ProductLine
from ._models_py3 import ProductLineProperties
from ._models_py3 import ProductProperties
from ._models_py3 import ProxyResource
from ._models_py3 import PurchaseMeterDetails
from ._models_py3 import Resource
from ._models_py3 import ResourceIdentity
from ._models_py3 import ReturnOrderItemDetails
from ._models_py3 import ShippingAddress
from ._models_py3 import ShippingDetails
from ._models_py3 import Specification
from ._models_py3 import StageDetails
from ._models_py3 import SystemData
from ._models_py3 import TrackedResource
from ._models_py3 import TransportPreferences
except (SyntaxError, ImportError):
from ._models import AddressDetails # type: ignore
from ._models import AddressProperties # type: ignore
from ._models import AddressResource # type: ignore
from ._models import AddressResourceList # type: ignore
from ._models import AddressUpdateParameter # type: ignore
from ._models import AvailabilityInformation # type: ignore
from ._models import BasicInformation # type: ignore
from ._models import BillingMeterDetails # type: ignore
from ._models import CancellationReason # type: ignore
from ._models import CommonProperties # type: ignore
from ._models import Configuration # type: ignore
from ._models import ConfigurationFilters # type: ignore
from ._models import ConfigurationProperties # type: ignore
from ._models import Configurations # type: ignore
from ._models import ConfigurationsRequest # type: ignore
from ._models import ContactDetails # type: ignore
from ._models import CostInformation # type: ignore
from ._models import CustomerSubscriptionDetails # type: ignore
from ._models import CustomerSubscriptionRegisteredFeatures # type: ignore
from ._models import Description # type: ignore
from ._models import DeviceDetails # type: ignore
from ._models import Dimensions # type: ignore
from ._models import DisplayInfo # type: ignore
from ._models import EncryptionPreferences # type: ignore
from ._models import ErrorAdditionalInfo # type: ignore
from ._models import ErrorDetail # type: ignore
from ._models import ErrorResponse # type: ignore
from ._models import FilterableProperty # type: ignore
from ._models import HierarchyInformation # type: ignore
from ._models import ImageInformation # type: ignore
from ._models import Link # type: ignore
from ._models import ManagementResourcePreferences # type: ignore
from ._models import MeterDetails # type: ignore
from ._models import NotificationPreference # type: ignore
from ._models import Operation # type: ignore
from ._models import OperationDisplay # type: ignore
from ._models import OperationListResult # type: ignore
from ._models import OrderItemDetails # type: ignore
from ._models import OrderItemResource # type: ignore
from ._models import OrderItemResourceList # type: ignore
from ._models import OrderItemUpdateParameter # type: ignore
from ._models import OrderResource # type: ignore
from ._models import OrderResourceList # type: ignore
from ._models import Pav2MeterDetails # type: ignore
from ._models import Preferences # type: ignore
from ._models import Product # type: ignore
from ._models import ProductDetails # type: ignore
from ._models import ProductFamilies # type: ignore
from ._models import ProductFamiliesMetadata # type: ignore
from ._models import ProductFamiliesMetadataDetails # type: ignore
from ._models import ProductFamiliesRequest # type: ignore
from ._models import ProductFamily # type: ignore
from ._models import ProductFamilyProperties # type: ignore
from ._models import ProductLine # type: ignore
from ._models import ProductLineProperties # type: ignore
from ._models import ProductProperties # type: ignore
from ._models import ProxyResource # type: ignore
from ._models import PurchaseMeterDetails # type: ignore
from ._models import Resource # type: ignore
from ._models import ResourceIdentity # type: ignore
from ._models import ReturnOrderItemDetails # type: ignore
from ._models import ShippingAddress # type: ignore
from ._models import ShippingDetails # type: ignore
from ._models import Specification # type: ignore
from ._models import StageDetails # type: ignore
from ._models import SystemData # type: ignore
from ._models import TrackedResource # type: ignore
from ._models import TransportPreferences # type: ignore
from ._edge_order_management_client_enums import (
ActionStatusEnum,
ActionType,
AddressType,
AvailabilityStage,
BillingType,
ChargingType,
CreatedByType,
DescriptionType,
DisabledReason,
DoubleEncryptionStatus,
ImageType,
LengthHeightUnit,
LinkType,
MeteringType,
NotificationStageName,
OrderItemCancellationEnum,
OrderItemReturnEnum,
OrderItemType,
Origin,
StageName,
StageStatus,
SupportedFilterTypes,
TransportShipmentTypes,
WeightMeasurementUnit,
)
__all__ = [
'AddressDetails',
'AddressProperties',
'AddressResource',
'AddressResourceList',
'AddressUpdateParameter',
'AvailabilityInformation',
'BasicInformation',
'BillingMeterDetails',
'CancellationReason',
'CommonProperties',
'Configuration',
'ConfigurationFilters',
'ConfigurationProperties',
'Configurations',
'ConfigurationsRequest',
'ContactDetails',
'CostInformation',
'CustomerSubscriptionDetails',
'CustomerSubscriptionRegisteredFeatures',
'Description',
'DeviceDetails',
'Dimensions',
'DisplayInfo',
'EncryptionPreferences',
'ErrorAdditionalInfo',
'ErrorDetail',
'ErrorResponse',
'FilterableProperty',
'HierarchyInformation',
'ImageInformation',
'Link',
'ManagementResourcePreferences',
'MeterDetails',
'NotificationPreference',
'Operation',
'OperationDisplay',
'OperationListResult',
'OrderItemDetails',
'OrderItemResource',
'OrderItemResourceList',
'OrderItemUpdateParameter',
'OrderResource',
'OrderResourceList',
'Pav2MeterDetails',
'Preferences',
'Product',
'ProductDetails',
'ProductFamilies',
'ProductFamiliesMetadata',
'ProductFamiliesMetadataDetails',
'ProductFamiliesRequest',
'ProductFamily',
'ProductFamilyProperties',
'ProductLine',
'ProductLineProperties',
'ProductProperties',
'ProxyResource',
'PurchaseMeterDetails',
'Resource',
'ResourceIdentity',
'ReturnOrderItemDetails',
'ShippingAddress',
'ShippingDetails',
'Specification',
'StageDetails',
'SystemData',
'TrackedResource',
'TransportPreferences',
'ActionStatusEnum',
'ActionType',
'AddressType',
'AvailabilityStage',
'BillingType',
'ChargingType',
'CreatedByType',
'DescriptionType',
'DisabledReason',
'DoubleEncryptionStatus',
'ImageType',
'LengthHeightUnit',
'LinkType',
'MeteringType',
'NotificationStageName',
'OrderItemCancellationEnum',
'OrderItemReturnEnum',
'OrderItemType',
'Origin',
'StageName',
'StageStatus',
'SupportedFilterTypes',
'TransportShipmentTypes',
'WeightMeasurementUnit',
]

Просмотреть файл

@ -0,0 +1,305 @@
# 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 enum import Enum, EnumMeta
from six import with_metaclass
class _CaseInsensitiveEnumMeta(EnumMeta):
def __getitem__(self, name):
return super().__getitem__(name.upper())
def __getattr__(cls, name):
"""Return the enum member matching `name`
We use __getattr__ instead of descriptors or inserting into the enum
class' __dict__ in order to support `name` and `value` being both
properties for enum members (which live in the class' __dict__) and
enum members themselves.
"""
try:
return cls._member_map_[name.upper()]
except KeyError:
raise AttributeError(name)
class ActionStatusEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Describes whether the order item is deletable or not.
"""
#: Allowed flag.
ALLOWED = "Allowed"
#: Not Allowed flag.
NOT_ALLOWED = "NotAllowed"
class ActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
"""
INTERNAL = "Internal"
class AddressType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Type of address.
"""
#: Address type not known.
NONE = "None"
#: Residential Address.
RESIDENTIAL = "Residential"
#: Commercial Address.
COMMERCIAL = "Commercial"
class AvailabilityStage(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Current availability stage of the product. Availability stage
"""
#: Product is available.
AVAILABLE = "Available"
#: Product is coming soon.
COMING_SOON = "ComingSoon"
#: Product is in preview.
PREVIEW = "Preview"
#: Product is deprecated.
DEPRECATED = "Deprecated"
#: Product is available only on signup.
SIGNUP = "Signup"
#: Product is not available.
UNAVAILABLE = "Unavailable"
class BillingType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Represents billing type.
"""
#: PaV2 billing.
PAV2 = "Pav2"
#: Purchase billing.
PURCHASE = "Purchase"
class ChargingType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Charging type.
"""
#: Per order charging type.
PER_ORDER = "PerOrder"
#: Per device charging type.
PER_DEVICE = "PerDevice"
class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The type of identity that created the resource.
"""
USER = "User"
APPLICATION = "Application"
MANAGED_IDENTITY = "ManagedIdentity"
KEY = "Key"
class DescriptionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Type of description.
"""
#: Base description.
BASE = "Base"
class DisabledReason(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Reason why the product is disabled.
"""
#: Not disabled.
NONE = "None"
#: Not available in the requested country.
COUNTRY = "Country"
#: Not available to push data to the requested Azure region.
REGION = "Region"
#: Required features are not enabled.
FEATURE = "Feature"
#: Subscription does not have required offer types.
OFFER_TYPE = "OfferType"
#: Subscription has not registered to Microsoft.DataBox and Service does not have the subscription
#: notification.
NO_SUBSCRIPTION_INFO = "NoSubscriptionInfo"
#: The product is not yet available.
NOT_AVAILABLE = "NotAvailable"
#: The product is out of stock.
OUT_OF_STOCK = "OutOfStock"
class DoubleEncryptionStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Defines secondary layer of software-based encryption enablement.
"""
#: Double encryption is disabled.
DISABLED = "Disabled"
#: Double encryption is enabled.
ENABLED = "Enabled"
class ImageType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Type of the image
"""
#: Main image.
MAIN_IMAGE = "MainImage"
#: Bullet image.
BULLET_IMAGE = "BulletImage"
#: Generic image.
GENERIC_IMAGE = "GenericImage"
class LengthHeightUnit(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Unit for the dimensions of length, height and width.
"""
#: Inch, applicable for West US.
IN_ENUM = "IN"
#: Centimeter.
CM = "CM"
class LinkType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Type of link
"""
#: Generic link.
GENERIC = "Generic"
#: Terms and conditions link.
TERMS_AND_CONDITIONS = "TermsAndConditions"
#: Link to product specification.
SPECIFICATION = "Specification"
#: Link to product documentation.
DOCUMENTATION = "Documentation"
#: Link to know more.
KNOW_MORE = "KnowMore"
#: Link to sign up for products.
SIGN_UP = "SignUp"
class MeteringType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Represents Metering type (eg one-time or recurrent)
"""
#: One time billing.
ONE_TIME = "OneTime"
#: Recurring billing.
RECURRING = "Recurring"
#: Adhoc billing.
ADHOC = "Adhoc"
class NotificationStageName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Name of the stage.
"""
#: Notification at order item shipped from microsoft datacenter.
SHIPPED = "Shipped"
#: Notification at order item delivered to customer.
DELIVERED = "Delivered"
class OrderItemCancellationEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Describes whether the orderItem is cancellable or not.
"""
#: Order item can be cancelled without fee.
CANCELLABLE = "Cancellable"
#: Order item can be cancelled with fee.
CANCELLABLE_WITH_FEE = "CancellableWithFee"
#: Order item not cancellable.
NOT_CANCELLABLE = "NotCancellable"
class OrderItemReturnEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Describes whether the orderItem is returnable or not.
"""
#: Order item can be returned without fee.
RETURNABLE = "Returnable"
#: Order item can be returned with fee.
RETURNABLE_WITH_FEE = "ReturnableWithFee"
#: Order item not returnable.
NOT_RETURNABLE = "NotReturnable"
class OrderItemType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Order item type.
"""
#: Purchase OrderItem.
PURCHASE = "Purchase"
#: Rental OrderItem.
RENTAL = "Rental"
class Origin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit
logs UX. Default value is "user,system"
"""
USER = "user"
SYSTEM = "system"
USER_SYSTEM = "user,system"
class StageName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Stage name
"""
#: Currently in draft mode and can still be cancelled.
PLACED = "Placed"
#: Order is currently in draft mode and can still be cancelled.
IN_REVIEW = "InReview"
#: Order is confirmed.
CONFIRMED = "Confirmed"
#: Order is ready to ship.
READY_TO_SHIP = "ReadyToShip"
#: Order is in transit to customer.
SHIPPED = "Shipped"
#: Order is delivered to customer.
DELIVERED = "Delivered"
#: Order is in use at customer site.
IN_USE = "InUse"
#: Return has been initiated by customer.
RETURN_INITIATED = "ReturnInitiated"
#: Order is in transit from customer to microsoft.
RETURN_PICKED_UP = "ReturnPickedUp"
#: Order has been received back to microsoft.
RETURNED_TO_MICROSOFT = "ReturnedToMicrosoft"
#: Return has now completed.
RETURN_COMPLETED = "ReturnCompleted"
#: Order has been cancelled.
CANCELLED = "Cancelled"
class StageStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Stage status.
"""
#: No status available yet.
NONE = "None"
#: Stage is in progress.
IN_PROGRESS = "InProgress"
#: Stage has succeeded.
SUCCEEDED = "Succeeded"
#: Stage has failed.
FAILED = "Failed"
#: Stage has been cancelled.
CANCELLED = "Cancelled"
#: Stage is cancelling.
CANCELLING = "Cancelling"
class SupportedFilterTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Type of product filter.
"""
#: Ship to country.
SHIP_TO_COUNTRIES = "ShipToCountries"
#: Double encryption status.
DOUBLE_ENCRYPTION_STATUS = "DoubleEncryptionStatus"
class TransportShipmentTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Indicates Shipment Logistics type that the customer preferred.
"""
#: Shipment Logistics is handled by the customer.
CUSTOMER_MANAGED = "CustomerManaged"
#: Shipment Logistics is handled by Microsoft.
MICROSOFT_MANAGED = "MicrosoftManaged"
class WeightMeasurementUnit(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Unit for the dimensions of weight.
"""
#: Pounds.
LBS = "LBS"
#: Kilograms.
KGS = "KGS"

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,13 @@
# 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 ._edge_order_management_client_operations import EdgeOrderManagementClientOperationsMixin
__all__ = [
'EdgeOrderManagementClientOperationsMixin',
]

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1 @@
# Marker file for PEP 561.

Просмотреть файл

@ -0,0 +1,9 @@
[packaging]
package_name = "azure-mgmt-edgeorder"
package_nspkg = "azure-mgmt-nspkg"
package_pprint_name = "Edgeorder Management"
package_doc_id = ""
is_stable = false
is_arm = true
need_msrestazure = false
need_azuremgmtcore = true

Просмотреть файл

@ -0,0 +1,2 @@
[bdist_wheel]
universal=1

Просмотреть файл

@ -0,0 +1,91 @@
#!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------
import re
import os.path
from io import open
from setuptools import find_packages, setup
# Change the PACKAGE_NAME only to change folder and different name
PACKAGE_NAME = "azure-mgmt-edgeorder"
PACKAGE_PPRINT_NAME = "Edgeorder Management"
# a-b-c => a/b/c
package_folder_path = PACKAGE_NAME.replace('-', '/')
# a-b-c => a.b.c
namespace_name = PACKAGE_NAME.replace('-', '.')
# azure v0.x is not compatible with this package
# azure v0.x used to have a __version__ attribute (newer versions don't)
try:
import azure
try:
ver = azure.__version__
raise Exception(
'This package is incompatible with azure=={}. '.format(ver) +
'Uninstall it with "pip uninstall azure".'
)
except AttributeError:
pass
except ImportError:
pass
# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py')
if os.path.exists(os.path.join(package_folder_path, 'version.py'))
else os.path.join(package_folder_path, '_version.py'), 'r') as fd:
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
with open('README.md', encoding='utf-8') as f:
readme = f.read()
with open('CHANGELOG.md', encoding='utf-8') as f:
changelog = f.read()
setup(
name=PACKAGE_NAME,
version=version,
description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME),
long_description=readme + '\n\n' + changelog,
long_description_content_type='text/markdown',
license='MIT License',
author='Microsoft Corporation',
author_email='azpysdkhelp@microsoft.com',
url='https://github.com/Azure/azure-sdk-for-python',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'License :: OSI Approved :: MIT License',
],
zip_safe=False,
packages=find_packages(exclude=[
'tests',
# Exclude packages that will be covered by PEP420 or nspkg
'azure',
'azure.mgmt',
]),
install_requires=[
'msrest>=0.6.21',
'azure-common~=1.1',
'azure-mgmt-core>=1.2.0,<2.0.0',
],
extras_require={
":python_version<'3.0'": ['azure-mgmt-nspkg'],
}
)

33
sdk/edgeorder/ci.yml Normal file
Просмотреть файл

@ -0,0 +1,33 @@
# DO NOT EDIT THIS FILE
# This file is generated automatically and any changes will be lost.
trigger:
branches:
include:
- main
- hotfix/*
- release/*
- restapi*
paths:
include:
- sdk/edgeorder/
pr:
branches:
include:
- main
- feature/*
- hotfix/*
- release/*
- restapi*
paths:
include:
- sdk/edgeorder/
extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: edgeorder
Artifacts:
- name: azure-mgmt-edgeorder
safeName: azuremgmtedgeorder

Просмотреть файл

@ -320,6 +320,7 @@ opentelemetry-sdk<2.0.0,>=1.0.0
#override azure-mgmt-costmanagement msrest>=0.6.21
#override azure-mgmt-testbase msrest>=0.6.21
#override azure-mgmt-agrifood msrest>=0.6.21
#override azure-mgmt-edgeorder msrest>=0.6.21
#override azure-mgmt-redis msrest>=0.6.21
#override azure-mgmt-guestconfig msrest>=0.6.21
#override azure-mgmt-recoveryservices msrest>=0.6.21