Skip to content

Commit 1bed1fd

Browse files
Azure CLI BotSDKAutomsyyc
authored
[AutoRelease] t2-iothubprovisioningservices-2021-07-15-81882 (Azure#19816)
* 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 Co-authored-by: SDKAuto <[email protected]> Co-authored-by: msyyc <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent c9c5f52 commit 1bed1fd

File tree

9 files changed

+74
-54
lines changed

9 files changed

+74
-54
lines changed

sdk/iothub/azure-mgmt-iothubprovisioningservices/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 1.0.0 (2021-07-15)
4+
5+
**Features**
6+
7+
- Model CertificateBodyDescription has a new parameter is_verified
8+
39
## 1.0.0b1 (2021-05-14)
410

511
This is beta preview version.
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.4.2",
3-
"use": "@autorest/[email protected]",
4-
"commit": "51d02bcb2421ebf41e0380f0c1542b07badd01b3",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "933b6d3d88fd5fc93be36731c2837b7b109ba49a",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"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",
9+
"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",
710
"readme": "specification/deviceprovisioningservices/resource-manager/readme.md"
811
}

sdk/iothub/azure-mgmt-iothubprovisioningservices/azure/mgmt/iothubprovisioningservices/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b1"
9+
VERSION = "1.0.0"

sdk/iothub/azure-mgmt-iothubprovisioningservices/azure/mgmt/iothubprovisioningservices/aio/operations/_dps_certificate_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def get(
4747
resource_group_name: str,
4848
provisioning_service_name: str,
4949
if_match: Optional[str] = None,
50-
**kwargs
50+
**kwargs: Any
5151
) -> "_models.CertificateResponse":
5252
"""Get the certificate from the provisioning service.
5353
@@ -117,7 +117,7 @@ async def create_or_update(
117117
certificate_name: str,
118118
certificate_description: "_models.CertificateBodyDescription",
119119
if_match: Optional[str] = None,
120-
**kwargs
120+
**kwargs: Any
121121
) -> "_models.CertificateResponse":
122122
"""Upload the certificate to the provisioning service.
123123
@@ -203,7 +203,7 @@ async def delete(
203203
certificate_last_updated: Optional[datetime.datetime] = None,
204204
certificate_has_private_key: Optional[bool] = None,
205205
certificate_nonce: Optional[str] = None,
206-
**kwargs
206+
**kwargs: Any
207207
) -> None:
208208
"""Delete the Provisioning Service Certificate.
209209
@@ -301,7 +301,7 @@ async def list(
301301
self,
302302
resource_group_name: str,
303303
provisioning_service_name: str,
304-
**kwargs
304+
**kwargs: Any
305305
) -> "_models.CertificateListDescription":
306306
"""Get all the certificates tied to the provisioning service.
307307
@@ -370,7 +370,7 @@ async def generate_verification_code(
370370
certificate_last_updated: Optional[datetime.datetime] = None,
371371
certificate_has_private_key: Optional[bool] = None,
372372
certificate_nonce: Optional[str] = None,
373-
**kwargs
373+
**kwargs: Any
374374
) -> "_models.VerificationCodeResponse":
375375
"""Generate verification code for Proof of Possession.
376376
@@ -481,7 +481,7 @@ async def verify_certificate(
481481
certificate_last_updated: Optional[datetime.datetime] = None,
482482
certificate_has_private_key: Optional[bool] = None,
483483
certificate_nonce: Optional[str] = None,
484-
**kwargs
484+
**kwargs: Any
485485
) -> "_models.CertificateResponse":
486486
"""Verify certificate's private key possession.
487487

sdk/iothub/azure-mgmt-iothubprovisioningservices/azure/mgmt/iothubprovisioningservices/aio/operations/_iot_dps_resource_operations.py

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def get(
4747
self,
4848
provisioning_service_name: str,
4949
resource_group_name: str,
50-
**kwargs
50+
**kwargs: Any
5151
) -> "_models.ProvisioningServiceDescription":
5252
"""Get the non-security related metadata of the provisioning service.
5353
@@ -109,7 +109,7 @@ async def _create_or_update_initial(
109109
resource_group_name: str,
110110
provisioning_service_name: str,
111111
iot_dps_description: "_models.ProvisioningServiceDescription",
112-
**kwargs
112+
**kwargs: Any
113113
) -> "_models.ProvisioningServiceDescription":
114114
cls = kwargs.pop('cls', None) # type: ClsType["_models.ProvisioningServiceDescription"]
115115
error_map = {
@@ -167,7 +167,7 @@ async def begin_create_or_update(
167167
resource_group_name: str,
168168
provisioning_service_name: str,
169169
iot_dps_description: "_models.ProvisioningServiceDescription",
170-
**kwargs
170+
**kwargs: Any
171171
) -> AsyncLROPoller["_models.ProvisioningServiceDescription"]:
172172
"""Create or update the metadata of the provisioning service.
173173
@@ -183,8 +183,8 @@ async def begin_create_or_update(
183183
:type iot_dps_description: ~azure.mgmt.iothubprovisioningservices.models.ProvisioningServiceDescription
184184
:keyword callable cls: A custom type or function that will be passed the direct response
185185
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
186-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
187-
False for no polling, or your own initialized polling object for a personal polling strategy.
186+
:keyword polling: By default, your polling method will be AsyncARMPolling.
187+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
188188
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
189189
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
190190
:return: An instance of AsyncLROPoller that returns either ProvisioningServiceDescription or the result of cls(response)
@@ -242,7 +242,7 @@ async def _update_initial(
242242
resource_group_name: str,
243243
provisioning_service_name: str,
244244
provisioning_service_tags: "_models.TagsResource",
245-
**kwargs
245+
**kwargs: Any
246246
) -> "_models.ProvisioningServiceDescription":
247247
cls = kwargs.pop('cls', None) # type: ClsType["_models.ProvisioningServiceDescription"]
248248
error_map = {
@@ -295,7 +295,7 @@ async def begin_update(
295295
resource_group_name: str,
296296
provisioning_service_name: str,
297297
provisioning_service_tags: "_models.TagsResource",
298-
**kwargs
298+
**kwargs: Any
299299
) -> AsyncLROPoller["_models.ProvisioningServiceDescription"]:
300300
"""Update an existing provisioning service's tags.
301301
@@ -311,8 +311,8 @@ async def begin_update(
311311
:type provisioning_service_tags: ~azure.mgmt.iothubprovisioningservices.models.TagsResource
312312
:keyword callable cls: A custom type or function that will be passed the direct response
313313
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
314-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
315-
False for no polling, or your own initialized polling object for a personal polling strategy.
314+
:keyword polling: By default, your polling method will be AsyncARMPolling.
315+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
316316
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
317317
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
318318
:return: An instance of AsyncLROPoller that returns either ProvisioningServiceDescription or the result of cls(response)
@@ -369,7 +369,7 @@ async def _delete_initial(
369369
self,
370370
provisioning_service_name: str,
371371
resource_group_name: str,
372-
**kwargs
372+
**kwargs: Any
373373
) -> None:
374374
cls = kwargs.pop('cls', None) # type: ClsType[None]
375375
error_map = {
@@ -414,7 +414,7 @@ async def begin_delete(
414414
self,
415415
provisioning_service_name: str,
416416
resource_group_name: str,
417-
**kwargs
417+
**kwargs: Any
418418
) -> AsyncLROPoller[None]:
419419
"""Delete the Provisioning Service.
420420
@@ -426,8 +426,8 @@ async def begin_delete(
426426
:type resource_group_name: str
427427
:keyword callable cls: A custom type or function that will be passed the direct response
428428
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
429-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
430-
False for no polling, or your own initialized polling object for a personal polling strategy.
429+
:keyword polling: By default, your polling method will be AsyncARMPolling.
430+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
431431
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
432432
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
433433
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@@ -478,7 +478,7 @@ def get_long_running_output(pipeline_response):
478478

479479
def list_by_subscription(
480480
self,
481-
**kwargs
481+
**kwargs: Any
482482
) -> AsyncIterable["_models.ProvisioningServiceDescriptionListResult"]:
483483
"""Get all the provisioning services in a subscription.
484484
@@ -548,7 +548,7 @@ async def get_next(next_link=None):
548548
def list_by_resource_group(
549549
self,
550550
resource_group_name: str,
551-
**kwargs
551+
**kwargs: Any
552552
) -> AsyncIterable["_models.ProvisioningServiceDescriptionListResult"]:
553553
"""Get a list of all provisioning services in the given resource group.
554554
@@ -622,7 +622,7 @@ async def get_operation_result(
622622
resource_group_name: str,
623623
provisioning_service_name: str,
624624
asyncinfo: str = "true",
625-
**kwargs
625+
**kwargs: Any
626626
) -> "_models.AsyncOperationResult":
627627
"""Gets the status of a long running operation, such as create, update or delete a provisioning
628628
service.
@@ -691,7 +691,7 @@ def list_valid_skus(
691691
self,
692692
provisioning_service_name: str,
693693
resource_group_name: str,
694-
**kwargs
694+
**kwargs: Any
695695
) -> AsyncIterable["_models.IotDpsSkuDefinitionListResult"]:
696696
"""Get the list of valid SKUs for a provisioning service.
697697
@@ -767,7 +767,7 @@ async def get_next(next_link=None):
767767
async def check_provisioning_service_name_availability(
768768
self,
769769
arguments: "_models.OperationInputs",
770-
**kwargs
770+
**kwargs: Any
771771
) -> "_models.NameAvailabilityInfo":
772772
"""Check if a provisioning service name is available.
773773
@@ -831,7 +831,7 @@ def list_keys(
831831
self,
832832
provisioning_service_name: str,
833833
resource_group_name: str,
834-
**kwargs
834+
**kwargs: Any
835835
) -> AsyncIterable["_models.SharedAccessSignatureAuthorizationRuleListResult"]:
836836
"""Get the security metadata for a provisioning service.
837837
@@ -910,7 +910,7 @@ async def list_keys_for_key_name(
910910
provisioning_service_name: str,
911911
key_name: str,
912912
resource_group_name: str,
913-
**kwargs
913+
**kwargs: Any
914914
) -> "_models.SharedAccessSignatureAuthorizationRuleAccessRightsDescription":
915915
"""Get a shared access policy by name from a provisioning service.
916916
@@ -975,7 +975,7 @@ async def list_private_link_resources(
975975
self,
976976
resource_group_name: str,
977977
resource_name: str,
978-
**kwargs
978+
**kwargs: Any
979979
) -> "_models.PrivateLinkResources":
980980
"""List private link resources.
981981
@@ -1038,7 +1038,7 @@ async def get_private_link_resources(
10381038
resource_group_name: str,
10391039
resource_name: str,
10401040
group_id: str,
1041-
**kwargs
1041+
**kwargs: Any
10421042
) -> "_models.GroupIdInformation":
10431043
"""Get the specified private link resource.
10441044
@@ -1103,7 +1103,7 @@ async def list_private_endpoint_connections(
11031103
self,
11041104
resource_group_name: str,
11051105
resource_name: str,
1106-
**kwargs
1106+
**kwargs: Any
11071107
) -> List["_models.PrivateEndpointConnection"]:
11081108
"""List private endpoint connections.
11091109
@@ -1166,7 +1166,7 @@ async def get_private_endpoint_connection(
11661166
resource_group_name: str,
11671167
resource_name: str,
11681168
private_endpoint_connection_name: str,
1169-
**kwargs
1169+
**kwargs: Any
11701170
) -> "_models.PrivateEndpointConnection":
11711171
"""Get private endpoint connection.
11721172
@@ -1233,7 +1233,7 @@ async def _create_or_update_private_endpoint_connection_initial(
12331233
resource_name: str,
12341234
private_endpoint_connection_name: str,
12351235
private_endpoint_connection: "_models.PrivateEndpointConnection",
1236-
**kwargs
1236+
**kwargs: Any
12371237
) -> "_models.PrivateEndpointConnection":
12381238
cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"]
12391239
error_map = {
@@ -1293,7 +1293,7 @@ async def begin_create_or_update_private_endpoint_connection(
12931293
resource_name: str,
12941294
private_endpoint_connection_name: str,
12951295
private_endpoint_connection: "_models.PrivateEndpointConnection",
1296-
**kwargs
1296+
**kwargs: Any
12971297
) -> AsyncLROPoller["_models.PrivateEndpointConnection"]:
12981298
"""Create or update private endpoint connection.
12991299
@@ -1310,8 +1310,8 @@ async def begin_create_or_update_private_endpoint_connection(
13101310
:type private_endpoint_connection: ~azure.mgmt.iothubprovisioningservices.models.PrivateEndpointConnection
13111311
:keyword callable cls: A custom type or function that will be passed the direct response
13121312
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
1313-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
1314-
False for no polling, or your own initialized polling object for a personal polling strategy.
1313+
:keyword polling: By default, your polling method will be AsyncARMPolling.
1314+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
13151315
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
13161316
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
13171317
:return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response)
@@ -1371,7 +1371,7 @@ async def _delete_private_endpoint_connection_initial(
13711371
resource_group_name: str,
13721372
resource_name: str,
13731373
private_endpoint_connection_name: str,
1374-
**kwargs
1374+
**kwargs: Any
13751375
) -> Optional["_models.PrivateEndpointConnection"]:
13761376
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.PrivateEndpointConnection"]]
13771377
error_map = {
@@ -1426,7 +1426,7 @@ async def begin_delete_private_endpoint_connection(
14261426
resource_group_name: str,
14271427
resource_name: str,
14281428
private_endpoint_connection_name: str,
1429-
**kwargs
1429+
**kwargs: Any
14301430
) -> AsyncLROPoller["_models.PrivateEndpointConnection"]:
14311431
"""Delete private endpoint connection.
14321432
@@ -1441,8 +1441,8 @@ async def begin_delete_private_endpoint_connection(
14411441
:type private_endpoint_connection_name: str
14421442
:keyword callable cls: A custom type or function that will be passed the direct response
14431443
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
1444-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
1445-
False for no polling, or your own initialized polling object for a personal polling strategy.
1444+
:keyword polling: By default, your polling method will be AsyncARMPolling.
1445+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
14461446
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
14471447
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
14481448
:return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response)

sdk/iothub/azure-mgmt-iothubprovisioningservices/azure/mgmt/iothubprovisioningservices/aio/operations/_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4343

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

sdk/iothub/azure-mgmt-iothubprovisioningservices/azure/mgmt/iothubprovisioningservices/models/_models.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@ class CertificateBodyDescription(msrest.serialization.Model):
3939
:param certificate: Base-64 representation of the X509 leaf certificate .cer file or just .pem
4040
file content.
4141
:type certificate: str
42+
:param is_verified: True indicates that the certificate will be created in verified state and
43+
proof of possession will not be required.
44+
:type is_verified: bool
4245
"""
4346

4447
_attribute_map = {
4548
'certificate': {'key': 'certificate', 'type': 'str'},
49+
'is_verified': {'key': 'isVerified', 'type': 'bool'},
4650
}
4751

4852
def __init__(
@@ -51,6 +55,7 @@ def __init__(
5155
):
5256
super(CertificateBodyDescription, self).__init__(**kwargs)
5357
self.certificate = kwargs.get('certificate', None)
58+
self.is_verified = kwargs.get('is_verified', None)
5459

5560

5661
class CertificateListDescription(msrest.serialization.Model):

0 commit comments

Comments
 (0)