From 026fa074f18a07347d68cf059cfd7621a12e1855 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 15 Mar 2023 04:48:33 +0000 Subject: [PATCH] CodeGen from PR 22067 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.Devices to add version preview/2022-11-15-preview (#22067) * Adds base for updating Microsoft.Devices from version preview/2022-04-30-preview to version 2022-11-15-preview * Updates readme * Updates API version in new specs and examples * Huangc 2022 11 15 preview (#22110) * update iothub example with ipversion and new api version of 2022-11-15-preview * fix validation * fix with adding location into lro header * update manual failover json with adding azure-AsyncOperation * remove location to see if pass the check * fix * fix * fix * fix with adding location * Adding Azure-AsyncOperation to manualfailover * test fix * quick style fix for 2019-03-22 * update 2022-11-15-preview MF example --- .../azure-resourcemanager-iothub/CHANGELOG.md | 4 +- .../azure-resourcemanager-iothub/README.md | 27 +- .../azure-resourcemanager-iothub/SAMPLE.md | 234 ++++++------- .../azure-resourcemanager-iothub/pom.xml | 10 +- .../resourcemanager/iothub/IotHubManager.java | 2 +- .../iothub/fluent/CertificatesClient.java | 86 ++--- .../iothub/fluent/IotHubResourcesClient.java | 184 +++++------ .../PrivateEndpointConnectionsClient.java | 26 +- .../PrivateLinkResourcesOperationsClient.java | 24 +- .../fluent/ResourceProviderCommonsClient.java | 12 +- .../models/CertificateDescriptionInner.java | 4 + .../CertificateListDescriptionInner.java | 4 + .../CertificateWithNonceDescriptionInner.java | 4 + .../models/EndpointHealthDataInner.java | 4 + .../EventHubConsumerGroupInfoInner.java | 4 + .../models/GroupIdInformationInner.java | 4 + .../fluent/models/IotHubDescriptionInner.java | 4 + .../IotHubNameAvailabilityInfoInner.java | 4 + .../models/IotHubQuotaMetricInfoInner.java | 4 + .../models/IotHubSkuDescriptionInner.java | 4 + .../fluent/models/JobResponseInner.java | 4 + .../iothub/fluent/models/OperationInner.java | 4 + .../PrivateEndpointConnectionInner.java | 4 + .../models/PrivateLinkResourcesInner.java | 4 + .../models/RegistryStatisticsInner.java | 4 + ...AccessSignatureAuthorizationRuleInner.java | 4 + .../models/TestAllRoutesResultInner.java | 4 + .../fluent/models/TestRouteResultInner.java | 4 + .../UserSubscriptionQuotaListResultInner.java | 4 + .../CertificatesClientImpl.java | 154 ++++----- .../implementation/CertificatesImpl.java | 68 ++-- .../implementation/IotHubClientImpl.java | 2 +- .../implementation/IotHubDescriptionImpl.java | 12 +- .../IotHubResourcesClientImpl.java | 307 +++++++++--------- .../implementation/IotHubResourcesImpl.java | 148 ++++----- .../implementation/IotHubsClientImpl.java | 6 +- .../implementation/OperationsClientImpl.java | 2 +- .../PrivateEndpointConnectionsClientImpl.java | 48 +-- .../PrivateEndpointConnectionsImpl.java | 40 +-- ...vateLinkResourcesOperationsClientImpl.java | 34 +- .../PrivateLinkResourcesOperationsImpl.java | 24 +- .../ResourceProviderCommonsClientImpl.java | 18 +- .../ResourceProviderCommonsImpl.java | 18 +- .../iothub/models/ArmIdentity.java | 4 + .../iothub/models/ArmUserIdentity.java | 4 + .../iothub/models/AuthenticationType.java | 9 + .../iothub/models/Capabilities.java | 9 + .../iothub/models/CertificateProperties.java | 4 + .../CertificatePropertiesWithNonce.java | 4 + .../CertificateVerificationDescription.java | 4 + .../iothub/models/Certificates.java | 64 ++-- .../models/CloudToDeviceProperties.java | 4 + .../iothub/models/DefaultAction.java | 9 + .../EncryptionPropertiesDescription.java | 4 + .../models/EndpointHealthDataListResult.java | 4 + .../iothub/models/EndpointHealthStatus.java | 9 + .../iothub/models/EnrichmentProperties.java | 4 + .../iothub/models/ErrorDetails.java | 4 + .../EventHubConsumerGroupBodyDescription.java | 4 + .../models/EventHubConsumerGroupName.java | 4 + .../EventHubConsumerGroupsListResult.java | 4 + .../iothub/models/EventHubProperties.java | 4 + .../iothub/models/ExportDevicesRequest.java | 4 + .../iothub/models/FailoverInput.java | 4 + .../models/FallbackRouteProperties.java | 4 + .../iothub/models/FeedbackProperties.java | 4 + .../models/GroupIdInformationProperties.java | 4 + .../iothub/models/ImportDevicesRequest.java | 4 + .../iothub/models/IotHubCapacity.java | 4 + .../iothub/models/IotHubDescription.java | 20 +- .../models/IotHubDescriptionListResult.java | 4 + .../models/IotHubLocationDescription.java | 4 + .../iothub/models/IotHubProperties.java | 30 ++ .../models/IotHubPropertiesDeviceStreams.java | 4 + .../IotHubQuotaMetricInfoListResult.java | 4 + .../iothub/models/IotHubReplicaRoleType.java | 9 + .../iothub/models/IotHubResources.java | 140 ++++---- .../iothub/models/IotHubSku.java | 9 + .../IotHubSkuDescriptionListResult.java | 4 + .../iothub/models/IotHubSkuInfo.java | 4 + .../iothub/models/IpFilterRule.java | 4 + .../iothub/models/IpVersion.java | 50 +++ .../iothub/models/JobResponseListResult.java | 4 + .../iothub/models/JobType.java | 9 + .../iothub/models/KeyVaultKeyProperties.java | 4 + .../iothub/models/ManagedIdentity.java | 4 + .../iothub/models/MatchedRoute.java | 4 + .../models/MessagingEndpointProperties.java | 4 + .../resourcemanager/iothub/models/Name.java | 4 + .../iothub/models/NetworkRuleIpAction.java | 9 + .../iothub/models/NetworkRuleSetIpRule.java | 4 + .../models/NetworkRuleSetProperties.java | 4 + .../iothub/models/OperationDisplay.java | 4 + .../iothub/models/OperationInputs.java | 4 + .../iothub/models/OperationListResult.java | 4 + .../iothub/models/PrivateEndpoint.java | 4 + .../PrivateEndpointConnectionProperties.java | 4 + .../models/PrivateEndpointConnections.java | 24 +- .../PrivateLinkResourcesOperations.java | 22 +- .../PrivateLinkServiceConnectionState.java | 4 + .../PrivateLinkServiceConnectionStatus.java | 9 + .../iothub/models/PublicNetworkAccess.java | 9 + .../models/ResourceProviderCommons.java | 12 +- .../models/RootCertificateProperties.java | 4 + .../iothub/models/RouteCompilationError.java | 4 + .../iothub/models/RouteErrorPosition.java | 4 + .../iothub/models/RouteErrorRange.java | 4 + .../iothub/models/RouteErrorSeverity.java | 9 + .../iothub/models/RouteProperties.java | 4 + .../RoutingCosmosDBSqlApiProperties.java | 4 + .../iothub/models/RoutingEndpoints.java | 4 + .../models/RoutingEventHubProperties.java | 4 + .../iothub/models/RoutingMessage.java | 4 + .../iothub/models/RoutingProperties.java | 4 + ...tingServiceBusQueueEndpointProperties.java | 4 + ...tingServiceBusTopicEndpointProperties.java | 4 + .../iothub/models/RoutingSource.java | 9 + .../RoutingStorageContainerProperties.java | 4 + ...ingStorageContainerPropertiesEncoding.java | 9 + .../iothub/models/RoutingTwin.java | 4 + .../iothub/models/RoutingTwinProperties.java | 4 + ...sSignatureAuthorizationRuleListResult.java | 4 + .../models/StorageEndpointProperties.java | 4 + .../iothub/models/TagsResource.java | 4 + .../iothub/models/TestAllRoutesInput.java | 4 + .../iothub/models/TestResultStatus.java | 9 + .../iothub/models/TestRouteInput.java | 4 + .../iothub/models/TestRouteResultDetails.java | 4 + .../iothub/models/UserSubscriptionQuota.java | 4 + .../CertificatesCreateOrUpdateSamples.java | 2 +- .../generated/CertificatesDeleteSamples.java | 8 +- ...icatesGenerateVerificationCodeSamples.java | 7 +- .../generated/CertificatesGetSamples.java | 6 +- .../CertificatesListByIotHubSamples.java | 6 +- .../generated/CertificatesVerifySamples.java | 5 +- .../IotHubManualFailoverSamples.java | 8 +- ...bResourceCheckNameAvailabilitySamples.java | 6 +- ...rceCreateEventHubConsumerGroupSamples.java | 2 +- .../IotHubResourceCreateOrUpdateSamples.java | 6 +- ...rceDeleteEventHubConsumerGroupSamples.java | 7 +- .../IotHubResourceDeleteSamples.java | 6 +- .../IotHubResourceExportDevicesSamples.java | 5 +- ...tHubResourceGetByResourceGroupSamples.java | 8 +- ...otHubResourceGetEndpointHealthSamples.java | 6 +- ...sourceGetEventHubConsumerGroupSamples.java | 7 +- .../IotHubResourceGetJobSamples.java | 8 +- ...otHubResourceGetKeysForKeyNameSamples.java | 7 +- .../IotHubResourceGetQuotaMetricsSamples.java | 6 +- .../IotHubResourceGetStatsSamples.java | 6 +- .../IotHubResourceGetValidSkusSamples.java | 6 +- .../IotHubResourceImportDevicesSamples.java | 5 +- ...HubResourceListByResourceGroupSamples.java | 6 +- ...urceListEventHubConsumerGroupsSamples.java | 8 +- .../IotHubResourceListJobsSamples.java | 6 +- .../IotHubResourceListKeysSamples.java | 6 +- .../generated/IotHubResourceListSamples.java | 6 +- .../IotHubResourceTestAllRoutesSamples.java | 5 +- .../IotHubResourceTestRouteSamples.java | 5 +- .../IotHubResourceUpdateSamples.java | 5 +- .../generated/OperationsListSamples.java | 6 +- ...ivateEndpointConnectionsDeleteSamples.java | 6 +- .../PrivateEndpointConnectionsGetSamples.java | 7 +- ...PrivateEndpointConnectionsListSamples.java | 8 +- ...ivateEndpointConnectionsUpdateSamples.java | 5 +- ...ivateLinkResourcesOperationGetSamples.java | 8 +- ...vateLinkResourcesOperationListSamples.java | 8 +- ...iderCommonGetSubscriptionQuotaSamples.java | 6 +- 167 files changed, 1495 insertions(+), 1049 deletions(-) create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpVersion.java diff --git a/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md b/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md index e184a4b1e222e..e39150d0ebcf1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md +++ b/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.2.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2023-03-15) + +- Azure Resource Manager IotHub client library for Java. This package contains Microsoft Azure SDK for IotHub Management SDK. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2022-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/iothub/azure-resourcemanager-iothub/README.md b/sdk/iothub/azure-resourcemanager-iothub/README.md index 9cb71f2cd7fac..bd0264c770732 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/README.md +++ b/sdk/iothub/azure-resourcemanager-iothub/README.md @@ -2,7 +2,7 @@ Azure Resource Manager IotHub client library for Java. -This package contains Microsoft Azure SDK for IotHub Management SDK. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2022-04-30. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for IotHub Management SDK. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2022-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-iothub - 1.2.0-beta.2 + 1.2.0-beta.3 ``` [//]: # ({x-version-update-end}) @@ -41,19 +41,19 @@ Various documentation is available to help you get started Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client. -[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation. +[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation. ### Authentication -By default, Azure Active Directory token authentication depends on correct configure of following environment variables. +By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables. - `AZURE_CLIENT_ID` for Azure client ID. - `AZURE_TENANT_ID` for Azure tenant ID. - `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate. -In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`. +In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -With above configuration, `azure` client can be authenticated by following code: +With above configuration, `azure` client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -83,13 +83,13 @@ See [API design][design] for general introduction on design and key concepts on ## Contributing -For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md). +For details on contributing to this repository, see the [contributing guide][cg]. -1. Fork it -1. Create your feature branch (`git checkout -b my-new-feature`) -1. Commit your changes (`git commit -am 'Add some feature'`) -1. Push to the branch (`git push origin my-new-feature`) -1. Create new Pull Request +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments. [survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS @@ -100,3 +100,6 @@ For details on contributing to this repository, see the [contributing guide](htt [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty [authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md [design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md +[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md b/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md index 48e37e68b9827..32f34ea038922 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md +++ b/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md @@ -67,7 +67,7 @@ import com.azure.resourcemanager.iothub.models.CertificateProperties; /** Samples for Certificates CreateOrUpdate. */ public final class CertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_certificatescreateorupdate.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_certificatescreateorupdate.json */ /** * Sample code: Certificates_CreateOrUpdate. @@ -88,12 +88,10 @@ public final class CertificatesCreateOrUpdateSamples { ### Certificates_Delete ```java -import com.azure.core.util.Context; - /** Samples for Certificates Delete. */ public final class CertificatesDeleteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_certificatesdelete.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_certificatesdelete.json */ /** * Sample code: Certificates_Delete. @@ -101,7 +99,9 @@ public final class CertificatesDeleteSamples { * @param manager Entry point to IotHubManager. */ public static void certificatesDelete(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.certificates().deleteWithResponse("myResourceGroup", "myhub", "cert", "AAAAAAAADGk=", Context.NONE); + manager + .certificates() + .deleteWithResponse("myResourceGroup", "myhub", "cert", "AAAAAAAADGk=", com.azure.core.util.Context.NONE); } } ``` @@ -109,12 +109,10 @@ public final class CertificatesDeleteSamples { ### Certificates_GenerateVerificationCode ```java -import com.azure.core.util.Context; - /** Samples for Certificates GenerateVerificationCode. */ public final class CertificatesGenerateVerificationCodeSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_generateverificationcode.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_generateverificationcode.json */ /** * Sample code: Certificates_GenerateVerificationCode. @@ -124,7 +122,8 @@ public final class CertificatesGenerateVerificationCodeSamples { public static void certificatesGenerateVerificationCode(com.azure.resourcemanager.iothub.IotHubManager manager) { manager .certificates() - .generateVerificationCodeWithResponse("myResourceGroup", "testHub", "cert", "AAAAAAAADGk=", Context.NONE); + .generateVerificationCodeWithResponse( + "myResourceGroup", "testHub", "cert", "AAAAAAAADGk=", com.azure.core.util.Context.NONE); } } ``` @@ -132,12 +131,10 @@ public final class CertificatesGenerateVerificationCodeSamples { ### Certificates_Get ```java -import com.azure.core.util.Context; - /** Samples for Certificates Get. */ public final class CertificatesGetSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getcertificate.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getcertificate.json */ /** * Sample code: Certificates_Get. @@ -145,7 +142,7 @@ public final class CertificatesGetSamples { * @param manager Entry point to IotHubManager. */ public static void certificatesGet(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.certificates().getWithResponse("myResourceGroup", "testhub", "cert", Context.NONE); + manager.certificates().getWithResponse("myResourceGroup", "testhub", "cert", com.azure.core.util.Context.NONE); } } ``` @@ -153,12 +150,10 @@ public final class CertificatesGetSamples { ### Certificates_ListByIotHub ```java -import com.azure.core.util.Context; - /** Samples for Certificates ListByIotHub. */ public final class CertificatesListByIotHubSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listcertificates.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listcertificates.json */ /** * Sample code: Certificates_ListByIotHub. @@ -166,7 +161,7 @@ public final class CertificatesListByIotHubSamples { * @param manager Entry point to IotHubManager. */ public static void certificatesListByIotHub(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.certificates().listByIotHubWithResponse("myResourceGroup", "testhub", Context.NONE); + manager.certificates().listByIotHubWithResponse("myResourceGroup", "testhub", com.azure.core.util.Context.NONE); } } ``` @@ -174,13 +169,12 @@ public final class CertificatesListByIotHubSamples { ### Certificates_Verify ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.CertificateVerificationDescription; /** Samples for Certificates Verify. */ public final class CertificatesVerifySamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_certverify.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_certverify.json */ /** * Sample code: Certificates_Verify. @@ -196,7 +190,7 @@ public final class CertificatesVerifySamples { "cert", "AAAAAAAADGk=", new CertificateVerificationDescription().withCertificate("#####################################"), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -204,13 +198,12 @@ public final class CertificatesVerifySamples { ### IotHub_ManualFailover ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.FailoverInput; /** Samples for IotHub ManualFailover. */ public final class IotHubManualFailoverSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/IotHub_ManualFailover.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/IotHub_ManualFailover.json */ /** * Sample code: IotHub_ManualFailover. @@ -221,7 +214,10 @@ public final class IotHubManualFailoverSamples { manager .iotHubs() .manualFailover( - "testHub", "myResourceGroup", new FailoverInput().withFailoverRegion("testHub"), Context.NONE); + "testHub", + "myResourceGroup", + new FailoverInput().withFailoverRegion("testHub"), + com.azure.core.util.Context.NONE); } } ``` @@ -229,13 +225,12 @@ public final class IotHubManualFailoverSamples { ### IotHubResource_CheckNameAvailability ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.OperationInputs; /** Samples for IotHubResource CheckNameAvailability. */ public final class IotHubResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/checkNameAvailability.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/checkNameAvailability.json */ /** * Sample code: IotHubResource_CheckNameAvailability. @@ -245,7 +240,8 @@ public final class IotHubResourceCheckNameAvailabilitySamples { public static void iotHubResourceCheckNameAvailability(com.azure.resourcemanager.iothub.IotHubManager manager) { manager .iotHubResources() - .checkNameAvailabilityWithResponse(new OperationInputs().withName("test-request"), Context.NONE); + .checkNameAvailabilityWithResponse( + new OperationInputs().withName("test-request"), com.azure.core.util.Context.NONE); } } ``` @@ -258,7 +254,7 @@ import com.azure.resourcemanager.iothub.models.EventHubConsumerGroupName; /** Samples for IotHubResource CreateEventHubConsumerGroup. */ public final class IotHubResourceCreateEventHubConsumerGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_createconsumergroup.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_createconsumergroup.json */ /** * Sample code: IotHubResource_CreateEventHubConsumerGroup. @@ -289,6 +285,7 @@ import com.azure.resourcemanager.iothub.models.FeedbackProperties; import com.azure.resourcemanager.iothub.models.IotHubProperties; import com.azure.resourcemanager.iothub.models.IotHubSku; import com.azure.resourcemanager.iothub.models.IotHubSkuInfo; +import com.azure.resourcemanager.iothub.models.IpVersion; import com.azure.resourcemanager.iothub.models.MessagingEndpointProperties; import com.azure.resourcemanager.iothub.models.NetworkRuleIpAction; import com.azure.resourcemanager.iothub.models.NetworkRuleSetIpRule; @@ -306,7 +303,7 @@ import java.util.Map; /** Samples for IotHubResource CreateOrUpdate. */ public final class IotHubResourceCreateOrUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_createOrUpdate.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_createOrUpdate.json */ /** * Sample code: IotHubResource_CreateOrUpdate. @@ -385,7 +382,8 @@ public final class IotHubResourceCreateOrUpdateSamples { .withMaxDeliveryCount(10))) .withFeatures(Capabilities.NONE) .withEnableDataResidency(true) - .withRootCertificate(new RootCertificateProperties().withEnableRootCertificateV2(true))) + .withRootCertificate(new RootCertificateProperties().withEnableRootCertificateV2(true)) + .withIpVersion(IpVersion.IPV4IPV6)) .create(); } @@ -405,12 +403,10 @@ public final class IotHubResourceCreateOrUpdateSamples { ### IotHubResource_Delete ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource Delete. */ public final class IotHubResourceDeleteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_delete.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_delete.json */ /** * Sample code: IotHubResource_Delete. @@ -418,7 +414,7 @@ public final class IotHubResourceDeleteSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceDelete(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().delete("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().delete("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } ``` @@ -426,12 +422,10 @@ public final class IotHubResourceDeleteSamples { ### IotHubResource_DeleteEventHubConsumerGroup ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource DeleteEventHubConsumerGroup. */ public final class IotHubResourceDeleteEventHubConsumerGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_deleteconsumergroup.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_deleteconsumergroup.json */ /** * Sample code: IotHubResource_DeleteEventHubConsumerGroup. @@ -442,7 +436,8 @@ public final class IotHubResourceDeleteEventHubConsumerGroupSamples { com.azure.resourcemanager.iothub.IotHubManager manager) { manager .iotHubResources() - .deleteEventHubConsumerGroupWithResponse("myResourceGroup", "testHub", "events", "test", Context.NONE); + .deleteEventHubConsumerGroupWithResponse( + "myResourceGroup", "testHub", "events", "test", com.azure.core.util.Context.NONE); } } ``` @@ -450,7 +445,6 @@ public final class IotHubResourceDeleteEventHubConsumerGroupSamples { ### IotHubResource_ExportDevices ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.AuthenticationType; import com.azure.resourcemanager.iothub.models.ExportDevicesRequest; import com.azure.resourcemanager.iothub.models.ManagedIdentity; @@ -458,7 +452,7 @@ import com.azure.resourcemanager.iothub.models.ManagedIdentity; /** Samples for IotHubResource ExportDevices. */ public final class IotHubResourceExportDevicesSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_exportdevices.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_exportdevices.json */ /** * Sample code: IotHubResource_ExportDevices. @@ -479,7 +473,7 @@ public final class IotHubResourceExportDevicesSamples { new ManagedIdentity() .withUserAssignedIdentity( "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -487,12 +481,10 @@ public final class IotHubResourceExportDevicesSamples { ### IotHubResource_GetByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource GetByResourceGroup. */ public final class IotHubResourceGetByResourceGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_get.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_get.json */ /** * Sample code: IotHubResource_Get. @@ -500,7 +492,9 @@ public final class IotHubResourceGetByResourceGroupSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceGet(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().getByResourceGroupWithResponse("myResourceGroup", "testHub", Context.NONE); + manager + .iotHubResources() + .getByResourceGroupWithResponse("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } ``` @@ -508,12 +502,10 @@ public final class IotHubResourceGetByResourceGroupSamples { ### IotHubResource_GetEndpointHealth ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource GetEndpointHealth. */ public final class IotHubResourceGetEndpointHealthSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_routingendpointhealth.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_routingendpointhealth.json */ /** * Sample code: IotHubResource_GetEndpointHealth. @@ -521,7 +513,7 @@ public final class IotHubResourceGetEndpointHealthSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceGetEndpointHealth(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().getEndpointHealth("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().getEndpointHealth("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } ``` @@ -529,12 +521,10 @@ public final class IotHubResourceGetEndpointHealthSamples { ### IotHubResource_GetEventHubConsumerGroup ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource GetEventHubConsumerGroup. */ public final class IotHubResourceGetEventHubConsumerGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getconsumergroup.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getconsumergroup.json */ /** * Sample code: IotHubResource_ListEventHubConsumerGroups. @@ -545,7 +535,8 @@ public final class IotHubResourceGetEventHubConsumerGroupSamples { com.azure.resourcemanager.iothub.IotHubManager manager) { manager .iotHubResources() - .getEventHubConsumerGroupWithResponse("myResourceGroup", "testHub", "events", "test", Context.NONE); + .getEventHubConsumerGroupWithResponse( + "myResourceGroup", "testHub", "events", "test", com.azure.core.util.Context.NONE); } } ``` @@ -553,12 +544,10 @@ public final class IotHubResourceGetEventHubConsumerGroupSamples { ### IotHubResource_GetJob ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource GetJob. */ public final class IotHubResourceGetJobSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getjob.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getjob.json */ /** * Sample code: IotHubResource_GetJob. @@ -566,7 +555,9 @@ public final class IotHubResourceGetJobSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceGetJob(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().getJobWithResponse("myResourceGroup", "testHub", "test", Context.NONE); + manager + .iotHubResources() + .getJobWithResponse("myResourceGroup", "testHub", "test", com.azure.core.util.Context.NONE); } } ``` @@ -574,12 +565,10 @@ public final class IotHubResourceGetJobSamples { ### IotHubResource_GetKeysForKeyName ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource GetKeysForKeyName. */ public final class IotHubResourceGetKeysForKeyNameSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getkey.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getkey.json */ /** * Sample code: IotHubResource_GetKeysForKeyName. @@ -589,7 +578,8 @@ public final class IotHubResourceGetKeysForKeyNameSamples { public static void iotHubResourceGetKeysForKeyName(com.azure.resourcemanager.iothub.IotHubManager manager) { manager .iotHubResources() - .getKeysForKeyNameWithResponse("myResourceGroup", "testHub", "iothubowner", Context.NONE); + .getKeysForKeyNameWithResponse( + "myResourceGroup", "testHub", "iothubowner", com.azure.core.util.Context.NONE); } } ``` @@ -597,12 +587,10 @@ public final class IotHubResourceGetKeysForKeyNameSamples { ### IotHubResource_GetQuotaMetrics ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource GetQuotaMetrics. */ public final class IotHubResourceGetQuotaMetricsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_quotametrics.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_quotametrics.json */ /** * Sample code: IotHubResource_GetQuotaMetrics. @@ -610,7 +598,7 @@ public final class IotHubResourceGetQuotaMetricsSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceGetQuotaMetrics(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().getQuotaMetrics("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().getQuotaMetrics("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } ``` @@ -618,12 +606,10 @@ public final class IotHubResourceGetQuotaMetricsSamples { ### IotHubResource_GetStats ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource GetStats. */ public final class IotHubResourceGetStatsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_stats.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_stats.json */ /** * Sample code: IotHubResource_GetStats. @@ -631,7 +617,7 @@ public final class IotHubResourceGetStatsSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceGetStats(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().getStatsWithResponse("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().getStatsWithResponse("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } ``` @@ -639,12 +625,10 @@ public final class IotHubResourceGetStatsSamples { ### IotHubResource_GetValidSkus ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource GetValidSkus. */ public final class IotHubResourceGetValidSkusSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getskus.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getskus.json */ /** * Sample code: IotHubResource_GetValidSkus. @@ -652,7 +636,7 @@ public final class IotHubResourceGetValidSkusSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceGetValidSkus(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().getValidSkus("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().getValidSkus("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } ``` @@ -660,13 +644,12 @@ public final class IotHubResourceGetValidSkusSamples { ### IotHubResource_ImportDevices ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.ImportDevicesRequest; /** Samples for IotHubResource ImportDevices. */ public final class IotHubResourceImportDevicesSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_importdevices.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_importdevices.json */ /** * Sample code: IotHubResource_ImportDevices. @@ -680,7 +663,7 @@ public final class IotHubResourceImportDevicesSamples { "myResourceGroup", "testHub", new ImportDevicesRequest().withInputBlobContainerUri("testBlob").withOutputBlobContainerUri("testBlob"), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -688,12 +671,10 @@ public final class IotHubResourceImportDevicesSamples { ### IotHubResource_List ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource List. */ public final class IotHubResourceListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listbysubscription.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listbysubscription.json */ /** * Sample code: IotHubResource_ListBySubscription. @@ -701,7 +682,7 @@ public final class IotHubResourceListSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceListBySubscription(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().list(Context.NONE); + manager.iotHubResources().list(com.azure.core.util.Context.NONE); } } ``` @@ -709,12 +690,10 @@ public final class IotHubResourceListSamples { ### IotHubResource_ListByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource ListByResourceGroup. */ public final class IotHubResourceListByResourceGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listbyrg.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listbyrg.json */ /** * Sample code: IotHubResource_ListByResourceGroup. @@ -722,7 +701,7 @@ public final class IotHubResourceListByResourceGroupSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceListByResourceGroup(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().listByResourceGroup("myResourceGroup", Context.NONE); + manager.iotHubResources().listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE); } } ``` @@ -730,12 +709,10 @@ public final class IotHubResourceListByResourceGroupSamples { ### IotHubResource_ListEventHubConsumerGroups ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource ListEventHubConsumerGroups. */ public final class IotHubResourceListEventHubConsumerGroupsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listehgroups.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listehgroups.json */ /** * Sample code: IotHubResource_ListEventHubConsumerGroups. @@ -744,7 +721,9 @@ public final class IotHubResourceListEventHubConsumerGroupsSamples { */ public static void iotHubResourceListEventHubConsumerGroups( com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().listEventHubConsumerGroups("myResourceGroup", "testHub", "events", Context.NONE); + manager + .iotHubResources() + .listEventHubConsumerGroups("myResourceGroup", "testHub", "events", com.azure.core.util.Context.NONE); } } ``` @@ -752,12 +731,10 @@ public final class IotHubResourceListEventHubConsumerGroupsSamples { ### IotHubResource_ListJobs ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource ListJobs. */ public final class IotHubResourceListJobsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listjobs.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listjobs.json */ /** * Sample code: IotHubResource_ListJobs. @@ -765,7 +742,7 @@ public final class IotHubResourceListJobsSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceListJobs(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().listJobs("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().listJobs("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } ``` @@ -773,12 +750,10 @@ public final class IotHubResourceListJobsSamples { ### IotHubResource_ListKeys ```java -import com.azure.core.util.Context; - /** Samples for IotHubResource ListKeys. */ public final class IotHubResourceListKeysSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listkeys.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listkeys.json */ /** * Sample code: IotHubResource_ListKeys. @@ -786,7 +761,7 @@ public final class IotHubResourceListKeysSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceListKeys(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().listKeys("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().listKeys("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } ``` @@ -794,7 +769,6 @@ public final class IotHubResourceListKeysSamples { ### IotHubResource_TestAllRoutes ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.RoutingMessage; import com.azure.resourcemanager.iothub.models.RoutingSource; import com.azure.resourcemanager.iothub.models.TestAllRoutesInput; @@ -804,7 +778,7 @@ import java.util.Map; /** Samples for IotHubResource TestAllRoutes. */ public final class IotHubResourceTestAllRoutesSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_testallroutes.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_testallroutes.json */ /** * Sample code: IotHubResource_TestAllRoutes. @@ -824,7 +798,7 @@ public final class IotHubResourceTestAllRoutesSamples { .withBody("Body of message") .withAppProperties(mapOf("key1", "value1")) .withSystemProperties(mapOf("key1", "value1"))), - Context.NONE); + com.azure.core.util.Context.NONE); } @SuppressWarnings("unchecked") @@ -843,7 +817,6 @@ public final class IotHubResourceTestAllRoutesSamples { ### IotHubResource_TestRoute ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.RouteProperties; import com.azure.resourcemanager.iothub.models.RoutingMessage; import com.azure.resourcemanager.iothub.models.RoutingSource; @@ -855,7 +828,7 @@ import java.util.Map; /** Samples for IotHubResource TestRoute. */ public final class IotHubResourceTestRouteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_testnewroute.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_testnewroute.json */ /** * Sample code: IotHubResource_TestRoute. @@ -880,7 +853,7 @@ public final class IotHubResourceTestRouteSamples { .withSource(RoutingSource.DEVICE_MESSAGES) .withEndpointNames(Arrays.asList("id1")) .withIsEnabled(true)), - Context.NONE); + com.azure.core.util.Context.NONE); } @SuppressWarnings("unchecked") @@ -899,7 +872,6 @@ public final class IotHubResourceTestRouteSamples { ### IotHubResource_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.IotHubDescription; import java.util.HashMap; import java.util.Map; @@ -907,7 +879,7 @@ import java.util.Map; /** Samples for IotHubResource Update. */ public final class IotHubResourceUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_patch.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_patch.json */ /** * Sample code: IotHubResource_Update. @@ -918,7 +890,7 @@ public final class IotHubResourceUpdateSamples { IotHubDescription resource = manager .iotHubResources() - .getByResourceGroupWithResponse("myResourceGroup", "myHub", Context.NONE) + .getByResourceGroupWithResponse("myResourceGroup", "myHub", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("foo", "bar")).apply(); } @@ -939,12 +911,10 @@ public final class IotHubResourceUpdateSamples { ### Operations_List ```java -import com.azure.core.util.Context; - /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_operations.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_operations.json */ /** * Sample code: Operations_List. @@ -952,7 +922,7 @@ public final class OperationsListSamples { * @param manager Entry point to IotHubManager. */ public static void operationsList(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.operations().list(Context.NONE); + manager.operations().list(com.azure.core.util.Context.NONE); } } ``` @@ -960,12 +930,10 @@ public final class OperationsListSamples { ### PrivateEndpointConnections_Delete ```java -import com.azure.core.util.Context; - /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_deleteprivateendpointconnection.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_deleteprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Delete. @@ -975,7 +943,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { public static void privateEndpointConnectionDelete(com.azure.resourcemanager.iothub.IotHubManager manager) { manager .privateEndpointConnections() - .delete("myResourceGroup", "testHub", "myPrivateEndpointConnection", Context.NONE); + .delete("myResourceGroup", "testHub", "myPrivateEndpointConnection", com.azure.core.util.Context.NONE); } } ``` @@ -983,12 +951,10 @@ public final class PrivateEndpointConnectionsDeleteSamples { ### PrivateEndpointConnections_Get ```java -import com.azure.core.util.Context; - /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getprivateendpointconnection.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Get. @@ -998,7 +964,8 @@ public final class PrivateEndpointConnectionsGetSamples { public static void privateEndpointConnectionGet(com.azure.resourcemanager.iothub.IotHubManager manager) { manager .privateEndpointConnections() - .getWithResponse("myResourceGroup", "testHub", "myPrivateEndpointConnection", Context.NONE); + .getWithResponse( + "myResourceGroup", "testHub", "myPrivateEndpointConnection", com.azure.core.util.Context.NONE); } } ``` @@ -1006,12 +973,10 @@ public final class PrivateEndpointConnectionsGetSamples { ### PrivateEndpointConnections_List ```java -import com.azure.core.util.Context; - /** Samples for PrivateEndpointConnections List. */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listprivateendpointconnections.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listprivateendpointconnections.json */ /** * Sample code: PrivateEndpointConnections_List. @@ -1019,7 +984,9 @@ public final class PrivateEndpointConnectionsListSamples { * @param manager Entry point to IotHubManager. */ public static void privateEndpointConnectionsList(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.privateEndpointConnections().listWithResponse("myResourceGroup", "testHub", Context.NONE); + manager + .privateEndpointConnections() + .listWithResponse("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } ``` @@ -1027,7 +994,6 @@ public final class PrivateEndpointConnectionsListSamples { ### PrivateEndpointConnections_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.fluent.models.PrivateEndpointConnectionInner; import com.azure.resourcemanager.iothub.models.PrivateEndpointConnectionProperties; import com.azure.resourcemanager.iothub.models.PrivateLinkServiceConnectionState; @@ -1036,7 +1002,7 @@ import com.azure.resourcemanager.iothub.models.PrivateLinkServiceConnectionStatu /** Samples for PrivateEndpointConnections Update. */ public final class PrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_updateprivateendpointconnection.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_updateprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Update. @@ -1057,7 +1023,7 @@ public final class PrivateEndpointConnectionsUpdateSamples { new PrivateLinkServiceConnectionState() .withStatus(PrivateLinkServiceConnectionStatus.APPROVED) .withDescription("Approved by johndoe@contoso.com"))), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -1065,12 +1031,10 @@ public final class PrivateEndpointConnectionsUpdateSamples { ### PrivateLinkResourcesOperation_Get ```java -import com.azure.core.util.Context; - /** Samples for PrivateLinkResourcesOperation Get. */ public final class PrivateLinkResourcesOperationGetSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getprivatelinkresources.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getprivatelinkresources.json */ /** * Sample code: PrivateLinkResources_List. @@ -1078,7 +1042,9 @@ public final class PrivateLinkResourcesOperationGetSamples { * @param manager Entry point to IotHubManager. */ public static void privateLinkResourcesList(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.privateLinkResourcesOperations().getWithResponse("myResourceGroup", "testHub", "iotHub", Context.NONE); + manager + .privateLinkResourcesOperations() + .getWithResponse("myResourceGroup", "testHub", "iotHub", com.azure.core.util.Context.NONE); } } ``` @@ -1086,12 +1052,10 @@ public final class PrivateLinkResourcesOperationGetSamples { ### PrivateLinkResourcesOperation_List ```java -import com.azure.core.util.Context; - /** Samples for PrivateLinkResourcesOperation List. */ public final class PrivateLinkResourcesOperationListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listprivatelinkresources.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listprivatelinkresources.json */ /** * Sample code: PrivateLinkResources_List. @@ -1099,7 +1063,9 @@ public final class PrivateLinkResourcesOperationListSamples { * @param manager Entry point to IotHubManager. */ public static void privateLinkResourcesList(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.privateLinkResourcesOperations().listWithResponse("myResourceGroup", "testHub", Context.NONE); + manager + .privateLinkResourcesOperations() + .listWithResponse("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } ``` @@ -1107,12 +1073,10 @@ public final class PrivateLinkResourcesOperationListSamples { ### ResourceProviderCommon_GetSubscriptionQuota ```java -import com.azure.core.util.Context; - /** Samples for ResourceProviderCommon GetSubscriptionQuota. */ public final class ResourceProviderCommonGetSubscriptionQuotaSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_usages.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_usages.json */ /** * Sample code: ResourceProviderCommon_GetSubscriptionQuota. @@ -1121,7 +1085,7 @@ public final class ResourceProviderCommonGetSubscriptionQuotaSamples { */ public static void resourceProviderCommonGetSubscriptionQuota( com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.resourceProviderCommons().getSubscriptionQuotaWithResponse(Context.NONE); + manager.resourceProviderCommons().getSubscriptionQuotaWithResponse(com.azure.core.util.Context.NONE); } } ``` diff --git a/sdk/iothub/azure-resourcemanager-iothub/pom.xml b/sdk/iothub/azure-resourcemanager-iothub/pom.xml index 5089a154c7802..f68af9a7049f3 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/pom.xml +++ b/sdk/iothub/azure-resourcemanager-iothub/pom.xml @@ -1,3 +1,8 @@ + 4.0.0 @@ -13,7 +18,7 @@ jar Microsoft Azure SDK for IotHub Management - This package contains Microsoft Azure SDK for IotHub Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2022-04-30. + This package contains Microsoft Azure SDK for IotHub Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2022-11. https://github.com/Azure/azure-sdk-for-java @@ -38,7 +43,8 @@ UTF-8 - true + 0 + 0 diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java index 44c1d82f0bf63..7c57325744b79 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java @@ -227,7 +227,7 @@ public IotHubManager authenticate(TokenCredential credential, AzureProfile profi .append("-") .append("com.azure.resourcemanager.iothub") .append("/") - .append("1.2.0-beta.2"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/CertificatesClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/CertificatesClient.java index 86c05595bbd85..5b7d861b8dc63 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/CertificatesClient.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/CertificatesClient.java @@ -22,14 +22,16 @@ public interface CertificatesClient { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the JSON-serialized array of Certificate objects. + * @return the JSON-serialized array of Certificate objects along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CertificateListDescriptionInner listByIotHub(String resourceGroupName, String resourceName); + Response listByIotHubWithResponse( + String resourceGroupName, String resourceName, Context context); /** * Get the certificate list. @@ -38,16 +40,14 @@ public interface CertificatesClient { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the JSON-serialized array of Certificate objects along with {@link Response}. + * @return the JSON-serialized array of Certificate objects. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listByIotHubWithResponse( - String resourceGroupName, String resourceName, Context context); + CertificateListDescriptionInner listByIotHub(String resourceGroupName, String resourceName); /** * Get the certificate. @@ -57,14 +57,16 @@ Response listByIotHubWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate. + * @return the X509 Certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CertificateDescriptionInner get(String resourceGroupName, String resourceName, String certificateName); + Response getWithResponse( + String resourceGroupName, String resourceName, String certificateName, Context context); /** * Get the certificate. @@ -74,16 +76,14 @@ Response listByIotHubWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate along with {@link Response}. + * @return the X509 Certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String resourceName, String certificateName, Context context); + CertificateDescriptionInner get(String resourceGroupName, String resourceName, String certificateName); /** * Upload the certificate to the IoT hub. @@ -94,18 +94,23 @@ Response getWithResponse( * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param certificateDescription The certificate body. + * @param ifMatch ETag of the Certificate. Do not specify for creating a brand new certificate. Required to update + * an existing certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate. + * @return the X509 Certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CertificateDescriptionInner createOrUpdate( + Response createOrUpdateWithResponse( String resourceGroupName, String resourceName, String certificateName, - CertificateDescriptionInner certificateDescription); + CertificateDescriptionInner certificateDescription, + String ifMatch, + Context context); /** * Upload the certificate to the IoT hub. @@ -116,23 +121,18 @@ CertificateDescriptionInner createOrUpdate( * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param certificateDescription The certificate body. - * @param ifMatch ETag of the Certificate. Do not specify for creating a brand new certificate. Required to update - * an existing certificate. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate along with {@link Response}. + * @return the X509 Certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( + CertificateDescriptionInner createOrUpdate( String resourceGroupName, String resourceName, String certificateName, - CertificateDescriptionInner certificateDescription, - String ifMatch, - Context context); + CertificateDescriptionInner certificateDescription); /** * Delete an X509 certificate. @@ -143,13 +143,16 @@ Response createOrUpdateWithResponse( * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String resourceName, String certificateName, String ifMatch); + Response deleteWithResponse( + String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context); /** * Delete an X509 certificate. @@ -160,16 +163,13 @@ Response createOrUpdateWithResponse( * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context); + void delete(String resourceGroupName, String resourceName, String certificateName, String ifMatch); /** * Generate verification code for proof of possession flow. @@ -181,15 +181,16 @@ Response deleteWithResponse( * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate. + * @return the X509 Certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CertificateWithNonceDescriptionInner generateVerificationCode( - String resourceGroupName, String resourceName, String certificateName, String ifMatch); + Response generateVerificationCodeWithResponse( + String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context); /** * Generate verification code for proof of possession flow. @@ -201,16 +202,15 @@ CertificateWithNonceDescriptionInner generateVerificationCode( * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate along with {@link Response}. + * @return the X509 Certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response generateVerificationCodeWithResponse( - String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context); + CertificateWithNonceDescriptionInner generateVerificationCode( + String resourceGroupName, String resourceName, String certificateName, String ifMatch); /** * Verify certificate's private key possession. @@ -223,19 +223,21 @@ Response generateVerificationCodeWithRespo * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. * @param certificateVerificationBody The name of the certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate. + * @return the X509 Certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CertificateDescriptionInner verify( + Response verifyWithResponse( String resourceGroupName, String resourceName, String certificateName, String ifMatch, - CertificateVerificationDescription certificateVerificationBody); + CertificateVerificationDescription certificateVerificationBody, + Context context); /** * Verify certificate's private key possession. @@ -248,19 +250,17 @@ CertificateDescriptionInner verify( * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. * @param certificateVerificationBody The name of the certificate. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate along with {@link Response}. + * @return the X509 Certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response verifyWithResponse( + CertificateDescriptionInner verify( String resourceGroupName, String resourceName, String certificateName, String ifMatch, - CertificateVerificationDescription certificateVerificationBody, - Context context); + CertificateVerificationDescription certificateVerificationBody); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java index 232340cc1e30b..b1d1f94aa9ba5 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java @@ -39,14 +39,16 @@ public interface IotHubResourcesClient { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the non-security related metadata of an IoT hub. + * @return the non-security related metadata of an IoT hub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IotHubDescriptionInner getByResourceGroup(String resourceGroupName, String resourceName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String resourceName, Context context); /** * Get the non-security related metadata of an IoT hub @@ -55,16 +57,14 @@ public interface IotHubResourcesClient { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the non-security related metadata of an IoT hub along with {@link Response}. + * @return the non-security related metadata of an IoT hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String resourceName, Context context); + IotHubDescriptionInner getByResourceGroup(String resourceGroupName, String resourceName); /** * Create or update the metadata of an IoT hub. @@ -76,8 +76,6 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param iotHubDescription The IoT hub metadata and security metadata. - * @param ifMatch ETag of the IoT Hub. Do not specify for creating a brand new IoT Hub. Required to update an - * existing IoT Hub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. @@ -86,7 +84,7 @@ Response getByResourceGroupWithResponse( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IotHubDescriptionInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, IotHubDescriptionInner iotHubDescription, String ifMatch); + String resourceGroupName, String resourceName, IotHubDescriptionInner iotHubDescription); /** * Create or update the metadata of an IoT hub. @@ -115,28 +113,6 @@ SyncPoller, IotHubDescriptionInner> beginCrea String ifMatch, Context context); - /** - * Create or update the metadata of an IoT hub. - * - *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub - * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. - * - * @param resourceGroupName The name of the resource group that contains the IoT hub. - * @param resourceName The name of the IoT hub. - * @param iotHubDescription The IoT hub metadata and security metadata. - * @param ifMatch ETag of the IoT Hub. Do not specify for creating a brand new IoT Hub. Required to update an - * existing IoT Hub. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by - * server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IotHubDescriptionInner createOrUpdate( - String resourceGroupName, String resourceName, IotHubDescriptionInner iotHubDescription, String ifMatch); - /** * Create or update the metadata of an IoT hub. * @@ -387,14 +363,16 @@ SyncPoller, IotHubDescriptionInner> beginDele * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the statistics from an IoT hub. + * @return the statistics from an IoT hub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - RegistryStatisticsInner getStats(String resourceGroupName, String resourceName); + Response getStatsWithResponse( + String resourceGroupName, String resourceName, Context context); /** * Get the statistics from an IoT hub @@ -403,16 +381,14 @@ SyncPoller, IotHubDescriptionInner> beginDele * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the statistics from an IoT hub along with {@link Response}. + * @return the statistics from an IoT hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getStatsWithResponse( - String resourceGroupName, String resourceName, Context context); + RegistryStatisticsInner getStats(String resourceGroupName, String resourceName); /** * Get the list of valid SKUs for an IoT hub @@ -496,15 +472,17 @@ PagedIterable listEventHubConsumerGroups( * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to retrieve. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * @return a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventHubConsumerGroupInfoInner getEventHubConsumerGroup( - String resourceGroupName, String resourceName, String eventHubEndpointName, String name); + Response getEventHubConsumerGroupWithResponse( + String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context); /** * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub @@ -515,17 +493,15 @@ EventHubConsumerGroupInfoInner getEventHubConsumerGroup( * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to retrieve. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub along with {@link - * Response}. + * @return a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getEventHubConsumerGroupWithResponse( - String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context); + EventHubConsumerGroupInfoInner getEventHubConsumerGroup( + String resourceGroupName, String resourceName, String eventHubEndpointName, String name); /** * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub @@ -537,19 +513,21 @@ Response getEventHubConsumerGroupWithResponse( * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to add. * @param consumerGroupBody The consumer group to add. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the EventHubConsumerGroupInfo object. + * @return the properties of the EventHubConsumerGroupInfo object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventHubConsumerGroupInfoInner createEventHubConsumerGroup( + Response createEventHubConsumerGroupWithResponse( String resourceGroupName, String resourceName, String eventHubEndpointName, String name, - EventHubConsumerGroupBodyDescription consumerGroupBody); + EventHubConsumerGroupBodyDescription consumerGroupBody, + Context context); /** * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub @@ -561,21 +539,19 @@ EventHubConsumerGroupInfoInner createEventHubConsumerGroup( * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to add. * @param consumerGroupBody The consumer group to add. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the EventHubConsumerGroupInfo object along with {@link Response}. + * @return the properties of the EventHubConsumerGroupInfo object. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createEventHubConsumerGroupWithResponse( + EventHubConsumerGroupInfoInner createEventHubConsumerGroup( String resourceGroupName, String resourceName, String eventHubEndpointName, String name, - EventHubConsumerGroupBodyDescription consumerGroupBody, - Context context); + EventHubConsumerGroupBodyDescription consumerGroupBody); /** * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub @@ -586,14 +562,16 @@ Response createEventHubConsumerGroupWithResponse * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to delete. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteEventHubConsumerGroup( - String resourceGroupName, String resourceName, String eventHubEndpointName, String name); + Response deleteEventHubConsumerGroupWithResponse( + String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context); /** * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub @@ -604,16 +582,14 @@ void deleteEventHubConsumerGroup( * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to delete. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteEventHubConsumerGroupWithResponse( - String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context); + void deleteEventHubConsumerGroup( + String resourceGroupName, String resourceName, String eventHubEndpointName, String name); /** * Get a list of all the jobs in an IoT hub. For more information, see: @@ -662,14 +638,16 @@ Response deleteEventHubConsumerGroupWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param jobId The job identifier. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a job from an IoT hub. + * @return the details of a job from an IoT hub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobResponseInner getJob(String resourceGroupName, String resourceName, String jobId); + Response getJobWithResponse( + String resourceGroupName, String resourceName, String jobId, Context context); /** * Get the details of a job from an IoT hub. For more information, see: @@ -681,16 +659,14 @@ Response deleteEventHubConsumerGroupWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param jobId The job identifier. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a job from an IoT hub along with {@link Response}. + * @return the details of a job from an IoT hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getJobWithResponse( - String resourceGroupName, String resourceName, String jobId, Context context); + JobResponseInner getJob(String resourceGroupName, String resourceName, String jobId); /** * Get the quota metrics for an IoT hub @@ -767,14 +743,16 @@ PagedIterable getEndpointHealth( * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties indicating whether a given IoT hub name is available. + * @return the properties indicating whether a given IoT hub name is available along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IotHubNameAvailabilityInfoInner checkNameAvailability(OperationInputs operationInputs); + Response checkNameAvailabilityWithResponse( + OperationInputs operationInputs, Context context); /** * Check if an IoT hub name is available @@ -783,16 +761,14 @@ PagedIterable getEndpointHealth( * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties indicating whether a given IoT hub name is available along with {@link Response}. + * @return the properties indicating whether a given IoT hub name is available. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - OperationInputs operationInputs, Context context); + IotHubNameAvailabilityInfoInner checkNameAvailability(OperationInputs operationInputs); /** * Test all routes @@ -802,14 +778,16 @@ Response checkNameAvailabilityWithResponse( * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. * @param input Input for testing all routes. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of testing all routes. + * @return result of testing all routes along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - TestAllRoutesResultInner testAllRoutes(String iotHubName, String resourceGroupName, TestAllRoutesInput input); + Response testAllRoutesWithResponse( + String iotHubName, String resourceGroupName, TestAllRoutesInput input, Context context); /** * Test all routes @@ -819,16 +797,14 @@ Response checkNameAvailabilityWithResponse( * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. * @param input Input for testing all routes. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of testing all routes along with {@link Response}. + * @return result of testing all routes. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response testAllRoutesWithResponse( - String iotHubName, String resourceGroupName, TestAllRoutesInput input, Context context); + TestAllRoutesResultInner testAllRoutes(String iotHubName, String resourceGroupName, TestAllRoutesInput input); /** * Test the new route @@ -838,14 +814,16 @@ Response testAllRoutesWithResponse( * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. * @param input Route that needs to be tested. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of testing one route. + * @return result of testing one route along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - TestRouteResultInner testRoute(String iotHubName, String resourceGroupName, TestRouteInput input); + Response testRouteWithResponse( + String iotHubName, String resourceGroupName, TestRouteInput input, Context context); /** * Test the new route @@ -855,16 +833,14 @@ Response testAllRoutesWithResponse( * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. * @param input Route that needs to be tested. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of testing one route along with {@link Response}. + * @return result of testing one route. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response testRouteWithResponse( - String iotHubName, String resourceGroupName, TestRouteInput input, Context context); + TestRouteResultInner testRoute(String iotHubName, String resourceGroupName, TestRouteInput input); /** * Get the security metadata for an IoT hub. For more information, see: @@ -914,15 +890,16 @@ PagedIterable listKeys( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param keyName The name of the shared access policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a shared access policy by name from an IoT hub. + * @return a shared access policy by name from an IoT hub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SharedAccessSignatureAuthorizationRuleInner getKeysForKeyName( - String resourceGroupName, String resourceName, String keyName); + Response getKeysForKeyNameWithResponse( + String resourceGroupName, String resourceName, String keyName, Context context); /** * Get a shared access policy by name from an IoT hub. For more information, see: @@ -934,16 +911,15 @@ SharedAccessSignatureAuthorizationRuleInner getKeysForKeyName( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param keyName The name of the shared access policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a shared access policy by name from an IoT hub along with {@link Response}. + * @return a shared access policy by name from an IoT hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getKeysForKeyNameWithResponse( - String resourceGroupName, String resourceName, String keyName, Context context); + SharedAccessSignatureAuthorizationRuleInner getKeysForKeyName( + String resourceGroupName, String resourceName, String keyName); /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more @@ -957,15 +933,16 @@ Response getKeysForKeyNameWithRespo * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param exportDevicesParameters The parameters that specify the export devices operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object. + * @return the properties of the Job Response object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobResponseInner exportDevices( - String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters); + Response exportDevicesWithResponse( + String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters, Context context); /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more @@ -979,16 +956,15 @@ JobResponseInner exportDevices( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param exportDevicesParameters The parameters that specify the export devices operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object along with {@link Response}. + * @return the properties of the Job Response object. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response exportDevicesWithResponse( - String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters, Context context); + JobResponseInner exportDevices( + String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters); /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, @@ -1002,15 +978,16 @@ Response exportDevicesWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param importDevicesParameters The parameters that specify the import devices operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object. + * @return the properties of the Job Response object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobResponseInner importDevices( - String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters); + Response importDevicesWithResponse( + String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters, Context context); /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, @@ -1024,14 +1001,13 @@ JobResponseInner importDevices( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param importDevicesParameters The parameters that specify the import devices operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object along with {@link Response}. + * @return the properties of the Job Response object. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response importDevicesWithResponse( - String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters, Context context); + JobResponseInner importDevices( + String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateEndpointConnectionsClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateEndpointConnectionsClient.java index 6a701e6f94e2c..41246583c47aa 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateEndpointConnectionsClient.java @@ -22,14 +22,16 @@ public interface PrivateEndpointConnectionsClient { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of private endpoint connections for an IotHub. + * @return the list of private endpoint connections for an IotHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - List list(String resourceGroupName, String resourceName); + Response> listWithResponse( + String resourceGroupName, String resourceName, Context context); /** * List private endpoint connections @@ -38,16 +40,14 @@ public interface PrivateEndpointConnectionsClient { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of private endpoint connections for an IotHub along with {@link Response}. + * @return the list of private endpoint connections for an IotHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response> listWithResponse( - String resourceGroupName, String resourceName, Context context); + List list(String resourceGroupName, String resourceName); /** * Get private endpoint connection @@ -57,15 +57,16 @@ Response> listWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private endpoint connection properties. + * @return private endpoint connection properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionInner get( - String resourceGroupName, String resourceName, String privateEndpointConnectionName); + Response getWithResponse( + String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context); /** * Get private endpoint connection @@ -75,16 +76,15 @@ PrivateEndpointConnectionInner get( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private endpoint connection properties along with {@link Response}. + * @return private endpoint connection properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context); + PrivateEndpointConnectionInner get( + String resourceGroupName, String resourceName, String privateEndpointConnectionName); /** * Update private endpoint connection diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java index b6072ee9b95b0..6cec15e84e684 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java @@ -20,14 +20,16 @@ public interface PrivateLinkResourcesOperationsClient { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the available private link resources for an IotHub. + * @return the available private link resources for an IotHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkResourcesInner list(String resourceGroupName, String resourceName); + Response listWithResponse( + String resourceGroupName, String resourceName, Context context); /** * List private link resources @@ -36,16 +38,14 @@ public interface PrivateLinkResourcesOperationsClient { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the available private link resources for an IotHub along with {@link Response}. + * @return the available private link resources for an IotHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse( - String resourceGroupName, String resourceName, Context context); + PrivateLinkResourcesInner list(String resourceGroupName, String resourceName); /** * Get the specified private link resource @@ -55,14 +55,16 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param groupId The name of the private link resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link resource for the given IotHub. + * @return the specified private link resource for the given IotHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - GroupIdInformationInner get(String resourceGroupName, String resourceName, String groupId); + Response getWithResponse( + String resourceGroupName, String resourceName, String groupId, Context context); /** * Get the specified private link resource @@ -72,14 +74,12 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param groupId The name of the private link resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link resource for the given IotHub along with {@link Response}. + * @return the specified private link resource for the given IotHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String resourceName, String groupId, Context context); + GroupIdInformationInner get(String resourceGroupName, String resourceName, String groupId); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java index bce652fdbceec..cf2cfc785d90f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java @@ -17,26 +17,26 @@ public interface ResourceProviderCommonsClient { * *

Get the number of free and paid iot hubs in the subscription. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the number of free and paid iot hubs in the subscription. + * @return the number of free and paid iot hubs in the subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - UserSubscriptionQuotaListResultInner getSubscriptionQuota(); + Response getSubscriptionQuotaWithResponse(Context context); /** * Get the number of iot hubs in the subscription * *

Get the number of free and paid iot hubs in the subscription. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the number of free and paid iot hubs in the subscription along with {@link Response}. + * @return the number of free and paid iot hubs in the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getSubscriptionQuotaWithResponse(Context context); + UserSubscriptionQuotaListResultInner getSubscriptionQuota(); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.java index 9a279107e23d3..5029f81274148 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.java @@ -24,6 +24,10 @@ public final class CertificateDescriptionInner extends ProxyResource { @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) private String etag; + /** Creates an instance of CertificateDescriptionInner class. */ + public CertificateDescriptionInner() { + } + /** * Get the properties property: The description of an X509 CA Certificate. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java index 224446fc9059b..38978a03b38b3 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java @@ -17,6 +17,10 @@ public final class CertificateListDescriptionInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of CertificateListDescriptionInner class. */ + public CertificateListDescriptionInner() { + } + /** * Get the value property: The array of Certificate objects. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java index f4660a738d8d7..6bd0db9900ef0 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java @@ -24,6 +24,10 @@ public final class CertificateWithNonceDescriptionInner extends ProxyResource { @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) private String etag; + /** Creates an instance of CertificateWithNonceDescriptionInner class. */ + public CertificateWithNonceDescriptionInner() { + } + /** * Get the properties property: The description of an X509 CA Certificate including the challenge nonce issued for * the Proof-Of-Possession flow. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java index b019ff3040741..8670be2531c64 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java @@ -55,6 +55,10 @@ public final class EndpointHealthDataInner { @JsonProperty(value = "lastSendAttemptTime") private DateTimeRfc1123 lastSendAttemptTime; + /** Creates an instance of EndpointHealthDataInner class. */ + public EndpointHealthDataInner() { + } + /** * Get the endpointId property: Id of the endpoint. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.java index 3f31cc5a8b657..dfe6c896c9449 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.java @@ -26,6 +26,10 @@ public final class EventHubConsumerGroupInfoInner extends ProxyResource { @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) private String etag; + /** Creates an instance of EventHubConsumerGroupInfoInner class. */ + public EventHubConsumerGroupInfoInner() { + } + /** * Get the properties property: The tags. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java index 9b709713887e1..f65727faa6c2d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java @@ -36,6 +36,10 @@ public final class GroupIdInformationInner { @JsonProperty(value = "properties", required = true) private GroupIdInformationProperties properties; + /** Creates an instance of GroupIdInformationInner class. */ + public GroupIdInformationInner() { + } + /** * Get the id property: The resource identifier. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java index 0aa1cf7d3ba59..3903fcd46faec 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java @@ -48,6 +48,10 @@ public final class IotHubDescriptionInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of IotHubDescriptionInner class. */ + public IotHubDescriptionInner() { + } + /** * Get the etag property: The Etag field is *not* required. If it is provided in the response body, it must also be * provided as a header per the normal ETag convention. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java index 220c14db378b3..21ddc7a0d9221 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java @@ -29,6 +29,10 @@ public final class IotHubNameAvailabilityInfoInner { @JsonProperty(value = "message") private String message; + /** Creates an instance of IotHubNameAvailabilityInfoInner class. */ + public IotHubNameAvailabilityInfoInner() { + } + /** * Get the nameAvailable property: The value which indicates whether the provided name is available. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java index 84c9b471bbac9..75d6ec425d346 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java @@ -28,6 +28,10 @@ public final class IotHubQuotaMetricInfoInner { @JsonProperty(value = "maxValue", access = JsonProperty.Access.WRITE_ONLY) private Long maxValue; + /** Creates an instance of IotHubQuotaMetricInfoInner class. */ + public IotHubQuotaMetricInfoInner() { + } + /** * Get the name property: The name of the quota metric. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java index a0d9c52024a1a..d4a09d1c9d441 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java @@ -31,6 +31,10 @@ public final class IotHubSkuDescriptionInner { @JsonProperty(value = "capacity", required = true) private IotHubCapacity capacity; + /** Creates an instance of IotHubSkuDescriptionInner class. */ + public IotHubSkuDescriptionInner() { + } + /** * Get the resourceType property: The type of the resource. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java index 2f9c443287c74..b3ff560667259 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java @@ -62,6 +62,10 @@ public final class JobResponseInner { @JsonProperty(value = "parentJobId", access = JsonProperty.Access.WRITE_ONLY) private String parentJobId; + /** Creates an instance of JobResponseInner class. */ + public JobResponseInner() { + } + /** * Get the jobId property: The job identifier. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java index fe3c409f1305d..cbcd098a82121 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java @@ -23,6 +23,10 @@ public final class OperationInner { @JsonProperty(value = "display") private OperationDisplay display; + /** Creates an instance of OperationInner class. */ + public OperationInner() { + } + /** * Get the name property: Operation name: {provider}/{resource}/{read | write | action | delete}. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java index 70ec1e4bb3feb..f547e63363a89 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java @@ -19,6 +19,10 @@ public final class PrivateEndpointConnectionInner extends ProxyResource { @JsonProperty(value = "properties", required = true) private PrivateEndpointConnectionProperties properties; + /** Creates an instance of PrivateEndpointConnectionInner class. */ + public PrivateEndpointConnectionInner() { + } + /** * Get the properties property: The properties of a private endpoint connection. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java index 6b642dedb9eff..bdf58e8fc5e28 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java @@ -17,6 +17,10 @@ public final class PrivateLinkResourcesInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of PrivateLinkResourcesInner class. */ + public PrivateLinkResourcesInner() { + } + /** * Get the value property: The list of available private link resources for an IotHub. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java index 5188da0f6567e..bb46abf9ca797 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java @@ -28,6 +28,10 @@ public final class RegistryStatisticsInner { @JsonProperty(value = "disabledDeviceCount", access = JsonProperty.Access.WRITE_ONLY) private Long disabledDeviceCount; + /** Creates an instance of RegistryStatisticsInner class. */ + public RegistryStatisticsInner() { + } + /** * Get the totalDeviceCount property: The total count of devices in the identity registry. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java index d7d38620b29f7..82e956a3802c7 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java @@ -36,6 +36,10 @@ public final class SharedAccessSignatureAuthorizationRuleInner { @JsonProperty(value = "rights", required = true) private AccessRights rights; + /** Creates an instance of SharedAccessSignatureAuthorizationRuleInner class. */ + public SharedAccessSignatureAuthorizationRuleInner() { + } + /** * Get the keyName property: The name of the shared access policy. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java index d89d3d46ca999..6daf3997c419a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java @@ -18,6 +18,10 @@ public final class TestAllRoutesResultInner { @JsonProperty(value = "routes") private List routes; + /** Creates an instance of TestAllRoutesResultInner class. */ + public TestAllRoutesResultInner() { + } + /** * Get the routes property: JSON-serialized array of matched routes. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java index bd47269a717de..eb142e816b211 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java @@ -24,6 +24,10 @@ public final class TestRouteResultInner { @JsonProperty(value = "details") private TestRouteResultDetails details; + /** Creates an instance of TestRouteResultInner class. */ + public TestRouteResultInner() { + } + /** * Get the result property: Result of testing route. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java index 4e64d127c9bd1..c797bddb37681 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java @@ -24,6 +24,10 @@ public final class UserSubscriptionQuotaListResultInner { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of UserSubscriptionQuotaListResultInner class. */ + public UserSubscriptionQuotaListResultInner() { + } + /** * Get the value property: The value property. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java index d71cd21c22ae5..4bc9a2b754e00 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java @@ -57,7 +57,7 @@ public final class CertificatesClientImpl implements CertificatesClient { */ @Host("{$host}") @ServiceInterface(name = "IotHubClientCertific") - private interface CertificatesService { + public interface CertificatesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs" @@ -285,14 +285,16 @@ private Mono listByIotHubAsync(String resourceG * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the JSON-serialized array of Certificate objects. + * @return the JSON-serialized array of Certificate objects along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CertificateListDescriptionInner listByIotHub(String resourceGroupName, String resourceName) { - return listByIotHubAsync(resourceGroupName, resourceName).block(); + public Response listByIotHubWithResponse( + String resourceGroupName, String resourceName, Context context) { + return listByIotHubWithResponseAsync(resourceGroupName, resourceName, context).block(); } /** @@ -302,16 +304,14 @@ public CertificateListDescriptionInner listByIotHub(String resourceGroupName, St * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the JSON-serialized array of Certificate objects along with {@link Response}. + * @return the JSON-serialized array of Certificate objects. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listByIotHubWithResponse( - String resourceGroupName, String resourceName, Context context) { - return listByIotHubWithResponseAsync(resourceGroupName, resourceName, context).block(); + public CertificateListDescriptionInner listByIotHub(String resourceGroupName, String resourceName) { + return listByIotHubWithResponse(resourceGroupName, resourceName, Context.NONE).getValue(); } /** @@ -452,14 +452,16 @@ private Mono getAsync( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate. + * @return the X509 Certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CertificateDescriptionInner get(String resourceGroupName, String resourceName, String certificateName) { - return getAsync(resourceGroupName, resourceName, certificateName).block(); + public Response getWithResponse( + String resourceGroupName, String resourceName, String certificateName, Context context) { + return getWithResponseAsync(resourceGroupName, resourceName, certificateName, context).block(); } /** @@ -470,16 +472,14 @@ public CertificateDescriptionInner get(String resourceGroupName, String resource * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate along with {@link Response}. + * @return the X509 Certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String resourceName, String certificateName, Context context) { - return getWithResponseAsync(resourceGroupName, resourceName, certificateName, context).block(); + public CertificateDescriptionInner get(String resourceGroupName, String resourceName, String certificateName) { + return getWithResponse(resourceGroupName, resourceName, certificateName, Context.NONE).getValue(); } /** @@ -634,8 +634,6 @@ private Mono> createOrUpdateWithResponseAs * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param certificateDescription The certificate body. - * @param ifMatch ETag of the Certificate. Do not specify for creating a brand new certificate. Required to update - * an existing certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -646,8 +644,8 @@ private Mono createOrUpdateAsync( String resourceGroupName, String resourceName, String certificateName, - CertificateDescriptionInner certificateDescription, - String ifMatch) { + CertificateDescriptionInner certificateDescription) { + final String ifMatch = null; return createOrUpdateWithResponseAsync( resourceGroupName, resourceName, certificateName, certificateDescription, ifMatch) .flatMap(res -> Mono.justOrEmpty(res.getValue())); @@ -662,21 +660,25 @@ private Mono createOrUpdateAsync( * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param certificateDescription The certificate body. + * @param ifMatch ETag of the Certificate. Do not specify for creating a brand new certificate. Required to update + * an existing certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate on successful completion of {@link Mono}. + * @return the X509 Certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( + public Response createOrUpdateWithResponse( String resourceGroupName, String resourceName, String certificateName, - CertificateDescriptionInner certificateDescription) { - final String ifMatch = null; + CertificateDescriptionInner certificateDescription, + String ifMatch, + Context context) { return createOrUpdateWithResponseAsync( - resourceGroupName, resourceName, certificateName, certificateDescription, ifMatch) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + resourceGroupName, resourceName, certificateName, certificateDescription, ifMatch, context) + .block(); } /** @@ -700,38 +702,9 @@ public CertificateDescriptionInner createOrUpdate( String certificateName, CertificateDescriptionInner certificateDescription) { final String ifMatch = null; - return createOrUpdateAsync(resourceGroupName, resourceName, certificateName, certificateDescription, ifMatch) - .block(); - } - - /** - * Upload the certificate to the IoT hub. - * - *

Adds new or replaces existing certificate. - * - * @param resourceGroupName The name of the resource group that contains the IoT hub. - * @param resourceName The name of the IoT hub. - * @param certificateName The name of the certificate. - * @param certificateDescription The certificate body. - * @param ifMatch ETag of the Certificate. Do not specify for creating a brand new certificate. Required to update - * an existing certificate. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorDetailsException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String resourceName, - String certificateName, - CertificateDescriptionInner certificateDescription, - String ifMatch, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, resourceName, certificateName, certificateDescription, ifMatch, context) - .block(); + return createOrUpdateWithResponse( + resourceGroupName, resourceName, certificateName, certificateDescription, ifMatch, Context.NONE) + .getValue(); } /** @@ -884,13 +857,16 @@ private Mono deleteAsync( * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String resourceName, String certificateName, String ifMatch) { - deleteAsync(resourceGroupName, resourceName, certificateName, ifMatch).block(); + public Response deleteWithResponse( + String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context) { + return deleteWithResponseAsync(resourceGroupName, resourceName, certificateName, ifMatch, context).block(); } /** @@ -902,16 +878,13 @@ public void delete(String resourceGroupName, String resourceName, String certifi * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context) { - return deleteWithResponseAsync(resourceGroupName, resourceName, certificateName, ifMatch, context).block(); + public void delete(String resourceGroupName, String resourceName, String certificateName, String ifMatch) { + deleteWithResponse(resourceGroupName, resourceName, certificateName, ifMatch, Context.NONE); } /** @@ -1068,15 +1041,18 @@ private Mono generateVerificationCodeAsync * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate. + * @return the X509 Certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CertificateWithNonceDescriptionInner generateVerificationCode( - String resourceGroupName, String resourceName, String certificateName, String ifMatch) { - return generateVerificationCodeAsync(resourceGroupName, resourceName, certificateName, ifMatch).block(); + public Response generateVerificationCodeWithResponse( + String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context) { + return generateVerificationCodeWithResponseAsync( + resourceGroupName, resourceName, certificateName, ifMatch, context) + .block(); } /** @@ -1089,18 +1065,17 @@ public CertificateWithNonceDescriptionInner generateVerificationCode( * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate along with {@link Response}. + * @return the X509 Certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response generateVerificationCodeWithResponse( - String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context) { - return generateVerificationCodeWithResponseAsync( - resourceGroupName, resourceName, certificateName, ifMatch, context) - .block(); + public CertificateWithNonceDescriptionInner generateVerificationCode( + String resourceGroupName, String resourceName, String certificateName, String ifMatch) { + return generateVerificationCodeWithResponse( + resourceGroupName, resourceName, certificateName, ifMatch, Context.NONE) + .getValue(); } /** @@ -1293,19 +1268,22 @@ private Mono verifyAsync( * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. * @param certificateVerificationBody The name of the certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate. + * @return the X509 Certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CertificateDescriptionInner verify( + public Response verifyWithResponse( String resourceGroupName, String resourceName, String certificateName, String ifMatch, - CertificateVerificationDescription certificateVerificationBody) { - return verifyAsync(resourceGroupName, resourceName, certificateName, ifMatch, certificateVerificationBody) + CertificateVerificationDescription certificateVerificationBody, + Context context) { + return verifyWithResponseAsync( + resourceGroupName, resourceName, certificateName, ifMatch, certificateVerificationBody, context) .block(); } @@ -1320,22 +1298,20 @@ public CertificateDescriptionInner verify( * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. * @param certificateVerificationBody The name of the certificate. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate along with {@link Response}. + * @return the X509 Certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response verifyWithResponse( + public CertificateDescriptionInner verify( String resourceGroupName, String resourceName, String certificateName, String ifMatch, - CertificateVerificationDescription certificateVerificationBody, - Context context) { - return verifyWithResponseAsync( - resourceGroupName, resourceName, certificateName, ifMatch, certificateVerificationBody, context) - .block(); + CertificateVerificationDescription certificateVerificationBody) { + return verifyWithResponse( + resourceGroupName, resourceName, certificateName, ifMatch, certificateVerificationBody, Context.NONE) + .getValue(); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java index 3cdd59adceaa6..44fbec70418f2 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java @@ -31,15 +31,6 @@ public CertificatesImpl( this.serviceManager = serviceManager; } - public CertificateListDescription listByIotHub(String resourceGroupName, String resourceName) { - CertificateListDescriptionInner inner = this.serviceClient().listByIotHub(resourceGroupName, resourceName); - if (inner != null) { - return new CertificateListDescriptionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listByIotHubWithResponse( String resourceGroupName, String resourceName, Context context) { Response inner = @@ -55,10 +46,10 @@ public Response listByIotHubWithResponse( } } - public CertificateDescription get(String resourceGroupName, String resourceName, String certificateName) { - CertificateDescriptionInner inner = this.serviceClient().get(resourceGroupName, resourceName, certificateName); + public CertificateListDescription listByIotHub(String resourceGroupName, String resourceName) { + CertificateListDescriptionInner inner = this.serviceClient().listByIotHub(resourceGroupName, resourceName); if (inner != null) { - return new CertificateDescriptionImpl(inner, this.manager()); + return new CertificateListDescriptionImpl(inner, this.manager()); } else { return null; } @@ -79,8 +70,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String resourceName, String certificateName, String ifMatch) { - this.serviceClient().delete(resourceGroupName, resourceName, certificateName, ifMatch); + public CertificateDescription get(String resourceGroupName, String resourceName, String certificateName) { + CertificateDescriptionInner inner = this.serviceClient().get(resourceGroupName, resourceName, certificateName); + if (inner != null) { + return new CertificateDescriptionImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -90,15 +86,8 @@ public Response deleteWithResponse( .deleteWithResponse(resourceGroupName, resourceName, certificateName, ifMatch, context); } - public CertificateWithNonceDescription generateVerificationCode( - String resourceGroupName, String resourceName, String certificateName, String ifMatch) { - CertificateWithNonceDescriptionInner inner = - this.serviceClient().generateVerificationCode(resourceGroupName, resourceName, certificateName, ifMatch); - if (inner != null) { - return new CertificateWithNonceDescriptionImpl(inner, this.manager()); - } else { - return null; - } + public void delete(String resourceGroupName, String resourceName, String certificateName, String ifMatch) { + this.serviceClient().delete(resourceGroupName, resourceName, certificateName, ifMatch); } public Response generateVerificationCodeWithResponse( @@ -119,18 +108,12 @@ public Response generateVerificationCodeWithRes } } - public CertificateDescription verify( - String resourceGroupName, - String resourceName, - String certificateName, - String ifMatch, - CertificateVerificationDescription certificateVerificationBody) { - CertificateDescriptionInner inner = - this - .serviceClient() - .verify(resourceGroupName, resourceName, certificateName, ifMatch, certificateVerificationBody); + public CertificateWithNonceDescription generateVerificationCode( + String resourceGroupName, String resourceName, String certificateName, String ifMatch) { + CertificateWithNonceDescriptionInner inner = + this.serviceClient().generateVerificationCode(resourceGroupName, resourceName, certificateName, ifMatch); if (inner != null) { - return new CertificateDescriptionImpl(inner, this.manager()); + return new CertificateWithNonceDescriptionImpl(inner, this.manager()); } else { return null; } @@ -159,6 +142,23 @@ public Response verifyWithResponse( } } + public CertificateDescription verify( + String resourceGroupName, + String resourceName, + String certificateName, + String ifMatch, + CertificateVerificationDescription certificateVerificationBody) { + CertificateDescriptionInner inner = + this + .serviceClient() + .verify(resourceGroupName, resourceName, certificateName, ifMatch, certificateVerificationBody); + if (inner != null) { + return new CertificateDescriptionImpl(inner, this.manager()); + } else { + return null; + } + } + public CertificateDescription getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientImpl.java index 3d89f5ebaa039..bac045f9f0082 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientImpl.java @@ -220,7 +220,7 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2022-04-30-preview"; + this.apiVersion = "2022-11-15-preview"; this.operations = new OperationsClientImpl(this); this.iotHubResources = new IotHubResourcesClientImpl(this); this.resourceProviderCommons = new ResourceProviderCommonsClientImpl(this); diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubDescriptionImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubDescriptionImpl.java index 488b458ae10dc..ee3654eefa21b 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubDescriptionImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubDescriptionImpl.java @@ -190,10 +190,6 @@ public PagedIterable listKeys(Context co return serviceManager.iotHubResources().listKeys(resourceGroupName, resourceName, context); } - public JobResponse exportDevices(ExportDevicesRequest exportDevicesParameters) { - return serviceManager.iotHubResources().exportDevices(resourceGroupName, resourceName, exportDevicesParameters); - } - public Response exportDevicesWithResponse( ExportDevicesRequest exportDevicesParameters, Context context) { return serviceManager @@ -201,8 +197,8 @@ public Response exportDevicesWithResponse( .exportDevicesWithResponse(resourceGroupName, resourceName, exportDevicesParameters, context); } - public JobResponse importDevices(ImportDevicesRequest importDevicesParameters) { - return serviceManager.iotHubResources().importDevices(resourceGroupName, resourceName, importDevicesParameters); + public JobResponse exportDevices(ExportDevicesRequest exportDevicesParameters) { + return serviceManager.iotHubResources().exportDevices(resourceGroupName, resourceName, exportDevicesParameters); } public Response importDevicesWithResponse( @@ -212,6 +208,10 @@ public Response importDevicesWithResponse( .importDevicesWithResponse(resourceGroupName, resourceName, importDevicesParameters, context); } + public JobResponse importDevices(ImportDevicesRequest importDevicesParameters) { + return serviceManager.iotHubResources().importDevices(resourceGroupName, resourceName, importDevicesParameters); + } + public IotHubDescriptionImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesClientImpl.java index 90cc8da5e809d..9618985ca371e 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesClientImpl.java @@ -89,7 +89,7 @@ public final class IotHubResourcesClientImpl implements IotHubResourcesClient { */ @Host("{$host}") @ServiceInterface(name = "IotHubClientIotHubRe") - private interface IotHubResourcesService { + public interface IotHubResourcesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs" @@ -648,14 +648,16 @@ private Mono getByResourceGroupAsync(String resourceGrou * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the non-security related metadata of an IoT hub. + * @return the non-security related metadata of an IoT hub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IotHubDescriptionInner getByResourceGroup(String resourceGroupName, String resourceName) { - return getByResourceGroupAsync(resourceGroupName, resourceName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String resourceName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName, context).block(); } /** @@ -665,16 +667,14 @@ public IotHubDescriptionInner getByResourceGroup(String resourceGroupName, Strin * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the non-security related metadata of an IoT hub along with {@link Response}. + * @return the non-security related metadata of an IoT hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String resourceName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName, context).block(); + public IotHubDescriptionInner getByResourceGroup(String resourceGroupName, String resourceName) { + return getByResourceGroupWithResponse(resourceGroupName, resourceName, Context.NONE).getValue(); } /** @@ -837,6 +837,37 @@ private PollerFlux, IotHubDescriptionInner> b this.client.getContext()); } + /** + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT + * hub. + * + * @param resourceGroupName The name of the resource group that contains the IoT hub. + * @param resourceName The name of the IoT hub. + * @param iotHubDescription The IoT hub metadata and security metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorDetailsException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the description of the IoT hub. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, IotHubDescriptionInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, IotHubDescriptionInner iotHubDescription) { + final String ifMatch = null; + Mono>> mono = + createOrUpdateWithResponseAsync(resourceGroupName, resourceName, iotHubDescription, ifMatch); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + IotHubDescriptionInner.class, + IotHubDescriptionInner.class, + this.client.getContext()); + } + /** * Create or update the metadata of an IoT hub. * @@ -885,8 +916,6 @@ private PollerFlux, IotHubDescriptionInner> b * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param iotHubDescription The IoT hub metadata and security metadata. - * @param ifMatch ETag of the IoT Hub. Do not specify for creating a brand new IoT Hub. Required to update an - * existing IoT Hub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -894,8 +923,11 @@ private PollerFlux, IotHubDescriptionInner> b */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IotHubDescriptionInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, IotHubDescriptionInner iotHubDescription, String ifMatch) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, iotHubDescription, ifMatch).getSyncPoller(); + String resourceGroupName, String resourceName, IotHubDescriptionInner iotHubDescription) { + final String ifMatch = null; + return this + .beginCreateOrUpdateAsync(resourceGroupName, resourceName, iotHubDescription, ifMatch) + .getSyncPoller(); } /** @@ -923,7 +955,8 @@ public SyncPoller, IotHubDescriptionInner> be IotHubDescriptionInner iotHubDescription, String ifMatch, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, iotHubDescription, ifMatch, context) + return this + .beginCreateOrUpdateAsync(resourceGroupName, resourceName, iotHubDescription, ifMatch, context) .getSyncPoller(); } @@ -1006,29 +1039,6 @@ private Mono createOrUpdateAsync( .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create or update the metadata of an IoT hub. - * - *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub - * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. - * - * @param resourceGroupName The name of the resource group that contains the IoT hub. - * @param resourceName The name of the IoT hub. - * @param iotHubDescription The IoT hub metadata and security metadata. - * @param ifMatch ETag of the IoT Hub. Do not specify for creating a brand new IoT Hub. Required to update an - * existing IoT Hub. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorDetailsException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IotHubDescriptionInner createOrUpdate( - String resourceGroupName, String resourceName, IotHubDescriptionInner iotHubDescription, String ifMatch) { - return createOrUpdateAsync(resourceGroupName, resourceName, iotHubDescription, ifMatch).block(); - } - /** * Create or update the metadata of an IoT hub. * @@ -1264,7 +1274,7 @@ private PollerFlux, IotHubDescriptionInner> b @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IotHubDescriptionInner> beginUpdate( String resourceGroupName, String resourceName, TagsResource iotHubTags) { - return beginUpdateAsync(resourceGroupName, resourceName, iotHubTags).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, resourceName, iotHubTags).getSyncPoller(); } /** @@ -1284,7 +1294,7 @@ public SyncPoller, IotHubDescriptionInner> be @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IotHubDescriptionInner> beginUpdate( String resourceGroupName, String resourceName, TagsResource iotHubTags, Context context) { - return beginUpdateAsync(resourceGroupName, resourceName, iotHubTags, context).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, resourceName, iotHubTags, context).getSyncPoller(); } /** @@ -1534,7 +1544,7 @@ private PollerFlux, IotHubDescriptionInner> b @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IotHubDescriptionInner> beginDelete( String resourceGroupName, String resourceName) { - return beginDeleteAsync(resourceGroupName, resourceName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName).getSyncPoller(); } /** @@ -1553,7 +1563,7 @@ public SyncPoller, IotHubDescriptionInner> be @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IotHubDescriptionInner> beginDelete( String resourceGroupName, String resourceName, Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, context).getSyncPoller(); } /** @@ -2083,14 +2093,16 @@ private Mono getStatsAsync(String resourceGroupName, St * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the statistics from an IoT hub. + * @return the statistics from an IoT hub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RegistryStatisticsInner getStats(String resourceGroupName, String resourceName) { - return getStatsAsync(resourceGroupName, resourceName).block(); + public Response getStatsWithResponse( + String resourceGroupName, String resourceName, Context context) { + return getStatsWithResponseAsync(resourceGroupName, resourceName, context).block(); } /** @@ -2100,16 +2112,14 @@ public RegistryStatisticsInner getStats(String resourceGroupName, String resourc * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the statistics from an IoT hub along with {@link Response}. + * @return the statistics from an IoT hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getStatsWithResponse( - String resourceGroupName, String resourceName, Context context) { - return getStatsWithResponseAsync(resourceGroupName, resourceName, context).block(); + public RegistryStatisticsInner getStats(String resourceGroupName, String resourceName) { + return getStatsWithResponse(resourceGroupName, resourceName, Context.NONE).getValue(); } /** @@ -2679,15 +2689,19 @@ private Mono getEventHubConsumerGroupAsync( * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to retrieve. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * @return a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventHubConsumerGroupInfoInner getEventHubConsumerGroup( - String resourceGroupName, String resourceName, String eventHubEndpointName, String name) { - return getEventHubConsumerGroupAsync(resourceGroupName, resourceName, eventHubEndpointName, name).block(); + public Response getEventHubConsumerGroupWithResponse( + String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context) { + return getEventHubConsumerGroupWithResponseAsync( + resourceGroupName, resourceName, eventHubEndpointName, name, context) + .block(); } /** @@ -2699,19 +2713,17 @@ public EventHubConsumerGroupInfoInner getEventHubConsumerGroup( * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to retrieve. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub along with {@link - * Response}. + * @return a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getEventHubConsumerGroupWithResponse( - String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context) { - return getEventHubConsumerGroupWithResponseAsync( - resourceGroupName, resourceName, eventHubEndpointName, name, context) - .block(); + public EventHubConsumerGroupInfoInner getEventHubConsumerGroup( + String resourceGroupName, String resourceName, String eventHubEndpointName, String name) { + return getEventHubConsumerGroupWithResponse( + resourceGroupName, resourceName, eventHubEndpointName, name, Context.NONE) + .getValue(); } /** @@ -2898,20 +2910,22 @@ private Mono createEventHubConsumerGroupAsync( * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to add. * @param consumerGroupBody The consumer group to add. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the EventHubConsumerGroupInfo object. + * @return the properties of the EventHubConsumerGroupInfo object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventHubConsumerGroupInfoInner createEventHubConsumerGroup( + public Response createEventHubConsumerGroupWithResponse( String resourceGroupName, String resourceName, String eventHubEndpointName, String name, - EventHubConsumerGroupBodyDescription consumerGroupBody) { - return createEventHubConsumerGroupAsync( - resourceGroupName, resourceName, eventHubEndpointName, name, consumerGroupBody) + EventHubConsumerGroupBodyDescription consumerGroupBody, + Context context) { + return createEventHubConsumerGroupWithResponseAsync( + resourceGroupName, resourceName, eventHubEndpointName, name, consumerGroupBody, context) .block(); } @@ -2925,23 +2939,21 @@ public EventHubConsumerGroupInfoInner createEventHubConsumerGroup( * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to add. * @param consumerGroupBody The consumer group to add. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the EventHubConsumerGroupInfo object along with {@link Response}. + * @return the properties of the EventHubConsumerGroupInfo object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createEventHubConsumerGroupWithResponse( + public EventHubConsumerGroupInfoInner createEventHubConsumerGroup( String resourceGroupName, String resourceName, String eventHubEndpointName, String name, - EventHubConsumerGroupBodyDescription consumerGroupBody, - Context context) { - return createEventHubConsumerGroupWithResponseAsync( - resourceGroupName, resourceName, eventHubEndpointName, name, consumerGroupBody, context) - .block(); + EventHubConsumerGroupBodyDescription consumerGroupBody) { + return createEventHubConsumerGroupWithResponse( + resourceGroupName, resourceName, eventHubEndpointName, name, consumerGroupBody, Context.NONE) + .getValue(); } /** @@ -3094,14 +3106,18 @@ private Mono deleteEventHubConsumerGroupAsync( * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to delete. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteEventHubConsumerGroup( - String resourceGroupName, String resourceName, String eventHubEndpointName, String name) { - deleteEventHubConsumerGroupAsync(resourceGroupName, resourceName, eventHubEndpointName, name).block(); + public Response deleteEventHubConsumerGroupWithResponse( + String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context) { + return deleteEventHubConsumerGroupWithResponseAsync( + resourceGroupName, resourceName, eventHubEndpointName, name, context) + .block(); } /** @@ -3113,18 +3129,15 @@ public void deleteEventHubConsumerGroup( * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to delete. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteEventHubConsumerGroupWithResponse( - String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context) { - return deleteEventHubConsumerGroupWithResponseAsync( - resourceGroupName, resourceName, eventHubEndpointName, name, context) - .block(); + public void deleteEventHubConsumerGroup( + String resourceGroupName, String resourceName, String eventHubEndpointName, String name) { + deleteEventHubConsumerGroupWithResponse( + resourceGroupName, resourceName, eventHubEndpointName, name, Context.NONE); } /** @@ -3476,14 +3489,16 @@ private Mono getJobAsync(String resourceGroupName, String reso * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param jobId The job identifier. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a job from an IoT hub. + * @return the details of a job from an IoT hub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobResponseInner getJob(String resourceGroupName, String resourceName, String jobId) { - return getJobAsync(resourceGroupName, resourceName, jobId).block(); + public Response getJobWithResponse( + String resourceGroupName, String resourceName, String jobId, Context context) { + return getJobWithResponseAsync(resourceGroupName, resourceName, jobId, context).block(); } /** @@ -3496,16 +3511,14 @@ public JobResponseInner getJob(String resourceGroupName, String resourceName, St * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param jobId The job identifier. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a job from an IoT hub along with {@link Response}. + * @return the details of a job from an IoT hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getJobWithResponse( - String resourceGroupName, String resourceName, String jobId, Context context) { - return getJobWithResponseAsync(resourceGroupName, resourceName, jobId, context).block(); + public JobResponseInner getJob(String resourceGroupName, String resourceName, String jobId) { + return getJobWithResponse(resourceGroupName, resourceName, jobId, Context.NONE).getValue(); } /** @@ -4017,14 +4030,16 @@ private Mono checkNameAvailabilityAsync(Operati * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties indicating whether a given IoT hub name is available. + * @return the properties indicating whether a given IoT hub name is available along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IotHubNameAvailabilityInfoInner checkNameAvailability(OperationInputs operationInputs) { - return checkNameAvailabilityAsync(operationInputs).block(); + public Response checkNameAvailabilityWithResponse( + OperationInputs operationInputs, Context context) { + return checkNameAvailabilityWithResponseAsync(operationInputs, context).block(); } /** @@ -4034,16 +4049,14 @@ public IotHubNameAvailabilityInfoInner checkNameAvailability(OperationInputs ope * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties indicating whether a given IoT hub name is available along with {@link Response}. + * @return the properties indicating whether a given IoT hub name is available. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - OperationInputs operationInputs, Context context) { - return checkNameAvailabilityWithResponseAsync(operationInputs, context).block(); + public IotHubNameAvailabilityInfoInner checkNameAvailability(OperationInputs operationInputs) { + return checkNameAvailabilityWithResponse(operationInputs, Context.NONE).getValue(); } /** @@ -4186,15 +4199,16 @@ private Mono testAllRoutesAsync( * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. * @param input Input for testing all routes. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of testing all routes. + * @return result of testing all routes along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TestAllRoutesResultInner testAllRoutes( - String iotHubName, String resourceGroupName, TestAllRoutesInput input) { - return testAllRoutesAsync(iotHubName, resourceGroupName, input).block(); + public Response testAllRoutesWithResponse( + String iotHubName, String resourceGroupName, TestAllRoutesInput input, Context context) { + return testAllRoutesWithResponseAsync(iotHubName, resourceGroupName, input, context).block(); } /** @@ -4205,16 +4219,15 @@ public TestAllRoutesResultInner testAllRoutes( * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. * @param input Input for testing all routes. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of testing all routes along with {@link Response}. + * @return result of testing all routes. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response testAllRoutesWithResponse( - String iotHubName, String resourceGroupName, TestAllRoutesInput input, Context context) { - return testAllRoutesWithResponseAsync(iotHubName, resourceGroupName, input, context).block(); + public TestAllRoutesResultInner testAllRoutes( + String iotHubName, String resourceGroupName, TestAllRoutesInput input) { + return testAllRoutesWithResponse(iotHubName, resourceGroupName, input, Context.NONE).getValue(); } /** @@ -4357,14 +4370,16 @@ private Mono testRouteAsync( * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. * @param input Route that needs to be tested. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of testing one route. + * @return result of testing one route along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TestRouteResultInner testRoute(String iotHubName, String resourceGroupName, TestRouteInput input) { - return testRouteAsync(iotHubName, resourceGroupName, input).block(); + public Response testRouteWithResponse( + String iotHubName, String resourceGroupName, TestRouteInput input, Context context) { + return testRouteWithResponseAsync(iotHubName, resourceGroupName, input, context).block(); } /** @@ -4375,16 +4390,14 @@ public TestRouteResultInner testRoute(String iotHubName, String resourceGroupNam * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. * @param input Route that needs to be tested. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of testing one route along with {@link Response}. + * @return result of testing one route. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response testRouteWithResponse( - String iotHubName, String resourceGroupName, TestRouteInput input, Context context) { - return testRouteWithResponseAsync(iotHubName, resourceGroupName, input, context).block(); + public TestRouteResultInner testRoute(String iotHubName, String resourceGroupName, TestRouteInput input) { + return testRouteWithResponse(iotHubName, resourceGroupName, input, Context.NONE).getValue(); } /** @@ -4741,15 +4754,16 @@ private Mono getKeysForKeyNameAsync * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param keyName The name of the shared access policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a shared access policy by name from an IoT hub. + * @return a shared access policy by name from an IoT hub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SharedAccessSignatureAuthorizationRuleInner getKeysForKeyName( - String resourceGroupName, String resourceName, String keyName) { - return getKeysForKeyNameAsync(resourceGroupName, resourceName, keyName).block(); + public Response getKeysForKeyNameWithResponse( + String resourceGroupName, String resourceName, String keyName, Context context) { + return getKeysForKeyNameWithResponseAsync(resourceGroupName, resourceName, keyName, context).block(); } /** @@ -4762,16 +4776,15 @@ public SharedAccessSignatureAuthorizationRuleInner getKeysForKeyName( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param keyName The name of the shared access policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a shared access policy by name from an IoT hub along with {@link Response}. + * @return a shared access policy by name from an IoT hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getKeysForKeyNameWithResponse( - String resourceGroupName, String resourceName, String keyName, Context context) { - return getKeysForKeyNameWithResponseAsync(resourceGroupName, resourceName, keyName, context).block(); + public SharedAccessSignatureAuthorizationRuleInner getKeysForKeyName( + String resourceGroupName, String resourceName, String keyName) { + return getKeysForKeyNameWithResponse(resourceGroupName, resourceName, keyName, Context.NONE).getValue(); } /** @@ -4936,15 +4949,17 @@ private Mono exportDevicesAsync( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param exportDevicesParameters The parameters that specify the export devices operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object. + * @return the properties of the Job Response object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobResponseInner exportDevices( - String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters) { - return exportDevicesAsync(resourceGroupName, resourceName, exportDevicesParameters).block(); + public Response exportDevicesWithResponse( + String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters, Context context) { + return exportDevicesWithResponseAsync(resourceGroupName, resourceName, exportDevicesParameters, context) + .block(); } /** @@ -4959,17 +4974,16 @@ public JobResponseInner exportDevices( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param exportDevicesParameters The parameters that specify the export devices operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object along with {@link Response}. + * @return the properties of the Job Response object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response exportDevicesWithResponse( - String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters, Context context) { - return exportDevicesWithResponseAsync(resourceGroupName, resourceName, exportDevicesParameters, context) - .block(); + public JobResponseInner exportDevices( + String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters) { + return exportDevicesWithResponse(resourceGroupName, resourceName, exportDevicesParameters, Context.NONE) + .getValue(); } /** @@ -5134,15 +5148,17 @@ private Mono importDevicesAsync( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param importDevicesParameters The parameters that specify the import devices operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object. + * @return the properties of the Job Response object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobResponseInner importDevices( - String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters) { - return importDevicesAsync(resourceGroupName, resourceName, importDevicesParameters).block(); + public Response importDevicesWithResponse( + String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters, Context context) { + return importDevicesWithResponseAsync(resourceGroupName, resourceName, importDevicesParameters, context) + .block(); } /** @@ -5157,17 +5173,16 @@ public JobResponseInner importDevices( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param importDevicesParameters The parameters that specify the import devices operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object along with {@link Response}. + * @return the properties of the Job Response object. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response importDevicesWithResponse( - String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters, Context context) { - return importDevicesWithResponseAsync(resourceGroupName, resourceName, importDevicesParameters, context) - .block(); + public JobResponseInner importDevices( + String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters) { + return importDevicesWithResponse(resourceGroupName, resourceName, importDevicesParameters, Context.NONE) + .getValue(); } /** diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesImpl.java index 7e38b0c8edc41..46e33008ecd1d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesImpl.java @@ -52,15 +52,6 @@ public IotHubResourcesImpl( this.serviceManager = serviceManager; } - public IotHubDescription getByResourceGroup(String resourceGroupName, String resourceName) { - IotHubDescriptionInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, resourceName); - if (inner != null) { - return new IotHubDescriptionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String resourceName, Context context) { Response inner = @@ -76,6 +67,15 @@ public Response getByResourceGroupWithResponse( } } + public IotHubDescription getByResourceGroup(String resourceGroupName, String resourceName) { + IotHubDescriptionInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, resourceName); + if (inner != null) { + return new IotHubDescriptionImpl(inner, this.manager()); + } else { + return null; + } + } + public IotHubDescription deleteByResourceGroup(String resourceGroupName, String resourceName) { IotHubDescriptionInner inner = this.serviceClient().delete(resourceGroupName, resourceName); if (inner != null) { @@ -115,15 +115,6 @@ public PagedIterable listByResourceGroup(String resourceGroup return Utils.mapPage(inner, inner1 -> new IotHubDescriptionImpl(inner1, this.manager())); } - public RegistryStatistics getStats(String resourceGroupName, String resourceName) { - RegistryStatisticsInner inner = this.serviceClient().getStats(resourceGroupName, resourceName); - if (inner != null) { - return new RegistryStatisticsImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getStatsWithResponse( String resourceGroupName, String resourceName, Context context) { Response inner = @@ -139,6 +130,15 @@ public Response getStatsWithResponse( } } + public RegistryStatistics getStats(String resourceGroupName, String resourceName) { + RegistryStatisticsInner inner = this.serviceClient().getStats(resourceGroupName, resourceName); + if (inner != null) { + return new RegistryStatisticsImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable getValidSkus(String resourceGroupName, String resourceName) { PagedIterable inner = this.serviceClient().getValidSkus(resourceGroupName, resourceName); @@ -168,17 +168,6 @@ public PagedIterable listEventHubConsumerGroups( return Utils.mapPage(inner, inner1 -> new EventHubConsumerGroupInfoImpl(inner1, this.manager())); } - public EventHubConsumerGroupInfo getEventHubConsumerGroup( - String resourceGroupName, String resourceName, String eventHubEndpointName, String name) { - EventHubConsumerGroupInfoInner inner = - this.serviceClient().getEventHubConsumerGroup(resourceGroupName, resourceName, eventHubEndpointName, name); - if (inner != null) { - return new EventHubConsumerGroupInfoImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getEventHubConsumerGroupWithResponse( String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context) { Response inner = @@ -197,9 +186,15 @@ public Response getEventHubConsumerGroupWithResponse( } } - public void deleteEventHubConsumerGroup( + public EventHubConsumerGroupInfo getEventHubConsumerGroup( String resourceGroupName, String resourceName, String eventHubEndpointName, String name) { - this.serviceClient().deleteEventHubConsumerGroup(resourceGroupName, resourceName, eventHubEndpointName, name); + EventHubConsumerGroupInfoInner inner = + this.serviceClient().getEventHubConsumerGroup(resourceGroupName, resourceName, eventHubEndpointName, name); + if (inner != null) { + return new EventHubConsumerGroupInfoImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteEventHubConsumerGroupWithResponse( @@ -210,6 +205,11 @@ public Response deleteEventHubConsumerGroupWithResponse( resourceGroupName, resourceName, eventHubEndpointName, name, context); } + public void deleteEventHubConsumerGroup( + String resourceGroupName, String resourceName, String eventHubEndpointName, String name) { + this.serviceClient().deleteEventHubConsumerGroup(resourceGroupName, resourceName, eventHubEndpointName, name); + } + public PagedIterable listJobs(String resourceGroupName, String resourceName) { PagedIterable inner = this.serviceClient().listJobs(resourceGroupName, resourceName); return Utils.mapPage(inner, inner1 -> new JobResponseImpl(inner1, this.manager())); @@ -220,15 +220,6 @@ public PagedIterable listJobs(String resourceGroupName, String reso return Utils.mapPage(inner, inner1 -> new JobResponseImpl(inner1, this.manager())); } - public JobResponse getJob(String resourceGroupName, String resourceName, String jobId) { - JobResponseInner inner = this.serviceClient().getJob(resourceGroupName, resourceName, jobId); - if (inner != null) { - return new JobResponseImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getJobWithResponse( String resourceGroupName, String resourceName, String jobId, Context context) { Response inner = @@ -244,6 +235,15 @@ public Response getJobWithResponse( } } + public JobResponse getJob(String resourceGroupName, String resourceName, String jobId) { + JobResponseInner inner = this.serviceClient().getJob(resourceGroupName, resourceName, jobId); + if (inner != null) { + return new JobResponseImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable getQuotaMetrics(String resourceGroupName, String resourceName) { PagedIterable inner = this.serviceClient().getQuotaMetrics(resourceGroupName, resourceName); @@ -270,15 +270,6 @@ public PagedIterable getEndpointHealth( return Utils.mapPage(inner, inner1 -> new EndpointHealthDataImpl(inner1, this.manager())); } - public IotHubNameAvailabilityInfo checkNameAvailability(OperationInputs operationInputs) { - IotHubNameAvailabilityInfoInner inner = this.serviceClient().checkNameAvailability(operationInputs); - if (inner != null) { - return new IotHubNameAvailabilityInfoImpl(inner, this.manager()); - } else { - return null; - } - } - public Response checkNameAvailabilityWithResponse( OperationInputs operationInputs, Context context) { Response inner = @@ -294,10 +285,10 @@ public Response checkNameAvailabilityWithResponse( } } - public TestAllRoutesResult testAllRoutes(String iotHubName, String resourceGroupName, TestAllRoutesInput input) { - TestAllRoutesResultInner inner = this.serviceClient().testAllRoutes(iotHubName, resourceGroupName, input); + public IotHubNameAvailabilityInfo checkNameAvailability(OperationInputs operationInputs) { + IotHubNameAvailabilityInfoInner inner = this.serviceClient().checkNameAvailability(operationInputs); if (inner != null) { - return new TestAllRoutesResultImpl(inner, this.manager()); + return new IotHubNameAvailabilityInfoImpl(inner, this.manager()); } else { return null; } @@ -318,10 +309,10 @@ public Response testAllRoutesWithResponse( } } - public TestRouteResult testRoute(String iotHubName, String resourceGroupName, TestRouteInput input) { - TestRouteResultInner inner = this.serviceClient().testRoute(iotHubName, resourceGroupName, input); + public TestAllRoutesResult testAllRoutes(String iotHubName, String resourceGroupName, TestAllRoutesInput input) { + TestAllRoutesResultInner inner = this.serviceClient().testAllRoutes(iotHubName, resourceGroupName, input); if (inner != null) { - return new TestRouteResultImpl(inner, this.manager()); + return new TestAllRoutesResultImpl(inner, this.manager()); } else { return null; } @@ -342,6 +333,15 @@ public Response testRouteWithResponse( } } + public TestRouteResult testRoute(String iotHubName, String resourceGroupName, TestRouteInput input) { + TestRouteResultInner inner = this.serviceClient().testRoute(iotHubName, resourceGroupName, input); + if (inner != null) { + return new TestRouteResultImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listKeys( String resourceGroupName, String resourceName) { PagedIterable inner = @@ -356,17 +356,6 @@ public PagedIterable listKeys( return Utils.mapPage(inner, inner1 -> new SharedAccessSignatureAuthorizationRuleImpl(inner1, this.manager())); } - public SharedAccessSignatureAuthorizationRule getKeysForKeyName( - String resourceGroupName, String resourceName, String keyName) { - SharedAccessSignatureAuthorizationRuleInner inner = - this.serviceClient().getKeysForKeyName(resourceGroupName, resourceName, keyName); - if (inner != null) { - return new SharedAccessSignatureAuthorizationRuleImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getKeysForKeyNameWithResponse( String resourceGroupName, String resourceName, String keyName, Context context) { Response inner = @@ -382,12 +371,12 @@ public Response getKeysForKeyNameWithRes } } - public JobResponse exportDevices( - String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters) { - JobResponseInner inner = - this.serviceClient().exportDevices(resourceGroupName, resourceName, exportDevicesParameters); + public SharedAccessSignatureAuthorizationRule getKeysForKeyName( + String resourceGroupName, String resourceName, String keyName) { + SharedAccessSignatureAuthorizationRuleInner inner = + this.serviceClient().getKeysForKeyName(resourceGroupName, resourceName, keyName); if (inner != null) { - return new JobResponseImpl(inner, this.manager()); + return new SharedAccessSignatureAuthorizationRuleImpl(inner, this.manager()); } else { return null; } @@ -410,10 +399,10 @@ public Response exportDevicesWithResponse( } } - public JobResponse importDevices( - String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters) { + public JobResponse exportDevices( + String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters) { JobResponseInner inner = - this.serviceClient().importDevices(resourceGroupName, resourceName, importDevicesParameters); + this.serviceClient().exportDevices(resourceGroupName, resourceName, exportDevicesParameters); if (inner != null) { return new JobResponseImpl(inner, this.manager()); } else { @@ -438,6 +427,17 @@ public Response importDevicesWithResponse( } } + public JobResponse importDevices( + String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters) { + JobResponseInner inner = + this.serviceClient().importDevices(resourceGroupName, resourceName, importDevicesParameters); + if (inner != null) { + return new JobResponseImpl(inner, this.manager()); + } else { + return null; + } + } + public IotHubDescription getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsClientImpl.java index faf390664a4c0..ae15c99897ef5 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsClientImpl.java @@ -55,7 +55,7 @@ public final class IotHubsClientImpl implements IotHubsClient { */ @Host("{$host}") @ServiceInterface(name = "IotHubClientIotHubs") - private interface IotHubsService { + public interface IotHubsService { @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs" @@ -260,7 +260,7 @@ private PollerFlux, Void> beginManualFailoverAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginManualFailover( String iotHubName, String resourceGroupName, FailoverInput failoverInput) { - return beginManualFailoverAsync(iotHubName, resourceGroupName, failoverInput).getSyncPoller(); + return this.beginManualFailoverAsync(iotHubName, resourceGroupName, failoverInput).getSyncPoller(); } /** @@ -282,7 +282,7 @@ public SyncPoller, Void> beginManualFailover( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginManualFailover( String iotHubName, String resourceGroupName, FailoverInput failoverInput, Context context) { - return beginManualFailoverAsync(iotHubName, resourceGroupName, failoverInput, context).getSyncPoller(); + return this.beginManualFailoverAsync(iotHubName, resourceGroupName, failoverInput, context).getSyncPoller(); } /** diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsClientImpl.java index 826cad030fe57..53d2f603dd23f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsClientImpl.java @@ -55,7 +55,7 @@ public final class OperationsClientImpl implements OperationsClient { */ @Host("{$host}") @ServiceInterface(name = "IotHubClientOperatio") - private interface OperationsService { + public interface OperationsService { @Headers({"Content-Type: application/json"}) @Get("/providers/Microsoft.Devices/operations") @ExpectedResponses({200}) diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsClientImpl.java index 5b42edcb4904c..f08a378f781c0 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsClientImpl.java @@ -61,7 +61,7 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi */ @Host("{$host}") @ServiceInterface(name = "IotHubClientPrivateE") - private interface PrivateEndpointConnectionsService { + public interface PrivateEndpointConnectionsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs" @@ -251,14 +251,16 @@ private Mono> listAsync(String resourceGrou * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of private endpoint connections for an IotHub. + * @return the list of private endpoint connections for an IotHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public List list(String resourceGroupName, String resourceName) { - return listAsync(resourceGroupName, resourceName).block(); + public Response> listWithResponse( + String resourceGroupName, String resourceName, Context context) { + return listWithResponseAsync(resourceGroupName, resourceName, context).block(); } /** @@ -268,16 +270,14 @@ public List list(String resourceGroupName, Strin * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of private endpoint connections for an IotHub along with {@link Response}. + * @return the list of private endpoint connections for an IotHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response> listWithResponse( - String resourceGroupName, String resourceName, Context context) { - return listWithResponseAsync(resourceGroupName, resourceName, context).block(); + public List list(String resourceGroupName, String resourceName) { + return listWithResponse(resourceGroupName, resourceName, Context.NONE).getValue(); } /** @@ -424,15 +424,16 @@ private Mono getAsync( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private endpoint connection properties. + * @return private endpoint connection properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionInner get( - String resourceGroupName, String resourceName, String privateEndpointConnectionName) { - return getAsync(resourceGroupName, resourceName, privateEndpointConnectionName).block(); + public Response getWithResponse( + String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context) { + return getWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName, context).block(); } /** @@ -443,16 +444,15 @@ public PrivateEndpointConnectionInner get( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private endpoint connection properties along with {@link Response}. + * @return private endpoint connection properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context) { - return getWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName, context).block(); + public PrivateEndpointConnectionInner get( + String resourceGroupName, String resourceName, String privateEndpointConnectionName) { + return getWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, Context.NONE).getValue(); } /** @@ -687,8 +687,8 @@ public SyncPoller, PrivateEndpointCon String resourceName, String privateEndpointConnectionName, PrivateEndpointConnectionInner privateEndpointConnection) { - return beginUpdateAsync( - resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection) + return this + .beginUpdateAsync(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection) .getSyncPoller(); } @@ -714,7 +714,8 @@ public SyncPoller, PrivateEndpointCon String privateEndpointConnectionName, PrivateEndpointConnectionInner privateEndpointConnection, Context context) { - return beginUpdateAsync( + return this + .beginUpdateAsync( resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, context) .getSyncPoller(); } @@ -1014,7 +1015,7 @@ private PollerFlux, PrivateEndpointCo @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateEndpointConnectionInner> beginDelete( String resourceGroupName, String resourceName, String privateEndpointConnectionName) { - return beginDeleteAsync(resourceGroupName, resourceName, privateEndpointConnectionName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, privateEndpointConnectionName).getSyncPoller(); } /** @@ -1034,7 +1035,8 @@ public SyncPoller, PrivateEndpointCon @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateEndpointConnectionInner> beginDelete( String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, privateEndpointConnectionName, context) + return this + .beginDeleteAsync(resourceGroupName, resourceName, privateEndpointConnectionName, context) .getSyncPoller(); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsImpl.java index bdabcbe41bf35..b913061337deb 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsImpl.java @@ -29,20 +29,6 @@ public PrivateEndpointConnectionsImpl( this.serviceManager = serviceManager; } - public List list(String resourceGroupName, String resourceName) { - List inner = this.serviceClient().list(resourceGroupName, resourceName); - if (inner != null) { - return Collections - .unmodifiableList( - inner - .stream() - .map(inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())) - .collect(Collectors.toList())); - } else { - return Collections.emptyList(); - } - } - public Response> listWithResponse( String resourceGroupName, String resourceName, Context context) { Response> inner = @@ -62,14 +48,17 @@ public Response> listWithResponse( } } - public PrivateEndpointConnection get( - String resourceGroupName, String resourceName, String privateEndpointConnectionName) { - PrivateEndpointConnectionInner inner = - this.serviceClient().get(resourceGroupName, resourceName, privateEndpointConnectionName); + public List list(String resourceGroupName, String resourceName) { + List inner = this.serviceClient().list(resourceGroupName, resourceName); if (inner != null) { - return new PrivateEndpointConnectionImpl(inner, this.manager()); + return Collections + .unmodifiableList( + inner + .stream() + .map(inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())) + .collect(Collectors.toList())); } else { - return null; + return Collections.emptyList(); } } @@ -90,6 +79,17 @@ public Response getWithResponse( } } + public PrivateEndpointConnection get( + String resourceGroupName, String resourceName, String privateEndpointConnectionName) { + PrivateEndpointConnectionInner inner = + this.serviceClient().get(resourceGroupName, resourceName, privateEndpointConnectionName); + if (inner != null) { + return new PrivateEndpointConnectionImpl(inner, this.manager()); + } else { + return null; + } + } + public PrivateEndpointConnection update( String resourceGroupName, String resourceName, diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsClientImpl.java index 4ed518c7843a9..c5a48fb9f2518 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsClientImpl.java @@ -55,7 +55,7 @@ public final class PrivateLinkResourcesOperationsClientImpl implements PrivateLi */ @Host("{$host}") @ServiceInterface(name = "IotHubClientPrivateL") - private interface PrivateLinkResourcesOperationsService { + public interface PrivateLinkResourcesOperationsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs" @@ -212,14 +212,16 @@ private Mono listAsync(String resourceGroupName, Stri * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the available private link resources for an IotHub. + * @return the available private link resources for an IotHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkResourcesInner list(String resourceGroupName, String resourceName) { - return listAsync(resourceGroupName, resourceName).block(); + public Response listWithResponse( + String resourceGroupName, String resourceName, Context context) { + return listWithResponseAsync(resourceGroupName, resourceName, context).block(); } /** @@ -229,16 +231,14 @@ public PrivateLinkResourcesInner list(String resourceGroupName, String resourceN * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the available private link resources for an IotHub along with {@link Response}. + * @return the available private link resources for an IotHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - String resourceGroupName, String resourceName, Context context) { - return listWithResponseAsync(resourceGroupName, resourceName, context).block(); + public PrivateLinkResourcesInner list(String resourceGroupName, String resourceName) { + return listWithResponse(resourceGroupName, resourceName, Context.NONE).getValue(); } /** @@ -378,14 +378,16 @@ private Mono getAsync(String resourceGroupName, String * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param groupId The name of the private link resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link resource for the given IotHub. + * @return the specified private link resource for the given IotHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GroupIdInformationInner get(String resourceGroupName, String resourceName, String groupId) { - return getAsync(resourceGroupName, resourceName, groupId).block(); + public Response getWithResponse( + String resourceGroupName, String resourceName, String groupId, Context context) { + return getWithResponseAsync(resourceGroupName, resourceName, groupId, context).block(); } /** @@ -396,15 +398,13 @@ public GroupIdInformationInner get(String resourceGroupName, String resourceName * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param groupId The name of the private link resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link resource for the given IotHub along with {@link Response}. + * @return the specified private link resource for the given IotHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String resourceName, String groupId, Context context) { - return getWithResponseAsync(resourceGroupName, resourceName, groupId, context).block(); + public GroupIdInformationInner get(String resourceGroupName, String resourceName, String groupId) { + return getWithResponse(resourceGroupName, resourceName, groupId, Context.NONE).getValue(); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsImpl.java index b3bd0bf5ad1e5..af520d0b0b321 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsImpl.java @@ -29,15 +29,6 @@ public PrivateLinkResourcesOperationsImpl( this.serviceManager = serviceManager; } - public PrivateLinkResources list(String resourceGroupName, String resourceName) { - PrivateLinkResourcesInner inner = this.serviceClient().list(resourceGroupName, resourceName); - if (inner != null) { - return new PrivateLinkResourcesImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse( String resourceGroupName, String resourceName, Context context) { Response inner = @@ -53,10 +44,10 @@ public Response listWithResponse( } } - public GroupIdInformation get(String resourceGroupName, String resourceName, String groupId) { - GroupIdInformationInner inner = this.serviceClient().get(resourceGroupName, resourceName, groupId); + public PrivateLinkResources list(String resourceGroupName, String resourceName) { + PrivateLinkResourcesInner inner = this.serviceClient().list(resourceGroupName, resourceName); if (inner != null) { - return new GroupIdInformationImpl(inner, this.manager()); + return new PrivateLinkResourcesImpl(inner, this.manager()); } else { return null; } @@ -77,6 +68,15 @@ public Response getWithResponse( } } + public GroupIdInformation get(String resourceGroupName, String resourceName, String groupId) { + GroupIdInformationInner inner = this.serviceClient().get(resourceGroupName, resourceName, groupId); + if (inner != null) { + return new GroupIdInformationImpl(inner, this.manager()); + } else { + return null; + } + } + private PrivateLinkResourcesOperationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsClientImpl.java index 1658f08ab728c..420ecf7ba96a2 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsClientImpl.java @@ -51,7 +51,7 @@ public final class ResourceProviderCommonsClientImpl implements ResourceProvider */ @Host("{$host}") @ServiceInterface(name = "IotHubClientResource") - private interface ResourceProviderCommonsService { + public interface ResourceProviderCommonsService { @Headers({"Content-Type: application/json"}) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Devices/usages") @ExpectedResponses({200}) @@ -159,13 +159,15 @@ private Mono getSubscriptionQuotaAsync() { * *

Get the number of free and paid iot hubs in the subscription. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the number of free and paid iot hubs in the subscription. + * @return the number of free and paid iot hubs in the subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public UserSubscriptionQuotaListResultInner getSubscriptionQuota() { - return getSubscriptionQuotaAsync().block(); + public Response getSubscriptionQuotaWithResponse(Context context) { + return getSubscriptionQuotaWithResponseAsync(context).block(); } /** @@ -173,14 +175,12 @@ public UserSubscriptionQuotaListResultInner getSubscriptionQuota() { * *

Get the number of free and paid iot hubs in the subscription. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the number of free and paid iot hubs in the subscription along with {@link Response}. + * @return the number of free and paid iot hubs in the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSubscriptionQuotaWithResponse(Context context) { - return getSubscriptionQuotaWithResponseAsync(context).block(); + public UserSubscriptionQuotaListResultInner getSubscriptionQuota() { + return getSubscriptionQuotaWithResponse(Context.NONE).getValue(); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsImpl.java index 34c7ec7aa17de..52c9da09efa9f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsImpl.java @@ -26,15 +26,6 @@ public ResourceProviderCommonsImpl( this.serviceManager = serviceManager; } - public UserSubscriptionQuotaListResult getSubscriptionQuota() { - UserSubscriptionQuotaListResultInner inner = this.serviceClient().getSubscriptionQuota(); - if (inner != null) { - return new UserSubscriptionQuotaListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getSubscriptionQuotaWithResponse(Context context) { Response inner = this.serviceClient().getSubscriptionQuotaWithResponse(context); @@ -49,6 +40,15 @@ public Response getSubscriptionQuotaWithRespons } } + public UserSubscriptionQuotaListResult getSubscriptionQuota() { + UserSubscriptionQuotaListResultInner inner = this.serviceClient().getSubscriptionQuota(); + if (inner != null) { + return new UserSubscriptionQuotaListResultImpl(inner, this.manager()); + } else { + return null; + } + } + private ResourceProviderCommonsClient serviceClient() { return this.innerClient; } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmIdentity.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmIdentity.java index 117d836dcbe03..b31b99b2f7dfa 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmIdentity.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmIdentity.java @@ -39,6 +39,10 @@ public class ArmIdentity { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map userAssignedIdentities; + /** Creates an instance of ArmIdentity class. */ + public ArmIdentity() { + } + /** * Get the principalId property: Principal Id. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmUserIdentity.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmUserIdentity.java index 0f3168890d73a..88b5d4f0e53fa 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmUserIdentity.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmUserIdentity.java @@ -22,6 +22,10 @@ public class ArmUserIdentity { @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) private String clientId; + /** Creates an instance of ArmUserIdentity class. */ + public ArmUserIdentity() { + } + /** * Get the principalId property: The principalId property. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/AuthenticationType.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/AuthenticationType.java index 3236b1c023e13..dc7942e303a0d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/AuthenticationType.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/AuthenticationType.java @@ -16,6 +16,15 @@ public final class AuthenticationType extends ExpandableStringEnum { /** Static value DeviceManagement for Capabilities. */ public static final Capabilities DEVICE_MANAGEMENT = fromString("DeviceManagement"); + /** + * Creates a new instance of Capabilities value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Capabilities() { + } + /** * Creates or finds a Capabilities from its string representation. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateProperties.java index 8bff7fa6b4d2a..fd0ecad59a5b9 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateProperties.java @@ -54,6 +54,10 @@ public final class CertificateProperties { @JsonProperty(value = "certificate") private String certificate; + /** Creates an instance of CertificateProperties class. */ + public CertificateProperties() { + } + /** * Get the subject property: The certificate's subject name. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificatePropertiesWithNonce.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificatePropertiesWithNonce.java index f5ef2386f8398..502aba4aff9bb 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificatePropertiesWithNonce.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificatePropertiesWithNonce.java @@ -60,6 +60,10 @@ public final class CertificatePropertiesWithNonce { @JsonProperty(value = "certificate", access = JsonProperty.Access.WRITE_ONLY) private String certificate; + /** Creates an instance of CertificatePropertiesWithNonce class. */ + public CertificatePropertiesWithNonce() { + } + /** * Get the subject property: The certificate's subject name. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateVerificationDescription.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateVerificationDescription.java index 86adc06ff9187..fd3e8f4a26b44 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateVerificationDescription.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateVerificationDescription.java @@ -16,6 +16,10 @@ public final class CertificateVerificationDescription { @JsonProperty(value = "certificate") private String certificate; + /** Creates an instance of CertificateVerificationDescription class. */ + public CertificateVerificationDescription() { + } + /** * Get the certificate property: base-64 representation of X509 certificate .cer file or just .pem file content. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Certificates.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Certificates.java index b6a32877c792c..18cfe8ca8b339 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Certificates.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Certificates.java @@ -16,13 +16,15 @@ public interface Certificates { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the JSON-serialized array of Certificate objects. + * @return the JSON-serialized array of Certificate objects along with {@link Response}. */ - CertificateListDescription listByIotHub(String resourceGroupName, String resourceName); + Response listByIotHubWithResponse( + String resourceGroupName, String resourceName, Context context); /** * Get the certificate list. @@ -31,15 +33,13 @@ public interface Certificates { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the JSON-serialized array of Certificate objects along with {@link Response}. + * @return the JSON-serialized array of Certificate objects. */ - Response listByIotHubWithResponse( - String resourceGroupName, String resourceName, Context context); + CertificateListDescription listByIotHub(String resourceGroupName, String resourceName); /** * Get the certificate. @@ -49,13 +49,15 @@ Response listByIotHubWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate. + * @return the X509 Certificate along with {@link Response}. */ - CertificateDescription get(String resourceGroupName, String resourceName, String certificateName); + Response getWithResponse( + String resourceGroupName, String resourceName, String certificateName, Context context); /** * Get the certificate. @@ -65,15 +67,13 @@ Response listByIotHubWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate along with {@link Response}. + * @return the X509 Certificate. */ - Response getWithResponse( - String resourceGroupName, String resourceName, String certificateName, Context context); + CertificateDescription get(String resourceGroupName, String resourceName, String certificateName); /** * Delete an X509 certificate. @@ -84,12 +84,15 @@ Response getWithResponse( * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void delete(String resourceGroupName, String resourceName, String certificateName, String ifMatch); + Response deleteWithResponse( + String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context); /** * Delete an X509 certificate. @@ -100,15 +103,12 @@ Response getWithResponse( * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context); + void delete(String resourceGroupName, String resourceName, String certificateName, String ifMatch); /** * Generate verification code for proof of possession flow. @@ -120,14 +120,15 @@ Response deleteWithResponse( * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate. + * @return the X509 Certificate along with {@link Response}. */ - CertificateWithNonceDescription generateVerificationCode( - String resourceGroupName, String resourceName, String certificateName, String ifMatch); + Response generateVerificationCodeWithResponse( + String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context); /** * Generate verification code for proof of possession flow. @@ -139,15 +140,14 @@ CertificateWithNonceDescription generateVerificationCode( * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate along with {@link Response}. + * @return the X509 Certificate. */ - Response generateVerificationCodeWithResponse( - String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context); + CertificateWithNonceDescription generateVerificationCode( + String resourceGroupName, String resourceName, String certificateName, String ifMatch); /** * Verify certificate's private key possession. @@ -160,18 +160,20 @@ Response generateVerificationCodeWithResponse( * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. * @param certificateVerificationBody The name of the certificate. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate. + * @return the X509 Certificate along with {@link Response}. */ - CertificateDescription verify( + Response verifyWithResponse( String resourceGroupName, String resourceName, String certificateName, String ifMatch, - CertificateVerificationDescription certificateVerificationBody); + CertificateVerificationDescription certificateVerificationBody, + Context context); /** * Verify certificate's private key possession. @@ -184,20 +186,18 @@ CertificateDescription verify( * @param certificateName The name of the certificate. * @param ifMatch ETag of the Certificate. * @param certificateVerificationBody The name of the certificate. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the X509 Certificate along with {@link Response}. + * @return the X509 Certificate. */ - Response verifyWithResponse( + CertificateDescription verify( String resourceGroupName, String resourceName, String certificateName, String ifMatch, - CertificateVerificationDescription certificateVerificationBody, - Context context); + CertificateVerificationDescription certificateVerificationBody); /** * Get the certificate. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CloudToDeviceProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CloudToDeviceProperties.java index 83c5e1f04ed54..fd0bff5dd1da5 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CloudToDeviceProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CloudToDeviceProperties.java @@ -31,6 +31,10 @@ public final class CloudToDeviceProperties { @JsonProperty(value = "feedback") private FeedbackProperties feedback; + /** Creates an instance of CloudToDeviceProperties class. */ + public CloudToDeviceProperties() { + } + /** * Get the maxDeliveryCount property: The max delivery count for cloud-to-device messages in the device queue. See: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DefaultAction.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DefaultAction.java index 2d0677802a7c6..9e90c717038ce 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DefaultAction.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DefaultAction.java @@ -16,6 +16,15 @@ public final class DefaultAction extends ExpandableStringEnum { /** Static value Allow for DefaultAction. */ public static final DefaultAction ALLOW = fromString("Allow"); + /** + * Creates a new instance of DefaultAction value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DefaultAction() { + } + /** * Creates or finds a DefaultAction from its string representation. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EncryptionPropertiesDescription.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EncryptionPropertiesDescription.java index 7ce66e44cdffe..4b4405b8a2fca 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EncryptionPropertiesDescription.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EncryptionPropertiesDescription.java @@ -23,6 +23,10 @@ public final class EncryptionPropertiesDescription { @JsonProperty(value = "keyVaultProperties") private List keyVaultProperties; + /** Creates an instance of EncryptionPropertiesDescription class. */ + public EncryptionPropertiesDescription() { + } + /** * Get the keySource property: The source of the key. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthDataListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthDataListResult.java index 2a5fbe87e3fbe..3f700fb574d8d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthDataListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthDataListResult.java @@ -24,6 +24,10 @@ public final class EndpointHealthDataListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of EndpointHealthDataListResult class. */ + public EndpointHealthDataListResult() { + } + /** * Get the value property: JSON-serialized array of Endpoint health data. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthStatus.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthStatus.java index 08f2d43cb7811..5afffd92728a9 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthStatus.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthStatus.java @@ -33,6 +33,15 @@ public final class EndpointHealthStatus extends ExpandableStringEnum endpointNames; + /** Creates an instance of EnrichmentProperties class. */ + public EnrichmentProperties() { + } + /** * Get the key property: The key or name for the enrichment property. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java index 5b5380289f699..6a601a5590d7c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java @@ -17,6 +17,10 @@ public final class ErrorDetails extends ManagementError { @JsonProperty(value = "httpStatusCode", access = JsonProperty.Access.WRITE_ONLY) private String httpStatusCode; + /** Creates an instance of ErrorDetails class. */ + public ErrorDetails() { + } + /** * Get the httpStatusCode property: The HTTP status code. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupBodyDescription.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupBodyDescription.java index ce5cc0baf68a8..2bfe498200a52 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupBodyDescription.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupBodyDescription.java @@ -17,6 +17,10 @@ public final class EventHubConsumerGroupBodyDescription { @JsonProperty(value = "properties", required = true) private EventHubConsumerGroupName properties; + /** Creates an instance of EventHubConsumerGroupBodyDescription class. */ + public EventHubConsumerGroupBodyDescription() { + } + /** * Get the properties property: The EventHub consumer group name. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupName.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupName.java index eebf1977ebc8b..b35a0f96c45fa 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupName.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupName.java @@ -17,6 +17,10 @@ public final class EventHubConsumerGroupName { @JsonProperty(value = "name", required = true) private String name; + /** Creates an instance of EventHubConsumerGroupName class. */ + public EventHubConsumerGroupName() { + } + /** * Get the name property: EventHub consumer group name. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupsListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupsListResult.java index 98ad18da5ff12..201441b4c9dbe 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupsListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupsListResult.java @@ -24,6 +24,10 @@ public final class EventHubConsumerGroupsListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of EventHubConsumerGroupsListResult class. */ + public EventHubConsumerGroupsListResult() { + } + /** * Get the value property: List of consumer groups objects. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubProperties.java index 25ed8dd04c9fe..883d305adf1dc 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubProperties.java @@ -43,6 +43,10 @@ public final class EventHubProperties { @JsonProperty(value = "endpoint", access = JsonProperty.Access.WRITE_ONLY) private String endpoint; + /** Creates an instance of EventHubProperties class. */ + public EventHubProperties() { + } + /** * Get the retentionTimeInDays property: The retention time for device-to-cloud messages in days. See: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ExportDevicesRequest.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ExportDevicesRequest.java index 58ddfb4b35033..82d05ca194f78 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ExportDevicesRequest.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ExportDevicesRequest.java @@ -55,6 +55,10 @@ public final class ExportDevicesRequest { @JsonProperty(value = "configurationsBlobName") private String configurationsBlobName; + /** Creates an instance of ExportDevicesRequest class. */ + public ExportDevicesRequest() { + } + /** * Get the exportBlobContainerUri property: The export blob container URI. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FailoverInput.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FailoverInput.java index ca0a620dbd794..797a5c1e05e18 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FailoverInput.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FailoverInput.java @@ -17,6 +17,10 @@ public final class FailoverInput { @JsonProperty(value = "failoverRegion", required = true) private String failoverRegion; + /** Creates an instance of FailoverInput class. */ + public FailoverInput() { + } + /** * Get the failoverRegion property: Region the hub will be failed over to. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FallbackRouteProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FallbackRouteProperties.java index 09a9ed51f4e6d..7074946fa84d9 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FallbackRouteProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FallbackRouteProperties.java @@ -48,6 +48,10 @@ public final class FallbackRouteProperties { @JsonProperty(value = "isEnabled", required = true) private boolean isEnabled; + /** Creates an instance of FallbackRouteProperties class. */ + public FallbackRouteProperties() { + } + /** * Get the name property: The name of the route. The name can only include alphanumeric characters, periods, * underscores, hyphens, has a maximum length of 64 characters, and must be unique. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FeedbackProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FeedbackProperties.java index 61a0003ae153e..f48d21461a2db 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FeedbackProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FeedbackProperties.java @@ -32,6 +32,10 @@ public final class FeedbackProperties { @JsonProperty(value = "maxDeliveryCount") private Integer maxDeliveryCount; + /** Creates an instance of FeedbackProperties class. */ + public FeedbackProperties() { + } + /** * Get the lockDurationAsIso8601 property: The lock duration for the feedback queue. See: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/GroupIdInformationProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/GroupIdInformationProperties.java index aeecc813154ed..e58439d1601f1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/GroupIdInformationProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/GroupIdInformationProperties.java @@ -29,6 +29,10 @@ public final class GroupIdInformationProperties { @JsonProperty(value = "requiredZoneNames") private List requiredZoneNames; + /** Creates an instance of GroupIdInformationProperties class. */ + public GroupIdInformationProperties() { + } + /** * Get the groupId property: The group id. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ImportDevicesRequest.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ImportDevicesRequest.java index 6d04189902e55..384dcaa27034d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ImportDevicesRequest.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ImportDevicesRequest.java @@ -59,6 +59,10 @@ public final class ImportDevicesRequest { @JsonProperty(value = "configurationsBlobName") private String configurationsBlobName; + /** Creates an instance of ImportDevicesRequest class. */ + public ImportDevicesRequest() { + } + /** * Get the inputBlobContainerUri property: The input blob container URI. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubCapacity.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubCapacity.java index 7593c3e437b9b..a4c829d876cc2 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubCapacity.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubCapacity.java @@ -34,6 +34,10 @@ public final class IotHubCapacity { @JsonProperty(value = "scaleType", access = JsonProperty.Access.WRITE_ONLY) private IotHubScaleType scaleType; + /** Creates an instance of IotHubCapacity class. */ + public IotHubCapacity() { + } + /** * Get the minimum property: The minimum number of units. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java index 578e5d5b01951..8f09aef71b2d7 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java @@ -336,13 +336,14 @@ interface WithTags { * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param exportDevicesParameters The parameters that specify the export devices operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object. + * @return the properties of the Job Response object along with {@link Response}. */ - JobResponse exportDevices(ExportDevicesRequest exportDevicesParameters); + Response exportDevicesWithResponse(ExportDevicesRequest exportDevicesParameters, Context context); /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more @@ -354,14 +355,13 @@ interface WithTags { * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param exportDevicesParameters The parameters that specify the export devices operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object along with {@link Response}. + * @return the properties of the Job Response object. */ - Response exportDevicesWithResponse(ExportDevicesRequest exportDevicesParameters, Context context); + JobResponse exportDevices(ExportDevicesRequest exportDevicesParameters); /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, @@ -373,13 +373,14 @@ interface WithTags { * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param importDevicesParameters The parameters that specify the import devices operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object. + * @return the properties of the Job Response object along with {@link Response}. */ - JobResponse importDevices(ImportDevicesRequest importDevicesParameters); + Response importDevicesWithResponse(ImportDevicesRequest importDevicesParameters, Context context); /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, @@ -391,12 +392,11 @@ interface WithTags { * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param importDevicesParameters The parameters that specify the import devices operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object along with {@link Response}. + * @return the properties of the Job Response object. */ - Response importDevicesWithResponse(ImportDevicesRequest importDevicesParameters, Context context); + JobResponse importDevices(ImportDevicesRequest importDevicesParameters); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescriptionListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescriptionListResult.java index 5f26f87b44686..1229e5858bd29 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescriptionListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescriptionListResult.java @@ -24,6 +24,10 @@ public final class IotHubDescriptionListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of IotHubDescriptionListResult class. */ + public IotHubDescriptionListResult() { + } + /** * Get the value property: The array of IotHubDescription objects. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubLocationDescription.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubLocationDescription.java index 27ccef2cb48c7..cfb319b045dc6 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubLocationDescription.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubLocationDescription.java @@ -24,6 +24,10 @@ public final class IotHubLocationDescription { @JsonProperty(value = "role") private IotHubReplicaRoleType role; + /** Creates an instance of IotHubLocationDescription class. */ + public IotHubLocationDescription() { + } + /** * Get the location property: The name of the Azure region. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubProperties.java index 08a23a32c4840..d9918847b688a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubProperties.java @@ -188,6 +188,16 @@ public final class IotHubProperties { @JsonProperty(value = "rootCertificate") private RootCertificateProperties rootCertificate; + /* + * This property specifies the IP Version the hub is currently utilizing. + */ + @JsonProperty(value = "ipVersion") + private IpVersion ipVersion; + + /** Creates an instance of IotHubProperties class. */ + public IotHubProperties() { + } + /** * Get the authorizationPolicies property: The shared access policies you can use to secure a connection to the IoT * hub. @@ -710,6 +720,26 @@ public IotHubProperties withRootCertificate(RootCertificateProperties rootCertif return this; } + /** + * Get the ipVersion property: This property specifies the IP Version the hub is currently utilizing. + * + * @return the ipVersion value. + */ + public IpVersion ipVersion() { + return this.ipVersion; + } + + /** + * Set the ipVersion property: This property specifies the IP Version the hub is currently utilizing. + * + * @param ipVersion the ipVersion value to set. + * @return the IotHubProperties object itself. + */ + public IotHubProperties withIpVersion(IpVersion ipVersion) { + this.ipVersion = ipVersion; + return this; + } + /** * Validates the instance. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubPropertiesDeviceStreams.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubPropertiesDeviceStreams.java index b27b3b0b99be1..ace27da806e62 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubPropertiesDeviceStreams.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubPropertiesDeviceStreams.java @@ -17,6 +17,10 @@ public final class IotHubPropertiesDeviceStreams { @JsonProperty(value = "streamingEndpoints") private List streamingEndpoints; + /** Creates an instance of IotHubPropertiesDeviceStreams class. */ + public IotHubPropertiesDeviceStreams() { + } + /** * Get the streamingEndpoints property: List of Device Streams Endpoints. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubQuotaMetricInfoListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubQuotaMetricInfoListResult.java index fd3c10602c39a..49bc284ce2d5d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubQuotaMetricInfoListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubQuotaMetricInfoListResult.java @@ -24,6 +24,10 @@ public final class IotHubQuotaMetricInfoListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of IotHubQuotaMetricInfoListResult class. */ + public IotHubQuotaMetricInfoListResult() { + } + /** * Get the value property: The array of quota metrics objects. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubReplicaRoleType.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubReplicaRoleType.java index 330daec923c0f..d46d28d791e19 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubReplicaRoleType.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubReplicaRoleType.java @@ -20,6 +20,15 @@ public final class IotHubReplicaRoleType extends ExpandableStringEnum getByResourceGroupWithResponse( + String resourceGroupName, String resourceName, Context context); /** * Get the non-security related metadata of an IoT hub @@ -32,15 +34,13 @@ public interface IotHubResources { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the non-security related metadata of an IoT hub along with {@link Response}. + * @return the non-security related metadata of an IoT hub. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String resourceName, Context context); + IotHubDescription getByResourceGroup(String resourceGroupName, String resourceName); /** * Delete an IoT hub @@ -135,13 +135,14 @@ Response getByResourceGroupWithResponse( * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the statistics from an IoT hub. + * @return the statistics from an IoT hub along with {@link Response}. */ - RegistryStatistics getStats(String resourceGroupName, String resourceName); + Response getStatsWithResponse(String resourceGroupName, String resourceName, Context context); /** * Get the statistics from an IoT hub @@ -150,14 +151,13 @@ Response getByResourceGroupWithResponse( * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the statistics from an IoT hub along with {@link Response}. + * @return the statistics from an IoT hub. */ - Response getStatsWithResponse(String resourceGroupName, String resourceName, Context context); + RegistryStatistics getStats(String resourceGroupName, String resourceName); /** * Get the list of valid SKUs for an IoT hub @@ -236,14 +236,16 @@ PagedIterable listEventHubConsumerGroups( * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to retrieve. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * @return a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub along with {@link + * Response}. */ - EventHubConsumerGroupInfo getEventHubConsumerGroup( - String resourceGroupName, String resourceName, String eventHubEndpointName, String name); + Response getEventHubConsumerGroupWithResponse( + String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context); /** * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub @@ -254,16 +256,14 @@ EventHubConsumerGroupInfo getEventHubConsumerGroup( * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to retrieve. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub along with {@link - * Response}. + * @return a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. */ - Response getEventHubConsumerGroupWithResponse( - String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context); + EventHubConsumerGroupInfo getEventHubConsumerGroup( + String resourceGroupName, String resourceName, String eventHubEndpointName, String name); /** * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub @@ -274,13 +274,15 @@ Response getEventHubConsumerGroupWithResponse( * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to delete. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void deleteEventHubConsumerGroup( - String resourceGroupName, String resourceName, String eventHubEndpointName, String name); + Response deleteEventHubConsumerGroupWithResponse( + String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context); /** * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub @@ -291,15 +293,13 @@ void deleteEventHubConsumerGroup( * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to delete. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteEventHubConsumerGroupWithResponse( - String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context); + void deleteEventHubConsumerGroup( + String resourceGroupName, String resourceName, String eventHubEndpointName, String name); /** * Get a list of all the jobs in an IoT hub. For more information, see: @@ -346,13 +346,15 @@ Response deleteEventHubConsumerGroupWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param jobId The job identifier. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a job from an IoT hub. + * @return the details of a job from an IoT hub along with {@link Response}. */ - JobResponse getJob(String resourceGroupName, String resourceName, String jobId); + Response getJobWithResponse( + String resourceGroupName, String resourceName, String jobId, Context context); /** * Get the details of a job from an IoT hub. For more information, see: @@ -364,15 +366,13 @@ Response deleteEventHubConsumerGroupWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param jobId The job identifier. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a job from an IoT hub along with {@link Response}. + * @return the details of a job from an IoT hub. */ - Response getJobWithResponse( - String resourceGroupName, String resourceName, String jobId, Context context); + JobResponse getJob(String resourceGroupName, String resourceName, String jobId); /** * Get the quota metrics for an IoT hub @@ -444,13 +444,15 @@ PagedIterable getQuotaMetrics( * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties indicating whether a given IoT hub name is available. + * @return the properties indicating whether a given IoT hub name is available along with {@link Response}. */ - IotHubNameAvailabilityInfo checkNameAvailability(OperationInputs operationInputs); + Response checkNameAvailabilityWithResponse( + OperationInputs operationInputs, Context context); /** * Check if an IoT hub name is available @@ -459,15 +461,13 @@ PagedIterable getQuotaMetrics( * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties indicating whether a given IoT hub name is available along with {@link Response}. + * @return the properties indicating whether a given IoT hub name is available. */ - Response checkNameAvailabilityWithResponse( - OperationInputs operationInputs, Context context); + IotHubNameAvailabilityInfo checkNameAvailability(OperationInputs operationInputs); /** * Test all routes @@ -477,13 +477,15 @@ Response checkNameAvailabilityWithResponse( * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. * @param input Input for testing all routes. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of testing all routes. + * @return result of testing all routes along with {@link Response}. */ - TestAllRoutesResult testAllRoutes(String iotHubName, String resourceGroupName, TestAllRoutesInput input); + Response testAllRoutesWithResponse( + String iotHubName, String resourceGroupName, TestAllRoutesInput input, Context context); /** * Test all routes @@ -493,15 +495,13 @@ Response checkNameAvailabilityWithResponse( * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. * @param input Input for testing all routes. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of testing all routes along with {@link Response}. + * @return result of testing all routes. */ - Response testAllRoutesWithResponse( - String iotHubName, String resourceGroupName, TestAllRoutesInput input, Context context); + TestAllRoutesResult testAllRoutes(String iotHubName, String resourceGroupName, TestAllRoutesInput input); /** * Test the new route @@ -511,13 +511,15 @@ Response testAllRoutesWithResponse( * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. * @param input Route that needs to be tested. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of testing one route. + * @return result of testing one route along with {@link Response}. */ - TestRouteResult testRoute(String iotHubName, String resourceGroupName, TestRouteInput input); + Response testRouteWithResponse( + String iotHubName, String resourceGroupName, TestRouteInput input, Context context); /** * Test the new route @@ -527,15 +529,13 @@ Response testAllRoutesWithResponse( * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. * @param input Route that needs to be tested. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of testing one route along with {@link Response}. + * @return result of testing one route. */ - Response testRouteWithResponse( - String iotHubName, String resourceGroupName, TestRouteInput input, Context context); + TestRouteResult testRoute(String iotHubName, String resourceGroupName, TestRouteInput input); /** * Get the security metadata for an IoT hub. For more information, see: @@ -583,14 +583,15 @@ PagedIterable listKeys( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param keyName The name of the shared access policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a shared access policy by name from an IoT hub. + * @return a shared access policy by name from an IoT hub along with {@link Response}. */ - SharedAccessSignatureAuthorizationRule getKeysForKeyName( - String resourceGroupName, String resourceName, String keyName); + Response getKeysForKeyNameWithResponse( + String resourceGroupName, String resourceName, String keyName, Context context); /** * Get a shared access policy by name from an IoT hub. For more information, see: @@ -602,15 +603,14 @@ SharedAccessSignatureAuthorizationRule getKeysForKeyName( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param keyName The name of the shared access policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a shared access policy by name from an IoT hub along with {@link Response}. + * @return a shared access policy by name from an IoT hub. */ - Response getKeysForKeyNameWithResponse( - String resourceGroupName, String resourceName, String keyName, Context context); + SharedAccessSignatureAuthorizationRule getKeysForKeyName( + String resourceGroupName, String resourceName, String keyName); /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more @@ -624,14 +624,15 @@ Response getKeysForKeyNameWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param exportDevicesParameters The parameters that specify the export devices operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object. + * @return the properties of the Job Response object along with {@link Response}. */ - JobResponse exportDevices( - String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters); + Response exportDevicesWithResponse( + String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters, Context context); /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more @@ -645,15 +646,14 @@ JobResponse exportDevices( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param exportDevicesParameters The parameters that specify the export devices operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object along with {@link Response}. + * @return the properties of the Job Response object. */ - Response exportDevicesWithResponse( - String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters, Context context); + JobResponse exportDevices( + String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters); /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, @@ -667,14 +667,15 @@ Response exportDevicesWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param importDevicesParameters The parameters that specify the import devices operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object. + * @return the properties of the Job Response object along with {@link Response}. */ - JobResponse importDevices( - String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters); + Response importDevicesWithResponse( + String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters, Context context); /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, @@ -688,15 +689,14 @@ JobResponse importDevices( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param importDevicesParameters The parameters that specify the import devices operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the Job Response object along with {@link Response}. + * @return the properties of the Job Response object. */ - Response importDevicesWithResponse( - String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters, Context context); + JobResponse importDevices( + String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters); /** * Get the non-security related metadata of an IoT hub diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSku.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSku.java index 16c63bf11ea4e..ec217ddc298b2 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSku.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSku.java @@ -31,6 +31,15 @@ public final class IotHubSku extends ExpandableStringEnum { /** Static value B3 for IotHubSku. */ public static final IotHubSku B3 = fromString("B3"); + /** + * Creates a new instance of IotHubSku value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public IotHubSku() { + } + /** * Creates or finds a IotHubSku from its string representation. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuDescriptionListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuDescriptionListResult.java index be242495174cc..3c9e3212e5df8 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuDescriptionListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuDescriptionListResult.java @@ -24,6 +24,10 @@ public final class IotHubSkuDescriptionListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of IotHubSkuDescriptionListResult class. */ + public IotHubSkuDescriptionListResult() { + } + /** * Get the value property: The array of IotHubSkuDescription. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuInfo.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuInfo.java index c10197f7e7c6c..ee45af7ece30b 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuInfo.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuInfo.java @@ -30,6 +30,10 @@ public final class IotHubSkuInfo { @JsonProperty(value = "capacity") private Long capacity; + /** Creates an instance of IotHubSkuInfo class. */ + public IotHubSkuInfo() { + } + /** * Get the name property: The name of the SKU. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpFilterRule.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpFilterRule.java index 5b4d37decc14f..f3a38ad605ed8 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpFilterRule.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpFilterRule.java @@ -29,6 +29,10 @@ public final class IpFilterRule { @JsonProperty(value = "ipMask", required = true) private String ipMask; + /** Creates an instance of IpFilterRule class. */ + public IpFilterRule() { + } + /** * Get the filterName property: The name of the IP filter rule. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpVersion.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpVersion.java new file mode 100644 index 0000000000000..496858e0f0b3a --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpVersion.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.iothub.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** This property specifies the IP Version the hub is currently utilizing. */ +public final class IpVersion extends ExpandableStringEnum { + /** Static value ipv4 for IpVersion. */ + public static final IpVersion IPV4 = fromString("ipv4"); + + /** Static value ipv6 for IpVersion. */ + public static final IpVersion IPV6 = fromString("ipv6"); + + /** Static value ipv4ipv6 for IpVersion. */ + public static final IpVersion IPV4IPV6 = fromString("ipv4ipv6"); + + /** + * Creates a new instance of IpVersion value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public IpVersion() { + } + + /** + * Creates or finds a IpVersion from its string representation. + * + * @param name a name to look for. + * @return the corresponding IpVersion. + */ + @JsonCreator + public static IpVersion fromString(String name) { + return fromString(name, IpVersion.class); + } + + /** + * Gets known IpVersion values. + * + * @return known IpVersion values. + */ + public static Collection values() { + return values(IpVersion.class); + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobResponseListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobResponseListResult.java index 7afc6d7bee45d..796414d7b1af5 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobResponseListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobResponseListResult.java @@ -24,6 +24,10 @@ public final class JobResponseListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of JobResponseListResult class. */ + public JobResponseListResult() { + } + /** * Get the value property: The array of JobResponse objects. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobType.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobType.java index 6702aa09a26a3..5f6dab2bf0945 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobType.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobType.java @@ -40,6 +40,15 @@ public final class JobType extends ExpandableStringEnum { /** Static value firmwareUpdate for JobType. */ public static final JobType FIRMWARE_UPDATE = fromString("firmwareUpdate"); + /** + * Creates a new instance of JobType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public JobType() { + } + /** * Creates or finds a JobType from its string representation. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/KeyVaultKeyProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/KeyVaultKeyProperties.java index ad465980a1656..f106a37fdc4ae 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/KeyVaultKeyProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/KeyVaultKeyProperties.java @@ -22,6 +22,10 @@ public final class KeyVaultKeyProperties { @JsonProperty(value = "identity") private ManagedIdentity identity; + /** Creates an instance of KeyVaultKeyProperties class. */ + public KeyVaultKeyProperties() { + } + /** * Get the keyIdentifier property: The identifier of the key. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ManagedIdentity.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ManagedIdentity.java index 9a1706f0fddeb..e3525e16a659a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ManagedIdentity.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ManagedIdentity.java @@ -16,6 +16,10 @@ public class ManagedIdentity { @JsonProperty(value = "userAssignedIdentity") private String userAssignedIdentity; + /** Creates an instance of ManagedIdentity class. */ + public ManagedIdentity() { + } + /** * Get the userAssignedIdentity property: The user assigned identity. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MatchedRoute.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MatchedRoute.java index 86c2bf096b44c..8076d7b91c509 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MatchedRoute.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MatchedRoute.java @@ -16,6 +16,10 @@ public final class MatchedRoute { @JsonProperty(value = "properties") private RouteProperties properties; + /** Creates an instance of MatchedRoute class. */ + public MatchedRoute() { + } + /** * Get the properties property: Properties of routes that matched. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MessagingEndpointProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MessagingEndpointProperties.java index d84fcf607518a..0facfbae66282 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MessagingEndpointProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MessagingEndpointProperties.java @@ -31,6 +31,10 @@ public final class MessagingEndpointProperties { @JsonProperty(value = "maxDeliveryCount") private Integer maxDeliveryCount; + /** Creates an instance of MessagingEndpointProperties class. */ + public MessagingEndpointProperties() { + } + /** * Get the lockDurationAsIso8601 property: The lock duration. See: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Name.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Name.java index 8f9b4261c6d95..76721c04f0af4 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Name.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Name.java @@ -22,6 +22,10 @@ public final class Name { @JsonProperty(value = "localizedValue") private String localizedValue; + /** Creates an instance of Name class. */ + public Name() { + } + /** * Get the value property: IotHub type. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleIpAction.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleIpAction.java index 55ade2b77b27b..cf6f0b0ed90ed 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleIpAction.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleIpAction.java @@ -13,6 +13,15 @@ public final class NetworkRuleIpAction extends ExpandableStringEnum ipRules; + /** Creates an instance of NetworkRuleSetProperties class. */ + public NetworkRuleSetProperties() { + } + /** * Get the defaultAction property: Default Action for Network Rule Set. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationDisplay.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationDisplay.java index 3c5633977ff86..e0ae246f5072d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationDisplay.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationDisplay.java @@ -34,6 +34,10 @@ public final class OperationDisplay { @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY) private String description; + /** Creates an instance of OperationDisplay class. */ + public OperationDisplay() { + } + /** * Get the provider property: Service provider: Microsoft Devices. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationInputs.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationInputs.java index 9492b03a654ee..d61bab6673804 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationInputs.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationInputs.java @@ -17,6 +17,10 @@ public final class OperationInputs { @JsonProperty(value = "name", required = true) private String name; + /** Creates an instance of OperationInputs class. */ + public OperationInputs() { + } + /** * Get the name property: The name of the IoT hub to check. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationListResult.java index cdce3e40088ba..434b7df17515a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationListResult.java @@ -27,6 +27,10 @@ public final class OperationListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of OperationListResult class. */ + public OperationListResult() { + } + /** * Get the value property: List of IoT Hub operations supported by the Microsoft.Devices resource provider. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpoint.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpoint.java index 208001d2fc8e5..34fb31313cfc6 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpoint.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpoint.java @@ -16,6 +16,10 @@ public final class PrivateEndpoint { @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id; + /** Creates an instance of PrivateEndpoint class. */ + public PrivateEndpoint() { + } + /** * Get the id property: The resource identifier. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnectionProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnectionProperties.java index 585a2e72b586a..e0ddcb697953c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnectionProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnectionProperties.java @@ -23,6 +23,10 @@ public final class PrivateEndpointConnectionProperties { @JsonProperty(value = "privateLinkServiceConnectionState", required = true) private PrivateLinkServiceConnectionState privateLinkServiceConnectionState; + /** Creates an instance of PrivateEndpointConnectionProperties class. */ + public PrivateEndpointConnectionProperties() { + } + /** * Get the privateEndpoint property: The private endpoint property of a private endpoint connection. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnections.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnections.java index c9bd4ce44b0e2..41de8c4cc56f5 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnections.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnections.java @@ -18,13 +18,15 @@ public interface PrivateEndpointConnections { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of private endpoint connections for an IotHub. + * @return the list of private endpoint connections for an IotHub along with {@link Response}. */ - List list(String resourceGroupName, String resourceName); + Response> listWithResponse( + String resourceGroupName, String resourceName, Context context); /** * List private endpoint connections @@ -33,15 +35,13 @@ public interface PrivateEndpointConnections { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of private endpoint connections for an IotHub along with {@link Response}. + * @return the list of private endpoint connections for an IotHub. */ - Response> listWithResponse( - String resourceGroupName, String resourceName, Context context); + List list(String resourceGroupName, String resourceName); /** * Get private endpoint connection @@ -51,13 +51,15 @@ Response> listWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private endpoint connection properties. + * @return private endpoint connection properties along with {@link Response}. */ - PrivateEndpointConnection get(String resourceGroupName, String resourceName, String privateEndpointConnectionName); + Response getWithResponse( + String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context); /** * Get private endpoint connection @@ -67,15 +69,13 @@ Response> listWithResponse( * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private endpoint connection properties along with {@link Response}. + * @return private endpoint connection properties. */ - Response getWithResponse( - String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context); + PrivateEndpointConnection get(String resourceGroupName, String resourceName, String privateEndpointConnectionName); /** * Update private endpoint connection diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkResourcesOperations.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkResourcesOperations.java index f6b357d131ccf..7aa847cc6a185 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkResourcesOperations.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkResourcesOperations.java @@ -16,13 +16,14 @@ public interface PrivateLinkResourcesOperations { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the available private link resources for an IotHub. + * @return the available private link resources for an IotHub along with {@link Response}. */ - PrivateLinkResources list(String resourceGroupName, String resourceName); + Response listWithResponse(String resourceGroupName, String resourceName, Context context); /** * List private link resources @@ -31,14 +32,13 @@ public interface PrivateLinkResourcesOperations { * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the available private link resources for an IotHub along with {@link Response}. + * @return the available private link resources for an IotHub. */ - Response listWithResponse(String resourceGroupName, String resourceName, Context context); + PrivateLinkResources list(String resourceGroupName, String resourceName); /** * Get the specified private link resource @@ -48,13 +48,15 @@ public interface PrivateLinkResourcesOperations { * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param groupId The name of the private link resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link resource for the given IotHub. + * @return the specified private link resource for the given IotHub along with {@link Response}. */ - GroupIdInformation get(String resourceGroupName, String resourceName, String groupId); + Response getWithResponse( + String resourceGroupName, String resourceName, String groupId, Context context); /** * Get the specified private link resource @@ -64,13 +66,11 @@ public interface PrivateLinkResourcesOperations { * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param groupId The name of the private link resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link resource for the given IotHub along with {@link Response}. + * @return the specified private link resource for the given IotHub. */ - Response getWithResponse( - String resourceGroupName, String resourceName, String groupId, Context context); + GroupIdInformation get(String resourceGroupName, String resourceName, String groupId); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionState.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionState.java index 43d671d7fd888..0210134ae6f02 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionState.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionState.java @@ -29,6 +29,10 @@ public final class PrivateLinkServiceConnectionState { @JsonProperty(value = "actionsRequired") private String actionsRequired; + /** Creates an instance of PrivateLinkServiceConnectionState class. */ + public PrivateLinkServiceConnectionState() { + } + /** * Get the status property: The status of a private endpoint connection. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionStatus.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionStatus.java index 62a5d08487ad5..2199bffd3a5c1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionStatus.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionStatus.java @@ -22,6 +22,15 @@ public final class PrivateLinkServiceConnectionStatus extends ExpandableStringEn /** Static value Disconnected for PrivateLinkServiceConnectionStatus. */ public static final PrivateLinkServiceConnectionStatus DISCONNECTED = fromString("Disconnected"); + /** + * Creates a new instance of PrivateLinkServiceConnectionStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PrivateLinkServiceConnectionStatus() { + } + /** * Creates or finds a PrivateLinkServiceConnectionStatus from its string representation. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PublicNetworkAccess.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PublicNetworkAccess.java index 51950226347c9..17574ee3fd8f7 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PublicNetworkAccess.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PublicNetworkAccess.java @@ -16,6 +16,15 @@ public final class PublicNetworkAccess extends ExpandableStringEnumGet the number of free and paid iot hubs in the subscription. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the number of free and paid iot hubs in the subscription. + * @return the number of free and paid iot hubs in the subscription along with {@link Response}. */ - UserSubscriptionQuotaListResult getSubscriptionQuota(); + Response getSubscriptionQuotaWithResponse(Context context); /** * Get the number of iot hubs in the subscription * *

Get the number of free and paid iot hubs in the subscription. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the number of free and paid iot hubs in the subscription along with {@link Response}. + * @return the number of free and paid iot hubs in the subscription. */ - Response getSubscriptionQuotaWithResponse(Context context); + UserSubscriptionQuotaListResult getSubscriptionQuota(); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RootCertificateProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RootCertificateProperties.java index dea6719ef5201..5966512f8c6de 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RootCertificateProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RootCertificateProperties.java @@ -23,6 +23,10 @@ public final class RootCertificateProperties { @JsonProperty(value = "lastUpdatedTimeUtc", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastUpdatedTimeUtc; + /** Creates an instance of RootCertificateProperties class. */ + public RootCertificateProperties() { + } + /** * Get the enableRootCertificateV2 property: This property when set to true, hub will use G2 cert; while it's set to * false, hub uses Baltimore Cert. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteCompilationError.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteCompilationError.java index 32d0640a8db9d..73feccc6c7bd8 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteCompilationError.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteCompilationError.java @@ -28,6 +28,10 @@ public final class RouteCompilationError { @JsonProperty(value = "location") private RouteErrorRange location; + /** Creates an instance of RouteCompilationError class. */ + public RouteCompilationError() { + } + /** * Get the message property: Route error message. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorPosition.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorPosition.java index 58c43833be88a..cfa726667a3ac 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorPosition.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorPosition.java @@ -22,6 +22,10 @@ public final class RouteErrorPosition { @JsonProperty(value = "column") private Integer column; + /** Creates an instance of RouteErrorPosition class. */ + public RouteErrorPosition() { + } + /** * Get the line property: Line where the route error happened. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorRange.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorRange.java index badcc3a39a7eb..ed87b719384af 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorRange.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorRange.java @@ -22,6 +22,10 @@ public final class RouteErrorRange { @JsonProperty(value = "end") private RouteErrorPosition end; + /** Creates an instance of RouteErrorRange class. */ + public RouteErrorRange() { + } + /** * Get the start property: Start where the route error happened. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorSeverity.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorSeverity.java index a050c7124499d..5ac04e55ffdb9 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorSeverity.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorSeverity.java @@ -16,6 +16,15 @@ public final class RouteErrorSeverity extends ExpandableStringEnum cosmosDBSqlCollections; + /** Creates an instance of RoutingEndpoints class. */ + public RoutingEndpoints() { + } + /** * Get the serviceBusQueues property: The list of Service Bus queue endpoints that IoT hub routes the messages to, * based on the routing rules. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEventHubProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEventHubProperties.java index c0407b824d6bf..eba6e7ec57603 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEventHubProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEventHubProperties.java @@ -67,6 +67,10 @@ public final class RoutingEventHubProperties { @JsonProperty(value = "resourceGroup") private String resourceGroup; + /** Creates an instance of RoutingEventHubProperties class. */ + public RoutingEventHubProperties() { + } + /** * Get the id property: Id of the event hub endpoint. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingMessage.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingMessage.java index 05ebe0e4174c2..000535f0fb0de 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingMessage.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingMessage.java @@ -32,6 +32,10 @@ public final class RoutingMessage { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map systemProperties; + /** Creates an instance of RoutingMessage class. */ + public RoutingMessage() { + } + /** * Get the body property: Body of routing message. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingProperties.java index bc1e0579a9312..c02c18d8b4a1d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingProperties.java @@ -45,6 +45,10 @@ public final class RoutingProperties { @JsonProperty(value = "enrichments") private List enrichments; + /** Creates an instance of RoutingProperties class. */ + public RoutingProperties() { + } + /** * Get the endpoints property: The properties related to the custom endpoints to which your IoT hub routes messages * based on the routing rules. A maximum of 10 custom endpoints are allowed across all endpoint types for paid hubs diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusQueueEndpointProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusQueueEndpointProperties.java index 2aa27d8e8a2b2..0cf12ee2c23b8 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusQueueEndpointProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusQueueEndpointProperties.java @@ -68,6 +68,10 @@ public final class RoutingServiceBusQueueEndpointProperties { @JsonProperty(value = "resourceGroup") private String resourceGroup; + /** Creates an instance of RoutingServiceBusQueueEndpointProperties class. */ + public RoutingServiceBusQueueEndpointProperties() { + } + /** * Get the id property: Id of the service bus queue endpoint. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusTopicEndpointProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusTopicEndpointProperties.java index a339789d02eb1..6800293aa046a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusTopicEndpointProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusTopicEndpointProperties.java @@ -68,6 +68,10 @@ public final class RoutingServiceBusTopicEndpointProperties { @JsonProperty(value = "resourceGroup") private String resourceGroup; + /** Creates an instance of RoutingServiceBusTopicEndpointProperties class. */ + public RoutingServiceBusTopicEndpointProperties() { + } + /** * Get the id property: Id of the service bus topic endpoint. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingSource.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingSource.java index eff131d547dd6..b7db729608af3 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingSource.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingSource.java @@ -34,6 +34,15 @@ public final class RoutingSource extends ExpandableStringEnum { /** Static value MqttBrokerMessages for RoutingSource. */ public static final RoutingSource MQTT_BROKER_MESSAGES = fromString("MqttBrokerMessages"); + /** + * Creates a new instance of RoutingSource value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RoutingSource() { + } + /** * Creates or finds a RoutingSource from its string representation. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerProperties.java index 71896ac856801..f1df2f158caa9 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerProperties.java @@ -95,6 +95,10 @@ public final class RoutingStorageContainerProperties { @JsonProperty(value = "encoding") private RoutingStorageContainerPropertiesEncoding encoding; + /** Creates an instance of RoutingStorageContainerProperties class. */ + public RoutingStorageContainerProperties() { + } + /** * Get the id property: Id of the storage container endpoint. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerPropertiesEncoding.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerPropertiesEncoding.java index 35093d0278011..1b9683e99a5ac 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerPropertiesEncoding.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerPropertiesEncoding.java @@ -23,6 +23,15 @@ public final class RoutingStorageContainerPropertiesEncoding /** Static value JSON for RoutingStorageContainerPropertiesEncoding. */ public static final RoutingStorageContainerPropertiesEncoding JSON = fromString("JSON"); + /** + * Creates a new instance of RoutingStorageContainerPropertiesEncoding value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RoutingStorageContainerPropertiesEncoding() { + } + /** * Creates or finds a RoutingStorageContainerPropertiesEncoding from its string representation. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwin.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwin.java index 5d14694e9bec3..cb6b5dc4e618a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwin.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwin.java @@ -22,6 +22,10 @@ public final class RoutingTwin { @JsonProperty(value = "properties") private RoutingTwinProperties properties; + /** Creates an instance of RoutingTwin class. */ + public RoutingTwin() { + } + /** * Get the tags property: Twin Tags. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwinProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwinProperties.java index c9b0ca0006723..248c6f471d98f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwinProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwinProperties.java @@ -22,6 +22,10 @@ public final class RoutingTwinProperties { @JsonProperty(value = "reported") private Object reported; + /** Creates an instance of RoutingTwinProperties class. */ + public RoutingTwinProperties() { + } + /** * Get the desired property: Twin desired properties. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/SharedAccessSignatureAuthorizationRuleListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/SharedAccessSignatureAuthorizationRuleListResult.java index 763f83f7c0c9e..c3db98edd80b1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/SharedAccessSignatureAuthorizationRuleListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/SharedAccessSignatureAuthorizationRuleListResult.java @@ -24,6 +24,10 @@ public final class SharedAccessSignatureAuthorizationRuleListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SharedAccessSignatureAuthorizationRuleListResult class. */ + public SharedAccessSignatureAuthorizationRuleListResult() { + } + /** * Get the value property: The list of shared access policies. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/StorageEndpointProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/StorageEndpointProperties.java index 2ccb5374dcfb1..2799ac0bdf3dc 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/StorageEndpointProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/StorageEndpointProperties.java @@ -44,6 +44,10 @@ public final class StorageEndpointProperties { @JsonProperty(value = "identity") private ManagedIdentity identity; + /** Creates an instance of StorageEndpointProperties class. */ + public StorageEndpointProperties() { + } + /** * Get the sasTtlAsIso8601 property: The period of time for which the SAS URI generated by IoT Hub for file upload * is valid. See: diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TagsResource.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TagsResource.java index b4182756354ef..aa5335fe0feae 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TagsResource.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TagsResource.java @@ -19,6 +19,10 @@ public final class TagsResource { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of TagsResource class. */ + public TagsResource() { + } + /** * Get the tags property: Resource tags. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestAllRoutesInput.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestAllRoutesInput.java index 4cf94aa381c63..8b68846f9dc42 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestAllRoutesInput.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestAllRoutesInput.java @@ -28,6 +28,10 @@ public final class TestAllRoutesInput { @JsonProperty(value = "twin") private RoutingTwin twin; + /** Creates an instance of TestAllRoutesInput class. */ + public TestAllRoutesInput() { + } + /** * Get the routingSource property: Routing source. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestResultStatus.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestResultStatus.java index 9b73d3b30ca6a..8248d4f5e7502 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestResultStatus.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestResultStatus.java @@ -19,6 +19,15 @@ public final class TestResultStatus extends ExpandableStringEnum compilationErrors; + /** Creates an instance of TestRouteResultDetails class. */ + public TestRouteResultDetails() { + } + /** * Get the compilationErrors property: JSON-serialized list of route compilation errors. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/UserSubscriptionQuota.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/UserSubscriptionQuota.java index 3d2abc6cd07f8..c95425883ccc0 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/UserSubscriptionQuota.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/UserSubscriptionQuota.java @@ -46,6 +46,10 @@ public final class UserSubscriptionQuota { @JsonProperty(value = "name") private Name name; + /** Creates an instance of UserSubscriptionQuota class. */ + public UserSubscriptionQuota() { + } + /** * Get the id property: IotHub type id. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateSamples.java index 2cac0710fe9e7..67c58c331f702 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ /** Samples for Certificates CreateOrUpdate. */ public final class CertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_certificatescreateorupdate.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_certificatescreateorupdate.json */ /** * Sample code: Certificates_CreateOrUpdate. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteSamples.java index 0dd6678d052c3..61ba2a5ca588e 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for Certificates Delete. */ public final class CertificatesDeleteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_certificatesdelete.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_certificatesdelete.json */ /** * Sample code: Certificates_Delete. @@ -17,6 +15,8 @@ public final class CertificatesDeleteSamples { * @param manager Entry point to IotHubManager. */ public static void certificatesDelete(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.certificates().deleteWithResponse("myResourceGroup", "myhub", "cert", "AAAAAAAADGk=", Context.NONE); + manager + .certificates() + .deleteWithResponse("myResourceGroup", "myhub", "cert", "AAAAAAAADGk=", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGenerateVerificationCodeSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGenerateVerificationCodeSamples.java index 503fd5544a2d4..5ec7905114f66 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGenerateVerificationCodeSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGenerateVerificationCodeSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for Certificates GenerateVerificationCode. */ public final class CertificatesGenerateVerificationCodeSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_generateverificationcode.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_generateverificationcode.json */ /** * Sample code: Certificates_GenerateVerificationCode. @@ -19,6 +17,7 @@ public final class CertificatesGenerateVerificationCodeSamples { public static void certificatesGenerateVerificationCode(com.azure.resourcemanager.iothub.IotHubManager manager) { manager .certificates() - .generateVerificationCodeWithResponse("myResourceGroup", "testHub", "cert", "AAAAAAAADGk=", Context.NONE); + .generateVerificationCodeWithResponse( + "myResourceGroup", "testHub", "cert", "AAAAAAAADGk=", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGetSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGetSamples.java index 0d1de9e93d1dd..0ee916a6f0867 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGetSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for Certificates Get. */ public final class CertificatesGetSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getcertificate.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getcertificate.json */ /** * Sample code: Certificates_Get. @@ -17,6 +15,6 @@ public final class CertificatesGetSamples { * @param manager Entry point to IotHubManager. */ public static void certificatesGet(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.certificates().getWithResponse("myResourceGroup", "testhub", "cert", Context.NONE); + manager.certificates().getWithResponse("myResourceGroup", "testhub", "cert", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubSamples.java index ecc8530355163..c2023a216ea99 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for Certificates ListByIotHub. */ public final class CertificatesListByIotHubSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listcertificates.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listcertificates.json */ /** * Sample code: Certificates_ListByIotHub. @@ -17,6 +15,6 @@ public final class CertificatesListByIotHubSamples { * @param manager Entry point to IotHubManager. */ public static void certificatesListByIotHub(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.certificates().listByIotHubWithResponse("myResourceGroup", "testhub", Context.NONE); + manager.certificates().listByIotHubWithResponse("myResourceGroup", "testhub", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifySamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifySamples.java index d35f9196ab780..8d60108f9d5fb 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifySamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifySamples.java @@ -4,13 +4,12 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.CertificateVerificationDescription; /** Samples for Certificates Verify. */ public final class CertificatesVerifySamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_certverify.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_certverify.json */ /** * Sample code: Certificates_Verify. @@ -26,6 +25,6 @@ public static void certificatesVerify(com.azure.resourcemanager.iothub.IotHubMan "cert", "AAAAAAAADGk=", new CertificateVerificationDescription().withCertificate("#####################################"), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubManualFailoverSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubManualFailoverSamples.java index 175f6f93299dc..eab64aa98e1fb 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubManualFailoverSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubManualFailoverSamples.java @@ -4,13 +4,12 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.FailoverInput; /** Samples for IotHub ManualFailover. */ public final class IotHubManualFailoverSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/IotHub_ManualFailover.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/IotHub_ManualFailover.json */ /** * Sample code: IotHub_ManualFailover. @@ -21,6 +20,9 @@ public static void iotHubManualFailover(com.azure.resourcemanager.iothub.IotHubM manager .iotHubs() .manualFailover( - "testHub", "myResourceGroup", new FailoverInput().withFailoverRegion("testHub"), Context.NONE); + "testHub", + "myResourceGroup", + new FailoverInput().withFailoverRegion("testHub"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCheckNameAvailabilitySamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCheckNameAvailabilitySamples.java index 6413aca9418b5..0facb51a6a4b6 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCheckNameAvailabilitySamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCheckNameAvailabilitySamples.java @@ -4,13 +4,12 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.OperationInputs; /** Samples for IotHubResource CheckNameAvailability. */ public final class IotHubResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/checkNameAvailability.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/checkNameAvailability.json */ /** * Sample code: IotHubResource_CheckNameAvailability. @@ -20,6 +19,7 @@ public final class IotHubResourceCheckNameAvailabilitySamples { public static void iotHubResourceCheckNameAvailability(com.azure.resourcemanager.iothub.IotHubManager manager) { manager .iotHubResources() - .checkNameAvailabilityWithResponse(new OperationInputs().withName("test-request"), Context.NONE); + .checkNameAvailabilityWithResponse( + new OperationInputs().withName("test-request"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateEventHubConsumerGroupSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateEventHubConsumerGroupSamples.java index 203999b7d0cb0..36c0715687a0f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateEventHubConsumerGroupSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateEventHubConsumerGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource CreateEventHubConsumerGroup. */ public final class IotHubResourceCreateEventHubConsumerGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_createconsumergroup.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_createconsumergroup.json */ /** * Sample code: IotHubResource_CreateEventHubConsumerGroup. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateOrUpdateSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateOrUpdateSamples.java index 95d833666969d..ea4d482473b49 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateOrUpdateSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateOrUpdateSamples.java @@ -13,6 +13,7 @@ import com.azure.resourcemanager.iothub.models.IotHubProperties; import com.azure.resourcemanager.iothub.models.IotHubSku; import com.azure.resourcemanager.iothub.models.IotHubSkuInfo; +import com.azure.resourcemanager.iothub.models.IpVersion; import com.azure.resourcemanager.iothub.models.MessagingEndpointProperties; import com.azure.resourcemanager.iothub.models.NetworkRuleIpAction; import com.azure.resourcemanager.iothub.models.NetworkRuleSetIpRule; @@ -30,7 +31,7 @@ /** Samples for IotHubResource CreateOrUpdate. */ public final class IotHubResourceCreateOrUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_createOrUpdate.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_createOrUpdate.json */ /** * Sample code: IotHubResource_CreateOrUpdate. @@ -109,7 +110,8 @@ public static void iotHubResourceCreateOrUpdate(com.azure.resourcemanager.iothub .withMaxDeliveryCount(10))) .withFeatures(Capabilities.NONE) .withEnableDataResidency(true) - .withRootCertificate(new RootCertificateProperties().withEnableRootCertificateV2(true))) + .withRootCertificate(new RootCertificateProperties().withEnableRootCertificateV2(true)) + .withIpVersion(IpVersion.IPV4IPV6)) .create(); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteEventHubConsumerGroupSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteEventHubConsumerGroupSamples.java index 78a67207bb4f1..e067564709754 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteEventHubConsumerGroupSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteEventHubConsumerGroupSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource DeleteEventHubConsumerGroup. */ public final class IotHubResourceDeleteEventHubConsumerGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_deleteconsumergroup.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_deleteconsumergroup.json */ /** * Sample code: IotHubResource_DeleteEventHubConsumerGroup. @@ -20,6 +18,7 @@ public static void iotHubResourceDeleteEventHubConsumerGroup( com.azure.resourcemanager.iothub.IotHubManager manager) { manager .iotHubResources() - .deleteEventHubConsumerGroupWithResponse("myResourceGroup", "testHub", "events", "test", Context.NONE); + .deleteEventHubConsumerGroupWithResponse( + "myResourceGroup", "testHub", "events", "test", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteSamples.java index dbdd3c24b6ff6..4417738a281b2 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource Delete. */ public final class IotHubResourceDeleteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_delete.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_delete.json */ /** * Sample code: IotHubResource_Delete. @@ -17,6 +15,6 @@ public final class IotHubResourceDeleteSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceDelete(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().delete("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().delete("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceExportDevicesSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceExportDevicesSamples.java index 248c5e28738a4..49d384d55dabc 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceExportDevicesSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceExportDevicesSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.AuthenticationType; import com.azure.resourcemanager.iothub.models.ExportDevicesRequest; import com.azure.resourcemanager.iothub.models.ManagedIdentity; @@ -12,7 +11,7 @@ /** Samples for IotHubResource ExportDevices. */ public final class IotHubResourceExportDevicesSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_exportdevices.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_exportdevices.json */ /** * Sample code: IotHubResource_ExportDevices. @@ -33,6 +32,6 @@ public static void iotHubResourceExportDevices(com.azure.resourcemanager.iothub. new ManagedIdentity() .withUserAssignedIdentity( "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetByResourceGroupSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetByResourceGroupSamples.java index e934769d48ba4..ea558057aada4 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetByResourceGroupSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetByResourceGroupSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource GetByResourceGroup. */ public final class IotHubResourceGetByResourceGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_get.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_get.json */ /** * Sample code: IotHubResource_Get. @@ -17,6 +15,8 @@ public final class IotHubResourceGetByResourceGroupSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceGet(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().getByResourceGroupWithResponse("myResourceGroup", "testHub", Context.NONE); + manager + .iotHubResources() + .getByResourceGroupWithResponse("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEndpointHealthSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEndpointHealthSamples.java index 0b211660e3a2c..a0dd12653cd4d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEndpointHealthSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEndpointHealthSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource GetEndpointHealth. */ public final class IotHubResourceGetEndpointHealthSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_routingendpointhealth.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_routingendpointhealth.json */ /** * Sample code: IotHubResource_GetEndpointHealth. @@ -17,6 +15,6 @@ public final class IotHubResourceGetEndpointHealthSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceGetEndpointHealth(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().getEndpointHealth("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().getEndpointHealth("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEventHubConsumerGroupSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEventHubConsumerGroupSamples.java index e4832f6df322f..3cc209523a723 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEventHubConsumerGroupSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEventHubConsumerGroupSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource GetEventHubConsumerGroup. */ public final class IotHubResourceGetEventHubConsumerGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getconsumergroup.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getconsumergroup.json */ /** * Sample code: IotHubResource_ListEventHubConsumerGroups. @@ -20,6 +18,7 @@ public static void iotHubResourceListEventHubConsumerGroups( com.azure.resourcemanager.iothub.IotHubManager manager) { manager .iotHubResources() - .getEventHubConsumerGroupWithResponse("myResourceGroup", "testHub", "events", "test", Context.NONE); + .getEventHubConsumerGroupWithResponse( + "myResourceGroup", "testHub", "events", "test", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetJobSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetJobSamples.java index d3b8d9b660234..f9f1433d38572 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetJobSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetJobSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource GetJob. */ public final class IotHubResourceGetJobSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getjob.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getjob.json */ /** * Sample code: IotHubResource_GetJob. @@ -17,6 +15,8 @@ public final class IotHubResourceGetJobSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceGetJob(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().getJobWithResponse("myResourceGroup", "testHub", "test", Context.NONE); + manager + .iotHubResources() + .getJobWithResponse("myResourceGroup", "testHub", "test", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetKeysForKeyNameSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetKeysForKeyNameSamples.java index c310e03d1d532..11dffec06eab5 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetKeysForKeyNameSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetKeysForKeyNameSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource GetKeysForKeyName. */ public final class IotHubResourceGetKeysForKeyNameSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getkey.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getkey.json */ /** * Sample code: IotHubResource_GetKeysForKeyName. @@ -19,6 +17,7 @@ public final class IotHubResourceGetKeysForKeyNameSamples { public static void iotHubResourceGetKeysForKeyName(com.azure.resourcemanager.iothub.IotHubManager manager) { manager .iotHubResources() - .getKeysForKeyNameWithResponse("myResourceGroup", "testHub", "iothubowner", Context.NONE); + .getKeysForKeyNameWithResponse( + "myResourceGroup", "testHub", "iothubowner", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetQuotaMetricsSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetQuotaMetricsSamples.java index bef02fa66e97c..775e10695bb58 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetQuotaMetricsSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetQuotaMetricsSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource GetQuotaMetrics. */ public final class IotHubResourceGetQuotaMetricsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_quotametrics.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_quotametrics.json */ /** * Sample code: IotHubResource_GetQuotaMetrics. @@ -17,6 +15,6 @@ public final class IotHubResourceGetQuotaMetricsSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceGetQuotaMetrics(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().getQuotaMetrics("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().getQuotaMetrics("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetStatsSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetStatsSamples.java index 4847a321c825e..dcc8d008d25d6 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetStatsSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetStatsSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource GetStats. */ public final class IotHubResourceGetStatsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_stats.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_stats.json */ /** * Sample code: IotHubResource_GetStats. @@ -17,6 +15,6 @@ public final class IotHubResourceGetStatsSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceGetStats(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().getStatsWithResponse("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().getStatsWithResponse("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetValidSkusSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetValidSkusSamples.java index e9db936fd0eb0..bfe42046f6a48 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetValidSkusSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetValidSkusSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource GetValidSkus. */ public final class IotHubResourceGetValidSkusSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getskus.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getskus.json */ /** * Sample code: IotHubResource_GetValidSkus. @@ -17,6 +15,6 @@ public final class IotHubResourceGetValidSkusSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceGetValidSkus(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().getValidSkus("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().getValidSkus("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceImportDevicesSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceImportDevicesSamples.java index 0221066f06515..79cd595c5497f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceImportDevicesSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceImportDevicesSamples.java @@ -4,13 +4,12 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.ImportDevicesRequest; /** Samples for IotHubResource ImportDevices. */ public final class IotHubResourceImportDevicesSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_importdevices.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_importdevices.json */ /** * Sample code: IotHubResource_ImportDevices. @@ -24,6 +23,6 @@ public static void iotHubResourceImportDevices(com.azure.resourcemanager.iothub. "myResourceGroup", "testHub", new ImportDevicesRequest().withInputBlobContainerUri("testBlob").withOutputBlobContainerUri("testBlob"), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListByResourceGroupSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListByResourceGroupSamples.java index 2fa382f5daf44..fe778d1ed072c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListByResourceGroupSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListByResourceGroupSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource ListByResourceGroup. */ public final class IotHubResourceListByResourceGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listbyrg.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listbyrg.json */ /** * Sample code: IotHubResource_ListByResourceGroup. @@ -17,6 +15,6 @@ public final class IotHubResourceListByResourceGroupSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceListByResourceGroup(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().listByResourceGroup("myResourceGroup", Context.NONE); + manager.iotHubResources().listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListEventHubConsumerGroupsSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListEventHubConsumerGroupsSamples.java index f6af1c0392d65..a8dad23085abc 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListEventHubConsumerGroupsSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListEventHubConsumerGroupsSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource ListEventHubConsumerGroups. */ public final class IotHubResourceListEventHubConsumerGroupsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listehgroups.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listehgroups.json */ /** * Sample code: IotHubResource_ListEventHubConsumerGroups. @@ -18,6 +16,8 @@ public final class IotHubResourceListEventHubConsumerGroupsSamples { */ public static void iotHubResourceListEventHubConsumerGroups( com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().listEventHubConsumerGroups("myResourceGroup", "testHub", "events", Context.NONE); + manager + .iotHubResources() + .listEventHubConsumerGroups("myResourceGroup", "testHub", "events", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListJobsSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListJobsSamples.java index 7fff0e2b7b6a8..04018569eddbf 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListJobsSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListJobsSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource ListJobs. */ public final class IotHubResourceListJobsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listjobs.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listjobs.json */ /** * Sample code: IotHubResource_ListJobs. @@ -17,6 +15,6 @@ public final class IotHubResourceListJobsSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceListJobs(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().listJobs("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().listJobs("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListKeysSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListKeysSamples.java index ab1b19f3cbde8..bdf5149ef1e81 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListKeysSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListKeysSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource ListKeys. */ public final class IotHubResourceListKeysSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listkeys.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listkeys.json */ /** * Sample code: IotHubResource_ListKeys. @@ -17,6 +15,6 @@ public final class IotHubResourceListKeysSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceListKeys(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().listKeys("myResourceGroup", "testHub", Context.NONE); + manager.iotHubResources().listKeys("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListSamples.java index d0c789619f795..7a5d05862b020 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for IotHubResource List. */ public final class IotHubResourceListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listbysubscription.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listbysubscription.json */ /** * Sample code: IotHubResource_ListBySubscription. @@ -17,6 +15,6 @@ public final class IotHubResourceListSamples { * @param manager Entry point to IotHubManager. */ public static void iotHubResourceListBySubscription(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.iotHubResources().list(Context.NONE); + manager.iotHubResources().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestAllRoutesSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestAllRoutesSamples.java index be9aff8697f74..99e3f501bb25f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestAllRoutesSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestAllRoutesSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.RoutingMessage; import com.azure.resourcemanager.iothub.models.RoutingSource; import com.azure.resourcemanager.iothub.models.TestAllRoutesInput; @@ -14,7 +13,7 @@ /** Samples for IotHubResource TestAllRoutes. */ public final class IotHubResourceTestAllRoutesSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_testallroutes.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_testallroutes.json */ /** * Sample code: IotHubResource_TestAllRoutes. @@ -34,7 +33,7 @@ public static void iotHubResourceTestAllRoutes(com.azure.resourcemanager.iothub. .withBody("Body of message") .withAppProperties(mapOf("key1", "value1")) .withSystemProperties(mapOf("key1", "value1"))), - Context.NONE); + com.azure.core.util.Context.NONE); } @SuppressWarnings("unchecked") diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestRouteSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestRouteSamples.java index a83ad207ce52a..f789024375dad 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestRouteSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestRouteSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.RouteProperties; import com.azure.resourcemanager.iothub.models.RoutingMessage; import com.azure.resourcemanager.iothub.models.RoutingSource; @@ -16,7 +15,7 @@ /** Samples for IotHubResource TestRoute. */ public final class IotHubResourceTestRouteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_testnewroute.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_testnewroute.json */ /** * Sample code: IotHubResource_TestRoute. @@ -41,7 +40,7 @@ public static void iotHubResourceTestRoute(com.azure.resourcemanager.iothub.IotH .withSource(RoutingSource.DEVICE_MESSAGES) .withEndpointNames(Arrays.asList("id1")) .withIsEnabled(true)), - Context.NONE); + com.azure.core.util.Context.NONE); } @SuppressWarnings("unchecked") diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceUpdateSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceUpdateSamples.java index c6ce29a603ade..be13f9a3482cb 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceUpdateSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.models.IotHubDescription; import java.util.HashMap; import java.util.Map; @@ -12,7 +11,7 @@ /** Samples for IotHubResource Update. */ public final class IotHubResourceUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_patch.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_patch.json */ /** * Sample code: IotHubResource_Update. @@ -23,7 +22,7 @@ public static void iotHubResourceUpdate(com.azure.resourcemanager.iothub.IotHubM IotHubDescription resource = manager .iotHubResources() - .getByResourceGroupWithResponse("myResourceGroup", "myHub", Context.NONE) + .getByResourceGroupWithResponse("myResourceGroup", "myHub", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("foo", "bar")).apply(); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/OperationsListSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/OperationsListSamples.java index 4d063b1b1452a..c93d77c1a4e58 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/OperationsListSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/OperationsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_operations.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_operations.json */ /** * Sample code: Operations_List. @@ -17,6 +15,6 @@ public final class OperationsListSamples { * @param manager Entry point to IotHubManager. */ public static void operationsList(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.operations().list(Context.NONE); + manager.operations().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteSamples.java index c5603fa554dd4..dc62553134aa1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_deleteprivateendpointconnection.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_deleteprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Delete. @@ -19,6 +17,6 @@ public final class PrivateEndpointConnectionsDeleteSamples { public static void privateEndpointConnectionDelete(com.azure.resourcemanager.iothub.IotHubManager manager) { manager .privateEndpointConnections() - .delete("myResourceGroup", "testHub", "myPrivateEndpointConnection", Context.NONE); + .delete("myResourceGroup", "testHub", "myPrivateEndpointConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetSamples.java index 3ed2b13d3921a..92f0726359ded 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getprivateendpointconnection.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Get. @@ -19,6 +17,7 @@ public final class PrivateEndpointConnectionsGetSamples { public static void privateEndpointConnectionGet(com.azure.resourcemanager.iothub.IotHubManager manager) { manager .privateEndpointConnections() - .getWithResponse("myResourceGroup", "testHub", "myPrivateEndpointConnection", Context.NONE); + .getWithResponse( + "myResourceGroup", "testHub", "myPrivateEndpointConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListSamples.java index c8701c58c23a3..9d8e94e9e8a24 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for PrivateEndpointConnections List. */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listprivateendpointconnections.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listprivateendpointconnections.json */ /** * Sample code: PrivateEndpointConnections_List. @@ -17,6 +15,8 @@ public final class PrivateEndpointConnectionsListSamples { * @param manager Entry point to IotHubManager. */ public static void privateEndpointConnectionsList(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.privateEndpointConnections().listWithResponse("myResourceGroup", "testHub", Context.NONE); + manager + .privateEndpointConnections() + .listWithResponse("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateSamples.java index 21339bef56e0f..3602c49e06518 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.iothub.fluent.models.PrivateEndpointConnectionInner; import com.azure.resourcemanager.iothub.models.PrivateEndpointConnectionProperties; import com.azure.resourcemanager.iothub.models.PrivateLinkServiceConnectionState; @@ -13,7 +12,7 @@ /** Samples for PrivateEndpointConnections Update. */ public final class PrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_updateprivateendpointconnection.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_updateprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Update. @@ -34,6 +33,6 @@ public static void privateEndpointConnectionUpdate(com.azure.resourcemanager.iot new PrivateLinkServiceConnectionState() .withStatus(PrivateLinkServiceConnectionStatus.APPROVED) .withDescription("Approved by johndoe@contoso.com"))), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationGetSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationGetSamples.java index b613ac82b36b9..91b76b03ae032 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationGetSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for PrivateLinkResourcesOperation Get. */ public final class PrivateLinkResourcesOperationGetSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getprivatelinkresources.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getprivatelinkresources.json */ /** * Sample code: PrivateLinkResources_List. @@ -17,6 +15,8 @@ public final class PrivateLinkResourcesOperationGetSamples { * @param manager Entry point to IotHubManager. */ public static void privateLinkResourcesList(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.privateLinkResourcesOperations().getWithResponse("myResourceGroup", "testHub", "iotHub", Context.NONE); + manager + .privateLinkResourcesOperations() + .getWithResponse("myResourceGroup", "testHub", "iotHub", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationListSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationListSamples.java index 64f90d95ed1d5..c29dca7b0181d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationListSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for PrivateLinkResourcesOperation List. */ public final class PrivateLinkResourcesOperationListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listprivatelinkresources.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listprivatelinkresources.json */ /** * Sample code: PrivateLinkResources_List. @@ -17,6 +15,8 @@ public final class PrivateLinkResourcesOperationListSamples { * @param manager Entry point to IotHubManager. */ public static void privateLinkResourcesList(com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.privateLinkResourcesOperations().listWithResponse("myResourceGroup", "testHub", Context.NONE); + manager + .privateLinkResourcesOperations() + .listWithResponse("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonGetSubscriptionQuotaSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonGetSubscriptionQuotaSamples.java index ad2f2a66734f0..4c164be4dd8fb 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonGetSubscriptionQuotaSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonGetSubscriptionQuotaSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.iothub.generated; -import com.azure.core.util.Context; - /** Samples for ResourceProviderCommon GetSubscriptionQuota. */ public final class ResourceProviderCommonGetSubscriptionQuotaSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_usages.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_usages.json */ /** * Sample code: ResourceProviderCommon_GetSubscriptionQuota. @@ -18,6 +16,6 @@ public final class ResourceProviderCommonGetSubscriptionQuotaSamples { */ public static void resourceProviderCommonGetSubscriptionQuota( com.azure.resourcemanager.iothub.IotHubManager manager) { - manager.resourceProviderCommons().getSubscriptionQuotaWithResponse(Context.NONE); + manager.resourceProviderCommons().getSubscriptionQuotaWithResponse(com.azure.core.util.Context.NONE); } }