forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 17328 in Azure/azure-rest-api-specs
Merge 9e0f0885caa45991b7d3941e486f27dba83480d2 into 8a061f1
- Loading branch information
SDKAuto
committed
Jan 18, 2022
1 parent
3a14782
commit df85927
Showing
16 changed files
with
4,556 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...bprovisioningservices/azure/mgmt/iothubprovisioningservices/v2021_10_15/azure/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
1 change: 1 addition & 0 deletions
1
...isioningservices/azure/mgmt/iothubprovisioningservices/v2021_10_15/azure/mgmt/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
1 change: 1 addition & 0 deletions
1
.../iothubprovisioningservices/v2021_10_15/azure/mgmt/iothubprovisioningservices/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
15 changes: 15 additions & 0 deletions
15
...sioningservices/v2021_10_15/azure/mgmt/iothubprovisioningservices/v2021_10_15/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from ._configuration import IotDpsClientConfiguration | ||
from ._iot_dps_client import IotDpsClient | ||
__all__ = ['IotDpsClient', 'IotDpsClientConfiguration'] | ||
|
||
from .version import VERSION | ||
|
||
__version__ = VERSION | ||
|
38 changes: 38 additions & 0 deletions
38
...gservices/v2021_10_15/azure/mgmt/iothubprovisioningservices/v2021_10_15/_configuration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest import Configuration | ||
|
||
from .version import VERSION | ||
|
||
|
||
class IotDpsClientConfiguration(Configuration): | ||
"""Configuration for IotDpsClient | ||
Note that all parameters used to create this instance are saved as instance | ||
attributes. | ||
:param subscription_id: The subscription identifier. | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, subscription_id, base_url=None): | ||
|
||
if subscription_id is None: | ||
raise ValueError("Parameter 'subscription_id' must not be None.") | ||
if not base_url: | ||
base_url = 'https://management.azure.com' | ||
|
||
super(IotDpsClientConfiguration, self).__init__(base_url) | ||
|
||
# Starting Autorest.Python 4.0.64, make connection pool activated by default | ||
self.keep_alive = True | ||
|
||
self.add_user_agent('iotdpsclient/{}'.format(VERSION)) | ||
|
||
self.subscription_id = subscription_id |
53 changes: 53 additions & 0 deletions
53
...services/v2021_10_15/azure/mgmt/iothubprovisioningservices/v2021_10_15/_iot_dps_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.service_client import SDKClient | ||
from msrest import Serializer, Deserializer | ||
|
||
from ._configuration import IotDpsClientConfiguration | ||
from msrest.exceptions import HttpOperationError | ||
from .operations import Operations | ||
from .operations import DpsCertificateOperations | ||
from .operations import IotDpsResourceOperations | ||
from . import models | ||
|
||
|
||
class IotDpsClient(SDKClient): | ||
"""API for using the Azure IoT Hub Device Provisioning Service features. | ||
:ivar config: Configuration for client. | ||
:vartype config: IotDpsClientConfiguration | ||
:ivar operations: Operations operations | ||
:vartype operations: azure.mgmt.iothubprovisioningservices.v2021_10_15.operations.Operations | ||
:ivar dps_certificate: DpsCertificate operations | ||
:vartype dps_certificate: azure.mgmt.iothubprovisioningservices.v2021_10_15.operations.DpsCertificateOperations | ||
:ivar iot_dps_resource: IotDpsResource operations | ||
:vartype iot_dps_resource: azure.mgmt.iothubprovisioningservices.v2021_10_15.operations.IotDpsResourceOperations | ||
:param subscription_id: The subscription identifier. | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, subscription_id, base_url=None): | ||
|
||
self.config = IotDpsClientConfiguration(subscription_id, base_url) | ||
super(IotDpsClient, self).__init__(None, self.config) | ||
|
||
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} | ||
self.api_version = '2021-10-15' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.operations = Operations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.dps_certificate = DpsCertificateOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.iot_dps_resource = IotDpsResourceOperations( | ||
self._client, self.config, self._serialize, self._deserialize) |
141 changes: 141 additions & 0 deletions
141
...services/v2021_10_15/azure/mgmt/iothubprovisioningservices/v2021_10_15/models/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
try: | ||
from ._models_py3 import AsyncOperationResult | ||
from ._models_py3 import CertificateBodyDescription | ||
from ._models_py3 import CertificateListDescription | ||
from ._models_py3 import CertificateProperties | ||
from ._models_py3 import CertificateResponse | ||
from ._models_py3 import ErrorDetails, ErrorDetailsException | ||
from ._models_py3 import ErrorMesssage | ||
from ._models_py3 import GroupIdInformation | ||
from ._models_py3 import GroupIdInformationProperties | ||
from ._models_py3 import IotDpsPropertiesDescription | ||
from ._models_py3 import IotDpsSkuDefinition | ||
from ._models_py3 import IotDpsSkuDefinitionListResult | ||
from ._models_py3 import IotDpsSkuInfo | ||
from ._models_py3 import IotHubDefinitionDescription | ||
from ._models_py3 import IpFilterRule | ||
from ._models_py3 import NameAvailabilityInfo | ||
from ._models_py3 import Operation | ||
from ._models_py3 import OperationDisplay | ||
from ._models_py3 import OperationInputs | ||
from ._models_py3 import OperationListResult | ||
from ._models_py3 import PrivateEndpoint | ||
from ._models_py3 import PrivateEndpointConnection | ||
from ._models_py3 import PrivateEndpointConnectionProperties | ||
from ._models_py3 import PrivateLinkResources | ||
from ._models_py3 import PrivateLinkServiceConnectionState | ||
from ._models_py3 import ProvisioningServiceDescription | ||
from ._models_py3 import ProvisioningServiceDescriptionListResult | ||
from ._models_py3 import Resource | ||
from ._models_py3 import SharedAccessSignatureAuthorizationRuleAccessRightsDescription | ||
from ._models_py3 import SharedAccessSignatureAuthorizationRuleListResult | ||
from ._models_py3 import SystemData | ||
from ._models_py3 import TagsResource | ||
from ._models_py3 import VerificationCodeRequest | ||
from ._models_py3 import VerificationCodeResponse | ||
from ._models_py3 import VerificationCodeResponseProperties | ||
except (SyntaxError, ImportError): | ||
from ._models import AsyncOperationResult | ||
from ._models import CertificateBodyDescription | ||
from ._models import CertificateListDescription | ||
from ._models import CertificateProperties | ||
from ._models import CertificateResponse | ||
from ._models import ErrorDetails, ErrorDetailsException | ||
from ._models import ErrorMesssage | ||
from ._models import GroupIdInformation | ||
from ._models import GroupIdInformationProperties | ||
from ._models import IotDpsPropertiesDescription | ||
from ._models import IotDpsSkuDefinition | ||
from ._models import IotDpsSkuDefinitionListResult | ||
from ._models import IotDpsSkuInfo | ||
from ._models import IotHubDefinitionDescription | ||
from ._models import IpFilterRule | ||
from ._models import NameAvailabilityInfo | ||
from ._models import Operation | ||
from ._models import OperationDisplay | ||
from ._models import OperationInputs | ||
from ._models import OperationListResult | ||
from ._models import PrivateEndpoint | ||
from ._models import PrivateEndpointConnection | ||
from ._models import PrivateEndpointConnectionProperties | ||
from ._models import PrivateLinkResources | ||
from ._models import PrivateLinkServiceConnectionState | ||
from ._models import ProvisioningServiceDescription | ||
from ._models import ProvisioningServiceDescriptionListResult | ||
from ._models import Resource | ||
from ._models import SharedAccessSignatureAuthorizationRuleAccessRightsDescription | ||
from ._models import SharedAccessSignatureAuthorizationRuleListResult | ||
from ._models import SystemData | ||
from ._models import TagsResource | ||
from ._models import VerificationCodeRequest | ||
from ._models import VerificationCodeResponse | ||
from ._models import VerificationCodeResponseProperties | ||
from ._iot_dps_client_enums import ( | ||
AccessRightsDescription, | ||
AllocationPolicy, | ||
CertificatePurpose, | ||
CreatedByType, | ||
IotDpsSku, | ||
IpFilterActionType, | ||
IpFilterTargetType, | ||
NameUnavailabilityReason, | ||
PrivateLinkServiceConnectionStatus, | ||
PublicNetworkAccess, | ||
State, | ||
) | ||
|
||
__all__ = [ | ||
'AsyncOperationResult', | ||
'CertificateBodyDescription', | ||
'CertificateListDescription', | ||
'CertificateProperties', | ||
'CertificateResponse', | ||
'ErrorDetails', 'ErrorDetailsException', | ||
'ErrorMesssage', | ||
'GroupIdInformation', | ||
'GroupIdInformationProperties', | ||
'IotDpsPropertiesDescription', | ||
'IotDpsSkuDefinition', | ||
'IotDpsSkuDefinitionListResult', | ||
'IotDpsSkuInfo', | ||
'IotHubDefinitionDescription', | ||
'IpFilterRule', | ||
'NameAvailabilityInfo', | ||
'Operation', | ||
'OperationDisplay', | ||
'OperationInputs', | ||
'OperationListResult', | ||
'PrivateEndpoint', | ||
'PrivateEndpointConnection', | ||
'PrivateEndpointConnectionProperties', | ||
'PrivateLinkResources', | ||
'PrivateLinkServiceConnectionState', | ||
'ProvisioningServiceDescription', | ||
'ProvisioningServiceDescriptionListResult', | ||
'Resource', | ||
'SharedAccessSignatureAuthorizationRuleAccessRightsDescription', | ||
'SharedAccessSignatureAuthorizationRuleListResult', | ||
'SystemData', | ||
'TagsResource', | ||
'VerificationCodeRequest', | ||
'VerificationCodeResponse', | ||
'VerificationCodeResponseProperties', | ||
'CreatedByType', | ||
'IotDpsSku', | ||
'State', | ||
'PublicNetworkAccess', | ||
'IpFilterActionType', | ||
'IpFilterTargetType', | ||
'PrivateLinkServiceConnectionStatus', | ||
'AllocationPolicy', | ||
'AccessRightsDescription', | ||
'NameUnavailabilityReason', | ||
'CertificatePurpose', | ||
] |
93 changes: 93 additions & 0 deletions
93
...1_10_15/azure/mgmt/iothubprovisioningservices/v2021_10_15/models/_iot_dps_client_enums.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from enum import Enum | ||
|
||
|
||
class CreatedByType(str, Enum): | ||
|
||
user = "User" | ||
application = "Application" | ||
managed_identity = "ManagedIdentity" | ||
key = "Key" | ||
|
||
|
||
class IotDpsSku(str, Enum): | ||
|
||
s1 = "S1" | ||
|
||
|
||
class State(str, Enum): | ||
|
||
activating = "Activating" | ||
active = "Active" | ||
deleting = "Deleting" | ||
deleted = "Deleted" | ||
activation_failed = "ActivationFailed" | ||
deletion_failed = "DeletionFailed" | ||
transitioning = "Transitioning" | ||
suspending = "Suspending" | ||
suspended = "Suspended" | ||
resuming = "Resuming" | ||
failing_over = "FailingOver" | ||
failover_failed = "FailoverFailed" | ||
|
||
|
||
class PublicNetworkAccess(str, Enum): | ||
|
||
enabled = "Enabled" | ||
disabled = "Disabled" | ||
|
||
|
||
class IpFilterActionType(str, Enum): | ||
|
||
accept = "Accept" | ||
reject = "Reject" | ||
|
||
|
||
class IpFilterTargetType(str, Enum): | ||
|
||
all = "all" | ||
service_api = "serviceApi" | ||
device_api = "deviceApi" | ||
|
||
|
||
class PrivateLinkServiceConnectionStatus(str, Enum): | ||
|
||
pending = "Pending" | ||
approved = "Approved" | ||
rejected = "Rejected" | ||
disconnected = "Disconnected" | ||
|
||
|
||
class AllocationPolicy(str, Enum): | ||
|
||
hashed = "Hashed" | ||
geo_latency = "GeoLatency" | ||
static = "Static" | ||
|
||
|
||
class AccessRightsDescription(str, Enum): | ||
|
||
service_config = "ServiceConfig" | ||
enrollment_read = "EnrollmentRead" | ||
enrollment_write = "EnrollmentWrite" | ||
device_connect = "DeviceConnect" | ||
registration_status_read = "RegistrationStatusRead" | ||
registration_status_write = "RegistrationStatusWrite" | ||
|
||
|
||
class NameUnavailabilityReason(str, Enum): | ||
|
||
invalid = "Invalid" | ||
already_exists = "AlreadyExists" | ||
|
||
|
||
class CertificatePurpose(str, Enum): | ||
|
||
client_authentication = "clientAuthentication" | ||
server_authentication = "serverAuthentication" |
Oops, something went wrong.