Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoRelease] t2-iothubprovisioningservices-2021-07-15-81882 #19816

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 1.0.0 (2021-07-15)

**Features**

- Model CertificateBodyDescription has a new parameter is_verified

## 1.0.0b1 (2021-05-14)

This is beta preview version.
Expand Down
11 changes: 7 additions & 4 deletions sdk/iothub/azure-mgmt-iothubprovisioningservices/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.4.2",
"use": "@autorest/[email protected]",
"commit": "51d02bcb2421ebf41e0380f0c1542b07badd01b3",
"autorest": "3.4.5",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "933b6d3d88fd5fc93be36731c2837b7b109ba49a",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/deviceprovisioningservices/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.6.6 --version=3.4.2",
"autorest_command": "autorest specification/deviceprovisioningservices/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.4 --use=@autorest/[email protected] --version=3.4.5",
"readme": "specification/deviceprovisioningservices/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b1"
VERSION = "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def get(
resource_group_name: str,
provisioning_service_name: str,
if_match: Optional[str] = None,
**kwargs
**kwargs: Any
) -> "_models.CertificateResponse":
"""Get the certificate from the provisioning service.

Expand Down Expand Up @@ -117,7 +117,7 @@ async def create_or_update(
certificate_name: str,
certificate_description: "_models.CertificateBodyDescription",
if_match: Optional[str] = None,
**kwargs
**kwargs: Any
) -> "_models.CertificateResponse":
"""Upload the certificate to the provisioning service.

Expand Down Expand Up @@ -203,7 +203,7 @@ async def delete(
certificate_last_updated: Optional[datetime.datetime] = None,
certificate_has_private_key: Optional[bool] = None,
certificate_nonce: Optional[str] = None,
**kwargs
**kwargs: Any
) -> None:
"""Delete the Provisioning Service Certificate.

Expand Down Expand Up @@ -301,7 +301,7 @@ async def list(
self,
resource_group_name: str,
provisioning_service_name: str,
**kwargs
**kwargs: Any
) -> "_models.CertificateListDescription":
"""Get all the certificates tied to the provisioning service.

Expand Down Expand Up @@ -370,7 +370,7 @@ async def generate_verification_code(
certificate_last_updated: Optional[datetime.datetime] = None,
certificate_has_private_key: Optional[bool] = None,
certificate_nonce: Optional[str] = None,
**kwargs
**kwargs: Any
) -> "_models.VerificationCodeResponse":
"""Generate verification code for Proof of Possession.

Expand Down Expand Up @@ -481,7 +481,7 @@ async def verify_certificate(
certificate_last_updated: Optional[datetime.datetime] = None,
certificate_has_private_key: Optional[bool] = None,
certificate_nonce: Optional[str] = None,
**kwargs
**kwargs: Any
) -> "_models.CertificateResponse":
"""Verify certificate's private key possession.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def get(
self,
provisioning_service_name: str,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> "_models.ProvisioningServiceDescription":
"""Get the non-security related metadata of the provisioning service.

Expand Down Expand Up @@ -109,7 +109,7 @@ async def _create_or_update_initial(
resource_group_name: str,
provisioning_service_name: str,
iot_dps_description: "_models.ProvisioningServiceDescription",
**kwargs
**kwargs: Any
) -> "_models.ProvisioningServiceDescription":
cls = kwargs.pop('cls', None) # type: ClsType["_models.ProvisioningServiceDescription"]
error_map = {
Expand Down Expand Up @@ -167,7 +167,7 @@ async def begin_create_or_update(
resource_group_name: str,
provisioning_service_name: str,
iot_dps_description: "_models.ProvisioningServiceDescription",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.ProvisioningServiceDescription"]:
"""Create or update the metadata of the provisioning service.

Expand All @@ -183,8 +183,8 @@ async def begin_create_or_update(
:type iot_dps_description: ~azure.mgmt.iothubprovisioningservices.models.ProvisioningServiceDescription
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either ProvisioningServiceDescription or the result of cls(response)
Expand Down Expand Up @@ -242,7 +242,7 @@ async def _update_initial(
resource_group_name: str,
provisioning_service_name: str,
provisioning_service_tags: "_models.TagsResource",
**kwargs
**kwargs: Any
) -> "_models.ProvisioningServiceDescription":
cls = kwargs.pop('cls', None) # type: ClsType["_models.ProvisioningServiceDescription"]
error_map = {
Expand Down Expand Up @@ -295,7 +295,7 @@ async def begin_update(
resource_group_name: str,
provisioning_service_name: str,
provisioning_service_tags: "_models.TagsResource",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.ProvisioningServiceDescription"]:
"""Update an existing provisioning service's tags.

Expand All @@ -311,8 +311,8 @@ async def begin_update(
:type provisioning_service_tags: ~azure.mgmt.iothubprovisioningservices.models.TagsResource
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either ProvisioningServiceDescription or the result of cls(response)
Expand Down Expand Up @@ -369,7 +369,7 @@ async def _delete_initial(
self,
provisioning_service_name: str,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -414,7 +414,7 @@ async def begin_delete(
self,
provisioning_service_name: str,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Delete the Provisioning Service.

Expand All @@ -426,8 +426,8 @@ async def begin_delete(
:type resource_group_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
Expand Down Expand Up @@ -478,7 +478,7 @@ def get_long_running_output(pipeline_response):

def list_by_subscription(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ProvisioningServiceDescriptionListResult"]:
"""Get all the provisioning services in a subscription.

Expand Down Expand Up @@ -548,7 +548,7 @@ async def get_next(next_link=None):
def list_by_resource_group(
self,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ProvisioningServiceDescriptionListResult"]:
"""Get a list of all provisioning services in the given resource group.

Expand Down Expand Up @@ -622,7 +622,7 @@ async def get_operation_result(
resource_group_name: str,
provisioning_service_name: str,
asyncinfo: str = "true",
**kwargs
**kwargs: Any
) -> "_models.AsyncOperationResult":
"""Gets the status of a long running operation, such as create, update or delete a provisioning
service.
Expand Down Expand Up @@ -691,7 +691,7 @@ def list_valid_skus(
self,
provisioning_service_name: str,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.IotDpsSkuDefinitionListResult"]:
"""Get the list of valid SKUs for a provisioning service.

Expand Down Expand Up @@ -767,7 +767,7 @@ async def get_next(next_link=None):
async def check_provisioning_service_name_availability(
self,
arguments: "_models.OperationInputs",
**kwargs
**kwargs: Any
) -> "_models.NameAvailabilityInfo":
"""Check if a provisioning service name is available.

Expand Down Expand Up @@ -831,7 +831,7 @@ def list_keys(
self,
provisioning_service_name: str,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.SharedAccessSignatureAuthorizationRuleListResult"]:
"""Get the security metadata for a provisioning service.

Expand Down Expand Up @@ -910,7 +910,7 @@ async def list_keys_for_key_name(
provisioning_service_name: str,
key_name: str,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> "_models.SharedAccessSignatureAuthorizationRuleAccessRightsDescription":
"""Get a shared access policy by name from a provisioning service.

Expand Down Expand Up @@ -975,7 +975,7 @@ async def list_private_link_resources(
self,
resource_group_name: str,
resource_name: str,
**kwargs
**kwargs: Any
) -> "_models.PrivateLinkResources":
"""List private link resources.

Expand Down Expand Up @@ -1038,7 +1038,7 @@ async def get_private_link_resources(
resource_group_name: str,
resource_name: str,
group_id: str,
**kwargs
**kwargs: Any
) -> "_models.GroupIdInformation":
"""Get the specified private link resource.

Expand Down Expand Up @@ -1103,7 +1103,7 @@ async def list_private_endpoint_connections(
self,
resource_group_name: str,
resource_name: str,
**kwargs
**kwargs: Any
) -> List["_models.PrivateEndpointConnection"]:
"""List private endpoint connections.

Expand Down Expand Up @@ -1166,7 +1166,7 @@ async def get_private_endpoint_connection(
resource_group_name: str,
resource_name: str,
private_endpoint_connection_name: str,
**kwargs
**kwargs: Any
) -> "_models.PrivateEndpointConnection":
"""Get private endpoint connection.

Expand Down Expand Up @@ -1233,7 +1233,7 @@ async def _create_or_update_private_endpoint_connection_initial(
resource_name: str,
private_endpoint_connection_name: str,
private_endpoint_connection: "_models.PrivateEndpointConnection",
**kwargs
**kwargs: Any
) -> "_models.PrivateEndpointConnection":
cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"]
error_map = {
Expand Down Expand Up @@ -1293,7 +1293,7 @@ async def begin_create_or_update_private_endpoint_connection(
resource_name: str,
private_endpoint_connection_name: str,
private_endpoint_connection: "_models.PrivateEndpointConnection",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.PrivateEndpointConnection"]:
"""Create or update private endpoint connection.

Expand All @@ -1310,8 +1310,8 @@ async def begin_create_or_update_private_endpoint_connection(
:type private_endpoint_connection: ~azure.mgmt.iothubprovisioningservices.models.PrivateEndpointConnection
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response)
Expand Down Expand Up @@ -1371,7 +1371,7 @@ async def _delete_private_endpoint_connection_initial(
resource_group_name: str,
resource_name: str,
private_endpoint_connection_name: str,
**kwargs
**kwargs: Any
) -> Optional["_models.PrivateEndpointConnection"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.PrivateEndpointConnection"]]
error_map = {
Expand Down Expand Up @@ -1426,7 +1426,7 @@ async def begin_delete_private_endpoint_connection(
resource_group_name: str,
resource_name: str,
private_endpoint_connection_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.PrivateEndpointConnection"]:
"""Delete private endpoint connection.

Expand All @@ -1441,8 +1441,8 @@ async def begin_delete_private_endpoint_connection(
:type private_endpoint_connection_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:

def list(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.OperationListResult"]:
"""Lists all of the available Microsoft.Devices REST API operations.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ class CertificateBodyDescription(msrest.serialization.Model):
:param certificate: Base-64 representation of the X509 leaf certificate .cer file or just .pem
file content.
:type certificate: str
:param is_verified: True indicates that the certificate will be created in verified state and
proof of possession will not be required.
:type is_verified: bool
"""

_attribute_map = {
'certificate': {'key': 'certificate', 'type': 'str'},
'is_verified': {'key': 'isVerified', 'type': 'bool'},
}

def __init__(
Expand All @@ -51,6 +55,7 @@ def __init__(
):
super(CertificateBodyDescription, self).__init__(**kwargs)
self.certificate = kwargs.get('certificate', None)
self.is_verified = kwargs.get('is_verified', None)


class CertificateListDescription(msrest.serialization.Model):
Expand Down
Loading