Skip to content

Commit

Permalink
[AutoRelease] t1-iothubprovisioningservices-2021-07-15-38178 (Azure#1…
Browse files Browse the repository at this point in the history
…9817)

* CodeGen from PR 15207 in Azure/azure-rest-api-specs
Deviceprovisiongservices t1 config (Azure#15207)

* sql t2 readme config

* readme config

* Update readme.python.md

* conflient resolve

* t1 revert

* Update readme.python.md

Co-authored-by: msyyc <[email protected]>

* version,CHANGELOG

* test

Co-authored-by: SDKAuto <[email protected]>
Co-authored-by: msyyc <[email protected]>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
  • Loading branch information
3 people authored Jul 16, 2021
1 parent d9d5cf8 commit eefe43b
Show file tree
Hide file tree
Showing 65 changed files with 3,041 additions and 2,444 deletions.
21 changes: 21 additions & 0 deletions sdk/iothub/azure-mgmt-iothubprovisioningservices/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Release History

## 0.3.0 (2021-07-15)

**Features**

- Model CertificateProperties has a new parameter certificate
- Model VerificationCodeResponseProperties has a new parameter certificate
- Model CertificateBodyDescription has a new parameter is_verified
- Model IotDpsPropertiesDescription has a new parameter ip_filter_rules
- Model IotDpsPropertiesDescription has a new parameter public_network_access
- Model IotDpsPropertiesDescription has a new parameter private_endpoint_connections
- Added operation IotDpsResourceOperations.get_private_link_resources
- Added operation IotDpsResourceOperations.list_private_link_resources
- Added operation IotDpsResourceOperations.get_private_endpoint_connection
- Added operation IotDpsResourceOperations.list_private_endpoint_connections
- Added operation IotDpsResourceOperations.create_or_update_private_endpoint_connection
- Added operation IotDpsResourceOperations.delete_private_endpoint_connection

**Breaking changes**

- Operation DpsCertificateOperations.create_or_update has a new signature

## 0.2.0 (2018-04-17)

**General Breaking changes**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/iothub/azure-mgmt-iothubprovisioningservices/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "933b6d3d88fd5fc93be36731c2837b7b109ba49a",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/deviceprovisioningservices/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
"readme": "specification/deviceprovisioningservices/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .iot_dps_client import IotDpsClient
from .version import VERSION
from ._configuration import IotDpsClientConfiguration
from ._iot_dps_client import IotDpsClient
__all__ = ['IotDpsClient', 'IotDpsClientConfiguration']

__all__ = ['IotDpsClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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 msrestazure import AzureConfiguration

from .version import VERSION


class IotDpsClientConfiguration(AzureConfiguration):
"""Configuration for IotDpsClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The subscription identifier.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be 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('azure-mgmt-iothubprovisioningservices/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,17 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.operations import Operations
from .operations.dps_certificate_operations import DpsCertificateOperations
from .operations.iot_dps_resource_operations import IotDpsResourceOperations
from . import models


class IotDpsClientConfiguration(AzureConfiguration):
"""Configuration for IotDpsClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The subscription identifier.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be 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)

self.add_user_agent('azure-mgmt-iothubprovisioningservices/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
from ._configuration import IotDpsClientConfiguration
from .operations import Operations
from .operations import DpsCertificateOperations
from .operations import IotDpsResourceOperations
from . import models


class IotDpsClient(object):
class IotDpsClient(SDKClient):
"""API for using the Azure IoT Hub Device Provisioning Service features.
:ivar config: Configuration for client.
Expand All @@ -76,10 +44,10 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = IotDpsClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(IotDpsClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-01-22'
self.api_version = '2020-03-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,93 +10,125 @@
# --------------------------------------------------------------------------

try:
from .error_messsage_py3 import ErrorMesssage
from .async_operation_result_py3 import AsyncOperationResult
from .certificate_properties_py3 import CertificateProperties
from .certificate_response_py3 import CertificateResponse
from .certificate_list_description_py3 import CertificateListDescription
from .certificate_body_description_py3 import CertificateBodyDescription
from .iot_dps_sku_info_py3 import IotDpsSkuInfo
from .iot_hub_definition_description_py3 import IotHubDefinitionDescription
from .shared_access_signature_authorization_rule_access_rights_description_py3 import SharedAccessSignatureAuthorizationRuleAccessRightsDescription
from .iot_dps_properties_description_py3 import IotDpsPropertiesDescription
from .provisioning_service_description_py3 import ProvisioningServiceDescription
from .resource_py3 import Resource
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .error_details_py3 import ErrorDetails, ErrorDetailsException
from .iot_dps_sku_definition_py3 import IotDpsSkuDefinition
from .operation_inputs_py3 import OperationInputs
from .name_availability_info_py3 import NameAvailabilityInfo
from .tags_resource_py3 import TagsResource
from .verification_code_response_properties_py3 import VerificationCodeResponseProperties
from .verification_code_response_py3 import VerificationCodeResponse
from .verification_code_request_py3 import VerificationCodeRequest
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 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 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 Resource
from ._models_py3 import SharedAccessSignatureAuthorizationRuleAccessRightsDescription
from ._models_py3 import TagsResource
from ._models_py3 import VerificationCodeRequest
from ._models_py3 import VerificationCodeResponse
from ._models_py3 import VerificationCodeResponseProperties
except (SyntaxError, ImportError):
from .error_messsage import ErrorMesssage
from .async_operation_result import AsyncOperationResult
from .certificate_properties import CertificateProperties
from .certificate_response import CertificateResponse
from .certificate_list_description import CertificateListDescription
from .certificate_body_description import CertificateBodyDescription
from .iot_dps_sku_info import IotDpsSkuInfo
from .iot_hub_definition_description import IotHubDefinitionDescription
from .shared_access_signature_authorization_rule_access_rights_description import SharedAccessSignatureAuthorizationRuleAccessRightsDescription
from .iot_dps_properties_description import IotDpsPropertiesDescription
from .provisioning_service_description import ProvisioningServiceDescription
from .resource import Resource
from .operation_display import OperationDisplay
from .operation import Operation
from .error_details import ErrorDetails, ErrorDetailsException
from .iot_dps_sku_definition import IotDpsSkuDefinition
from .operation_inputs import OperationInputs
from .name_availability_info import NameAvailabilityInfo
from .tags_resource import TagsResource
from .verification_code_response_properties import VerificationCodeResponseProperties
from .verification_code_response import VerificationCodeResponse
from .verification_code_request import VerificationCodeRequest
from .operation_paged import OperationPaged
from .provisioning_service_description_paged import ProvisioningServiceDescriptionPaged
from .iot_dps_sku_definition_paged import IotDpsSkuDefinitionPaged
from .shared_access_signature_authorization_rule_access_rights_description_paged import SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionPaged
from .iot_dps_client_enums import (
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 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 PrivateEndpoint
from ._models import PrivateEndpointConnection
from ._models import PrivateEndpointConnectionProperties
from ._models import PrivateLinkResources
from ._models import PrivateLinkServiceConnectionState
from ._models import ProvisioningServiceDescription
from ._models import Resource
from ._models import SharedAccessSignatureAuthorizationRuleAccessRightsDescription
from ._models import TagsResource
from ._models import VerificationCodeRequest
from ._models import VerificationCodeResponse
from ._models import VerificationCodeResponseProperties
from ._paged_models import IotDpsSkuDefinitionPaged
from ._paged_models import OperationPaged
from ._paged_models import ProvisioningServiceDescriptionPaged
from ._paged_models import SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionPaged
from ._iot_dps_client_enums import (
IotDpsSku,
State,
PublicNetworkAccess,
IpFilterActionType,
IpFilterTargetType,
PrivateLinkServiceConnectionStatus,
AllocationPolicy,
AccessRightsDescription,
NameUnavailabilityReason,
CertificatePurpose,
)

__all__ = [
'ErrorMesssage',
'AsyncOperationResult',
'CertificateBodyDescription',
'CertificateListDescription',
'CertificateProperties',
'CertificateResponse',
'CertificateListDescription',
'CertificateBodyDescription',
'ErrorDetails', 'ErrorDetailsException',
'ErrorMesssage',
'GroupIdInformation',
'GroupIdInformationProperties',
'IotDpsPropertiesDescription',
'IotDpsSkuDefinition',
'IotDpsSkuInfo',
'IotHubDefinitionDescription',
'SharedAccessSignatureAuthorizationRuleAccessRightsDescription',
'IotDpsPropertiesDescription',
'ProvisioningServiceDescription',
'Resource',
'OperationDisplay',
'IpFilterRule',
'NameAvailabilityInfo',
'Operation',
'ErrorDetails', 'ErrorDetailsException',
'IotDpsSkuDefinition',
'OperationDisplay',
'OperationInputs',
'NameAvailabilityInfo',
'PrivateEndpoint',
'PrivateEndpointConnection',
'PrivateEndpointConnectionProperties',
'PrivateLinkResources',
'PrivateLinkServiceConnectionState',
'ProvisioningServiceDescription',
'Resource',
'SharedAccessSignatureAuthorizationRuleAccessRightsDescription',
'TagsResource',
'VerificationCodeResponseProperties',
'VerificationCodeResponse',
'VerificationCodeRequest',
'VerificationCodeResponse',
'VerificationCodeResponseProperties',
'OperationPaged',
'ProvisioningServiceDescriptionPaged',
'IotDpsSkuDefinitionPaged',
'SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionPaged',
'IotDpsSku',
'State',
'PublicNetworkAccess',
'IpFilterActionType',
'IpFilterTargetType',
'PrivateLinkServiceConnectionStatus',
'AllocationPolicy',
'AccessRightsDescription',
'NameUnavailabilityReason',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,33 @@ class State(str, Enum):
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"
Expand Down
Loading

0 comments on commit eefe43b

Please sign in to comment.